views

views is a command for coding agents from sdebruyn/fabric-dw-mcp-cli. It costs 0 tokens per session (4,700 once invoked), scanned A, original, MIT.

A command-line tool for inspecting and managing SQL views in Microsoft Fabric Data Warehouses and SQL Analytics Endpoints. A view is a saved SQL query that presents data like a table.

In plain words
What is it for?
Use it to list view columns, check their types and properties, count rows, or count rows from an earlier point within the available time-travel window.
Why use it?
It makes view details and historical row counts accessible without writing each inspection query manually.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sdebruyn/fabric-dw-mcp-cli/views
Clone the repo
git clone --depth 1 https://github.com/sdebruyn/fabric-dw-mcp-cli

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for views

README.md
[![agentmods](https://agentmods.dev/badge/commands/sdebruyn/fabric-dw-mcp-cli/views.svg)](https://agentmods.dev/commands/sdebruyn/fabric-dw-mcp-cli/views)
Your own site
<a href="https://agentmods.dev/commands/sdebruyn/fabric-dw-mcp-cli/views"><img src="https://agentmods.dev/badge/commands/sdebruyn/fabric-dw-mcp-cli/views.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.04700
Opus 5 $0.00000 $0.02350
Sonnet 5 $0.00000 $0.00940
Haiku 4.5 $0.00000 $0.00470

Measured 5d ago against content hash 87ba5ce4f654, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

views scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/views.md · 533 lines

How it starts

The opening of the file, as written. The whole thing — 533 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Views

Manage SQL views on Microsoft Fabric Data Warehouses and SQL Analytics Endpoints.

Targets: Data Warehouse / SQL Analytics Endpoint

CLI

views columns

Targets: Data Warehouse / SQL Analytics Endpoint

List the columns of a view, including name, formatted data type, nullability, ordinal position, collation, identity, and computed flags.

Synopsis

fdw [-w WORKSPACE] views columns [WAREHOUSE] QUALIFIED_NAME

QUALIFIED_NAME must be a dot-separated schema.view_name string, e.g. dbo.vw_sales.

Example

fdw -w MyWorkspace views columns SalesWH dbo.vw_sales
 ordinal  name    data_type     nullable  is_identity  is_computed  collation_name
 -------  ------  ------------  --------  -----------  -----------  ----------------------------
 1        id      INT           False     False        False
 2        amount  DECIMAL(18,2) True      False        False

views count

Targets: Data Warehouse / SQL Analytics Endpoint

Return the total row count of a view using SELECT COUNT_BIG(*).

Use --as-of or --ago to count rows as they were at an earlier point in time (time travel). The same retention window applies as for views read.

Synopsis

fdw [-w WORKSPACE] views count [OPTIONS] [WAREHOUSE] QUALIFIED_NAME
Option Description
--as-of ISO8601 Count rows as they were at this UTC timestamp. Mutually exclusive with --ago.
--ago DURATION Count rows as they were this duration ago (e.g. 1h, 90m, 2d). Mutually exclusive with --as-of.

Example

fdw -w MyWorkspace --json views count SalesWH dbo.vw_sales
{"schema": "dbo", "name": "vw_sales", "row_count": 12345}
# Point-in-time row count
fdw -w MyWorkspace --json views count SalesWH dbo.vw_sales --as-of 2024-03-15T10:00:00Z
fdw -w MyWorkspace --json views count SalesWH dbo.vw_sales --ago 1h

views export

Targets: Data Warehouse / SQL Analytics Endpoint

Read the full file on GitHub · 533 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 533 lines · 0 tokens per session scan A 87ba5ce4f654

Subscribe to this mod's changes

views is a command published in the GitHub repository sdebruyn/fabric-dw-mcp-cli (10 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,700 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.