Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

validate_query_pack

Read-only

Validates a query pack's structure and optionally smoke-tests each query against Power BI semantic models to catch errors before execution.

Instructions

Validate a query pack structurally and optionally smoke-test each query.

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": {
      "pack_path": "<pack_path>"
    },
    "name": "validate_query_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
max_rowsNo
pack_pathYes
connections_dirNoConnections
continue_on_errorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

C2.9/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, so the safety profile is largely covered, and the description adds real behavioral context by distinguishing structural validation from a smoke test that runs each query. It does not disclose that smoke-testing presumably executes queries against connections (dependency on connections_dir), nor how errors are handled or aggregated.

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?

A single front-loaded sentence with no filler, but the brevity comes at the cost of the parameter and mode detail an agent needs. It is efficient rather than padded, which keeps it above a 3.

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, which relieves the description of explaining results, but with five undocumented parameters, a mutation-adjacent smoke-test mode, and no usage routing, the definition is too thin for the tool's complexity. An agent cannot tell from the description what continue_on_error or max_rows do or when smoke-testing is appropriate.

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% for five parameters, so the description carries the burden and does not meet it: dry_run, max_rows, connections_dir, and continue_on_error are never explained. Only a loose link between "smoke-test" and dry_run could be inferred, and even that is never named.

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 resource ("Validate a query pack") and clarifies what validation means: structural checks plus an optional per-query smoke test. The resource name 'query pack' also distinguishes it from the sibling validate_query_library, though the description does not say so explicitly.

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: nothing says when a structural-only validation is enough versus when a smoke test is warranted, and no mention of validate_query_library or run_named_query as alternatives. The word "optionally" hints at a mode but never states the condition that turns it on.

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