Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

get_query_builder

Read-only

Load a saved query builder definition and its generated DAX text by query name for reuse or inspection.

Instructions

Load a saved query builder definition and generated DAX text by query name.

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_name": "<query_name>"
    },
    "name": "get_query_builder"
  }
}

Input Schema

NameRequiredDescriptionDefault
query_nameYes
queries_dirNoqueries

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.1/5.0
Behavior3/5

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

The readOnlyHint=true annotation is consistent with 'Load', and the description usefully notes that the payload includes both the definition and generated DAX text. It says nothing about behavior when the query name is unknown, whether the DAX is regenerated or stored, or how the queries directory affects lookup — gaps that matter for a file-backed read.

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

Conciseness5/5

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

One front-loaded sentence with the action, the returned artifacts, and the lookup key; no filler or redundancy.

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

Completeness3/5

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

Because an output schema exists, the description need not document return shape, and it correctly stays brief. However, for a two-parameter file-backed lookup it leaves the directory parameter and failure behavior entirely unaddressed, which is a meaningful omission at 0% schema coverage.

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%, so the description must carry parameter meaning. It clarifies query_name as a lookup key, but never mentions queries_dir (default 'queries'), a non-obvious second parameter controlling where the definition is read from.

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 gives a specific verb ('Load') and a precise resource ('saved query builder definition and generated DAX text'), keyed by query name. It is clearly a read of persisted query state, distinguishing it in spirit from save_query_builder, though it never names a sibling 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 statement of when to use this tool versus save_query_builder, get_query_builder_schema, or run_named_query, and no exclusions or prerequisites. The only hint is the phrase 'by query name', which implies you must already know a saved name but does not guide selection.

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