Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

save_query_to_pack

Save a DAX query into a durable on-disk query pack for reuse, rejecting duplicate query IDs unless overwrite is explicitly set.

Instructions

Save a DAX query into a durable query pack on disk.

Unlike the session workstation, durable query packs reject duplicate query IDs unless overwrite=True is explicitly provided.

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>",
      "connection_name": "<connection_name>",
      "query": "<query>",
      "description": "<description>"
    },
    "name": "save_query_to_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
queryYes
query_idNo
overwriteNo
pack_pathYes
table_nameNo
descriptionYes
display_nameNo
connection_nameYes
parameters_jsonNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does add real value by disclosing the duplicate-ID rejection and the overwrite=True escape hatch, but it omits permissions, whether pack_path must exist, what happens to an existing pack on non-overwrite failure, and any disk/IO side effects — significant gaps for a write-to-disk tool.

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?

Three short sentences with the core action front-loaded, followed immediately by the one non-obvious behavioral constraint. No filler or repetition.

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?

For a 10-parameter mutation tool with zero annotation coverage, the description covers only the purpose and one edge case. An output schema exists, so return values need not be described, but the bulk of the input surface remains unexplained and the agent has no guidance on how pack_path/query_id/connection_name interact.

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 10 parameters, so the description must compensate and it does not. Only overwrite is explained; query_id, pack_path, connection_name, description, tags, table_name, display_name, and parameters_json are left entirely undocumented in both schema and prose.

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 — 'Save a DAX query into a durable query pack on disk' — which is unambiguous. It gestures at differentiation from the 'session workstation' alternative, but doesn't name the sibling tool (e.g. save_to_workstation), so routing requires the agent to infer the mapping.

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 contrast with the session workstation implies when this tool is appropriate (durable vs. ephemeral persistence), which is useful implied guidance. However, it never states an explicit 'use this when... instead of...' rule, and with siblings like save_validated_query and save_query_builder present, the agent gets no direct routing signal.

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