Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

scaffold_power_query

Generates Power Query M code to import DAX query results into Excel and returns the code, table name, and paste instructions.

Instructions

Generate Power Query M code for importing DAX query results into Excel.

Returns JSON with the generated M code, table name, and paste instructions.

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": "scaffold_power_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
table_nameNoDAXResults
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the JSON return shape (M code, table name, paste instructions), which is useful, but says nothing about whether anything is written to disk — the presence of a connections_dir parameter implies possible filesystem effects that the description never confirms or denies. Side effects, overwrite behavior, and validation of the query are all unstated.

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?

Two tight sentences with the core purpose front-loaded and the return shape second; nothing is padded. Minor deduction because the return sentence is doing more work than a purpose statement should and the inputs are entirely absent from the text.

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 explaining return values is not required, and the description is short relative to a tool with four undocumented inputs, no annotations, and apparent filesystem involvement. For a scaffolding tool that presumably chains into Excel setup, the missing prerequisites and side-effect disclosure leave real gaps.

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 four parameters, so the description must compensate and does not. 'connection_name' is never explained (a logical connection name? a file path?), 'query' is only implied to be DAX by the framing sentence, and 'connections_dir' — defaulting to 'Connections' — is a filesystem hint with no explanation of its role or whether the directory is created. Only table_name is loosely echoed via the return-value sentence.

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?

The description names a specific verb and artifact: 'Generate Power Query M code for importing DAX query results into Excel.' That is far more concrete than the bare name suggests, and an agent can tell what it produces. It does not, however, distinguish this scaffolder from the other scaffold_* siblings (e.g. scaffold_dax_workspace) or state any ordering relationship between them.

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?

There is no when-to-use guidance and no exclusions. The description never says whether a connection must already exist, whether scaffold_dax_workspace should be called first, or when an agent should prefer this over run_connection_query or run_named_query. The agent must infer the entry conditions entirely.

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