execute_dmv
Run Dynamic Management View queries for deep metadata introspection in SSAS, covering cubes, tabular models, and server state with SELECT operations on $SYSTEM rowsets.
Instructions
Execute a Dynamic Management View query for deeper metadata introspection.
Only SELECT ... FROM $SYSTEM.<rowset> is accepted. Useful rowsets:
MDSCHEMA_* (cubes, measures, dimensions, hierarchies, levels, members) for
multidimensional; TMSCHEMA_* (tables, columns, measures, relationships)
and DISCOVER_CALC_DEPENDENCY for tabular models; DISCOVER_* for server
state. Note DMV SQL is limited: no JOIN, no GROUP BY, WHERE supports only
simple = comparisons combined with AND/OR.
Args: query: The DMV SELECT query. max_rows: Optional per-call row cap (0 = use the server default).
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": {
"query": "<query>"
},
"name": "execute_dmv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |