Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

scaffold_dax_workspace

Creates a portable DAX workspace folder with a ready-to-run executor script, notebook, query files, and project config so you can run DAX queries against Power BI models from Python.

Instructions

Scaffold a portable DAX workspace folder with a bare-bones executor script.

Creates: run_query.py, notebook.ipynb, queries/.dax, pyproject.toml, README.

STOP — before calling this tool you MUST:

  1. Ask the user: "Where should I save the Python workspace?" and wait for their answer.

  2. Use their answer as output_dir. Do NOT invent a path.

After scaffolding, explain to the user:

  1. What files were created and what each one does

  2. How to run it: cd <output_dir> && uv run run_query.py

  3. That they can copy execute_dax() / dax_to_pandas() from run_query.py into any notebook

  4. To edit CONNECTION in run_query.py if it shows placeholder connection values

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": {
      "output_dir": "<output_dir>",
      "query_text": "<query_text>"
    },
    "name": "scaffold_dax_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
output_dirYes
query_nameNoquery
query_textYes
project_nameNo
connection_nameNo
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It usefully reveals the exact artifacts created and warns that CONNECTION in run_query.py may hold placeholder values, but says nothing about whether an existing directory is overwritten, whether nested paths are created, or what happens on partial failure — material for a filesystem-writing tool.

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?

Front-loaded with a one-line purpose, then a compact file manifest, then numbered imperatives. Every line carries actionable content; the numbered 'after scaffolding, explain to the user' list is slightly long but directly affects the agent's post-call behavior.

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-value explanation is not owed, and the file manifest plus run command make the outcome legible. The gaps are four undocumented parameters and no overwrite/safety semantics for a tool that writes files to a user-chosen path.

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 6 parameters, so the description must compensate and largely does not. Only output_dir is explained (as the user-supplied save location), while project_name, connection_name, and connections_dir are never mentioned at all, and query_name/query_text are only implied by the file list and the placeholder syntax.

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?

Specific verb (scaffold) plus specific resource (portable DAX workspace) and an explicit inventory of the files created (run_query.py, notebook.ipynb, queries/<name>.dax, pyproject.toml, README). It is clearly differentiated in substance from scaffold_power_query and scaffold_streamlit_app by the DAX/executor framing, though no sibling is named to make the routing explicit.

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 firm procedural gate: ask the user where to save the workspace, wait for the answer, and use it as output_dir rather than inventing a path. It also prescribes a post-call user briefing. It does not, however, state when to prefer this over scaffold_power_query or scaffold_streamlit_app, so choice between sibling scaffolds is left implicit.

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