Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

validate_query_library

Runs saved query-library examples against a connection and records validation metadata, helping verify reusable DAX queries stay valid before use.

Instructions

Execute saved query-library examples and persist validation metadata.

max_rows caps returned rows but does not guarantee a cheap server-side DAX plan; keep validation queries intentionally small and well-filtered.

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>"
    },
    "name": "validate_query_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_rowsNo
query_idNo
connection_nameYes
connections_dirNoConnections
continue_on_errorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description does disclose two meaningful traits: the call executes against the server and persists validation metadata, and max_rows does not imply a cheap DAX plan. It omits permissions, whether persistence is idempotent or overwrites prior metadata, and how continue_on_error affects partial failures.

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?

Three short sentences, front-loaded with the purpose and followed by the one caveat that matters. The mid-sentence line break is slightly awkward but nothing is redundant.

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

Completeness5/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 no explanation. What remains missing is documented elsewhere: five parameters at 0% schema coverage and no annotations leave real gaps in the definition itself.

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 compensate, and it only clarifies one of five parameters (max_rows, including the valuable caveat that it caps rows but not plan cost). query_id, connection_name, connections_dir, and continue_on_error get no meaning from either the schema or the description.

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-and-resource pair: execute saved query-library examples and persist validation metadata. It is clear what the tool does, but it never distinguishes 'query-library' from the closely named sibling validate_query_pack, leaving an agent unsure which validation surface applies.

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 explicit when-to-use or when-not-to-use guidance, and no alternative is named despite validate_query_pack and run_named_query existing as plausible confusions. The only directive ('keep validation queries intentionally small and well-filtered') is operational advice, not routing guidance.

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