Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

run_named_query

Read-only

Execute a pre-configured named DAX query and return a complete preview with a data table and numbered follow-up menu for quick analysis.

Instructions

Run a pre-configured named query and return a preview.

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": {
      "query_name": "<query_name>"
    },
    "name": "run_named_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
config_dirNoqueries
query_nameYes
preview_rowsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.4/5.0
Behavior4/5

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

readOnlyHint=true already covers the safety profile, and the description usefully adds that the return value is a fully pre-formatted payload containing both a data table and a numbered follow-up menu that must be surfaced verbatim. That is genuine behavioral context an agent could not infer from annotations or the schema. It still says nothing about how preview size interacts with cost or whether large named queries are truncated server-side.

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?

Purpose is front-loaded in a single short sentence, followed by an operational directive. The all-caps emphasis is a bit noisy, but every sentence serves a purpose and there is no filler.

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?

An output schema exists, so return shapes needn't be spelled out, and the safety profile comes from annotations. The gap is on the input side: with three undocumented parameters and no explanation of what constitutes a valid named query, an agent cannot confidently supply query_name or understand config_dir scoping from this definition alone.

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 three parameters, so the description carries the full burden and does not meet it: query_name, config_dir (including the "queries" default and what a config directory means), and preview_rows are never explained. Only the word "preview" loosely gestures at preview_rows, leaving the required query_name identifier format and the meaning of config_dir entirely undocumented.

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?

States a specific verb and resource ("Run a pre-configured named query") plus the scoping detail that it returns a preview rather than a full result set. It implicitly contrasts with ad-hoc/connection querying through the word "pre-configured", but never names a sibling explicitly, so it falls short of full differentiation.

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

Usage Guidelines3/5

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

The phrase "pre-configured named query" hints that this tool is for saved queries rather than ad-hoc ones, but there is no explicit when-to-use/when-not guidance and no named alternative such as run_ad_hoc_query or run_connection_query. All remaining text is about how to present output, not when to choose this tool.

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