Skip to main content
Glama
sdebruyn

fabric-dw-mcp-cli

by sdebruyn

count_table_rows

Return the total row count of a table in Microsoft Fabric using COUNT_BIG(*). Supports time-travel queries with an optional timestamp.

Instructions

Return the total row count of a table 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 table name, e.g. dbo.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 provided, so description carries full burden. Describes SQL method and time-travel option, but omits details on locking, performance, or consistency guarantees for the count.

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?

Two sentences plus a bulleted args list. Front-loaded with main action, no excess words. Every sentence adds value.

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?

Covers core usage and all parameters. Output schema exists, so return details are not needed. Lacks mention of potential errors or limitations (e.g., large tables). Adequate but not exhaustive.

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?

With 0% schema coverage, description adds essential meaning: explains qualified_name format, as_of format and purpose, and names workspace/item. Complements schema effectively.

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?

Clearly states it returns total row count of a table via SELECT COUNT_BIG(*). Distinguishes from count_view_rows by specifying table. No ambiguity.

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?

Mentions it works on Fabric Data Warehouses and SQL Analytics Endpoints, giving context. Does not explicitly state when not to use, but tool name and sibling list provide some differentiation.

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