Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

export_query_pack

Export a query pack as a runnable Python, Streamlit, and Power Query workspace with connection files, so saved DAX queries can be executed outside the server.

Instructions

Export a query pack as a runnable Python/Streamlit/Power Query workspace.

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

Input Schema

NameRequiredDescriptionDefault
overwriteNo
pack_pathYes
output_dirNo
connections_dirNoConnections
include_streamlitNo
include_power_queryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of disclosure, yet it omits that this is a filesystem-mutating operation with overwrite defaulting to true. It says nothing about what gets written where, whether existing directories are clobbered, what permissions or pack validity are required, or whether the pack must be validated first. Only the output artifact type is conveyed.

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?

A single front-loaded sentence with zero filler; the key artifact type leads. It is efficient, though the brevity leaves no room for the operational detail a six-parameter mutation tool needs.

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 tool with six parameters, 0% schema description coverage, and no annotations, one sentence is not enough. An output schema existing removes the need to describe return values, but the path semantics, overwrite risk, and directory arguments remain entirely unexplained.

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 six parameters, so nothing documents pack_path, output_dir, connections_dir, or the overwrite default. The mention of Python/Streamlit/Power Query faintly hints at the include_streamlit and include_power_query toggles, but that is the only connection drawn and it is indirect.

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 ("Export") and resource ("query pack") plus the concrete artifact produced (a runnable Python/Streamlit/Power Query workspace). It is clear on its own, but it never distinguishes this from neighboring tools such as scaffold_power_query or export_workstation, which plausibly produce related artifacts.

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 statement of when to choose this export over export_to_csv, export_workstation, or scaffold_power_query, and no prerequisites are given. The agent must infer the selection rule from tool names alone, which the context explicitly warns against.

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