Skip to main content
Glama
sdebruyn

fabric-dw-mcp-cli

by sdebruyn

count_view_rows

Return the total row count of a view in Fabric Data Warehouses or SQL Analytics Endpoints, with optional time-travel querying.

Instructions

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

Works on both Fabric Data Warehouses and SQL Analytics Endpoints.

Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. qualified_name: Dot-separated qualified view name, e.g. dbo.vw_sales. as_of: Optional ISO-8601 UTC timestamp for a point-in-time (time-travel) count. When supplied the query uses OPTION (FOR TIMESTAMP AS OF ...). Omit to count the latest data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemYes
as_ofNo
workspaceYes
qualified_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It describes the SQL operation (COUNT_BIG) and time-travel option, but does not explicitly state that it is read-only or disclose any potential side effects or performance impacts. Implied transparency is moderate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with the core action, and uses clear formatting. Every sentence adds value without excess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present (though not shown), the description handles the main purpose well. It lacks mention of error conditions or permissions, but for a simple count tool, it is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully explains all four parameters: workspace, item, qualified_name (as dot-separated), and as_of (with ISO-8601 format and time-travel semantics). This adds substantial meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns the total row count of a view using COUNT_BIG. It identifies the specific resource (view) and operation (count rows), differentiating it from siblings like count_table_rows.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description notes it works on Fabric Data Warehouses and SQL Analytics Endpoints and explains time-travel usage via as_of. However, it does not explicitly contrast with alternatives like count_table_rows or mention when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sdebruyn/fabric-dw-mcp-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server