Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

run_connection_query

Read-only

Execute a DAX query against a named Power BI connection and return the full data table plus a numbered follow-up menu.

Instructions

Run a DAX query against a named connection.

IMPORTANT: This tool returns a COMPLETE, pre-formatted response for the user. Output the returned string as your ENTIRE response — do NOT summarize, truncate, or convert the table to bullet points. The output includes a data table and a numbered follow-up menu that must both appear.

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": {
      "connection_name": "<connection_name>",
      "query": "<query>"
    },
    "name": "run_connection_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
profileNo
max_rowsNo
preview_rowsNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

C2.8/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true, and the description is consistent with that, adding that the return value is a complete pre-formatted string containing a data table plus a numbered follow-up menu. That return-shape detail is genuinely useful beyond the annotation, but nothing is said about truncation via max_rows, what profile does, or how errors surface.

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

Conciseness3/5

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

The purpose sentence is front-loaded and short, which is good, but the majority of the text is a response-emission directive rather than tool-definition content. It is not padded, yet the space is spent on the least ambiguous part of the contract while the parameters go unexplained.

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

Completeness2/5

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

An output schema exists, so return values need not be described — yet the description spends its length on them while leaving four of six parameters undocumented and offering no sibling routing. For a query-execution tool with a configurable row limit and profile flag, the agent is left guessing at behavior that materially affects the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across six parameters, so the description must compensate — and it does not. "Named connection" and "DAX query" loosely map to connection_name and query, but max_rows, preview_rows, profile, and connections_dir are completely unaddressed anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Run a DAX query against a named connection" gives a specific verb (run), resource (DAX query) and target (named connection), so the agent knows exactly what it does. It does not distinguish itself from sibling tools with similar-sounding names such as run_ad_hoc_query or run_named_query, leaving that differentiation to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never states when to use this tool versus run_ad_hoc_query, run_named_query, or the inspect_connection family, nor any prerequisites or exclusions. The only guidance given is about how to relay the output, which is a post-invocation formatting rule, not selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.