count_table_rows
Returns total row count for a table in Microsoft Fabric Data Warehouses or SQL Analytics Endpoints. Optionally count rows as of a specific timestamp using time-travel.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"item": "<item>",
"qualified_name": "<qualified_name>"
},
"name": "count_table_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| as_of | No | ||
| workspace | Yes | ||
| qualified_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||