count_view_rows
Get the total row count of a view in Microsoft Fabric, with optional point-in-time count using a timestamp. Works on Data Warehouses and SQL Analytics Endpoints.
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.
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_view_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 | |||