Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

save_to_workstation

Save DAX queries to an ephemeral session workstation for iterative exploration. Keep queries available during a chat session, then export them for permanent storage.

Instructions

Save a DAX query to the session workstation for iterative exploration.

The workstation is ephemeral — it resets when the server restarts (i.e. each new chat session starts fresh). Use export_workstation to persist queries permanently as a scaffold project or .dax files.

Parameters: connection_name: Name of the connection this query targets. query: The DAX query text. description: Human-readable description of what the query does. query_name: Optional slug name; auto-generated from description if blank. connections_dir: Connections directory (unused for storage, kept for API compat).

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

Input Schema

NameRequiredDescriptionDefault
queryYes
query_nameNo
descriptionYes
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral load and does so for the most important trait: the workstation is ephemeral and resets on server restart. It does not disclose overwrite semantics for a duplicate query_name or validation/error behavior, which is the main remaining gap.

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 and the ephemerality/alternative routing are front-loaded, then a tidy parameter block. The one thin line is connection_name, which largely restates its own name, but the rest of the block earns its place given 0% schema coverage.

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

Completeness4/5

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

Return values are covered by an output schema, so the description only needs goal, lifetime, alternative, and parameter meaning — all present. It stops short of describing behavior on name collision or invalid DAX, which would complete the picture for a save operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate and does: it documents all five parameters, explains that query_name is auto-generated from description when blank, and flags connections_dir as unused for storage (kept only for API compatibility) — information an agent could not otherwise obtain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Save a DAX query') plus the destination ('session workstation'), and immediately contrasts with export_workstation, so an agent can distinguish it from persistence-oriented siblings without opening a schema.

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

Usage Guidelines4/5

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

Gives a clear use case ('iterative exploration') and an explicit alternative with its selecting condition ('Use export_workstation to persist queries permanently'). It does not address the other save_* siblings, but it names the one that matters for the ephemeral-vs-permanent decision.

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