Skip to main content
Glama
dbdave

SSAS MCP Server

by dbdave

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_rowsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses query constraints (no JOIN, GROUP BY, simple WHERE), supported rowsets, and the optional max_rows cap. It does not mention side effects or permissions, but for a read-only introspection tool this is acceptable.

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

Conciseness4/5

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

The description is well-structured: purpose, accepted format, rowsets, limitations, and parameter definitions. It is comprehensive without being overly verbose, though it could be slightly more concise.

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

Completeness5/5

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

Given the output schema exists (so return values are documented), the description covers all necessary aspects: input parameters, usage guidelines, behavioral constraints, and relevant rowsets. It is fully sufficient for an agent to decide when and how to invoke this tool.

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 coverage is 0%, so the description must compensate. It clearly documents both parameters: 'query' as the DMV SELECT query and 'max_rows' as an optional row cap with default 0. This adds essential meaning beyond the raw 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 explicitly states it executes DMV queries for metadata introspection. It distinguishes from sibling tools like execute_query and list_metadata by specifying the DMV SQL format and target system rowsets.

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 details the accepted query format (SELECT ... FROM $SYSTEM.<rowset>), lists useful rowsets for different models, and notes SQL limitations. It provides clear context for when to use this tool but does not explicitly exclude alternatives.

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/dbdave/mssas_mcp_server'

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