Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

scaffold_streamlit_app

Generate a standalone Streamlit Python app that runs an embedded DAX query, displays and filters results, builds charts and pivots, enables downloads, and supports CSV or JSON uploads for offline exploration.

Instructions

Generate a Streamlit Python app for visualizing DAX query results.

Creates a standalone .py file that uses Streamlit to execute the embedded DAX query, display results, filter columns, build charts/pivots, download artifacts, and drag/drop CSV or JSON exports for offline exploration.

Parameters: connection_name: Name of the DAX connection (embedded in the generated app). query: The DAX query to embed in the generated app. title: Page title shown in the Streamlit app. output_path: If provided, write the generated code to this file path. connections_dir: Directory containing named DAX connection YAML files.

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

Input Schema

NameRequiredDescriptionDefault
queryYes
titleNoDAX Query Results
output_pathNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the meaningful traits: it produces a standalone .py file, embeds the DAX query and connection name into that file, and writes to disk when output_path is supplied. It omits consequential details such as what is returned when output_path is empty, whether an existing file at that path is overwritten, and what happens if the named connection cannot be resolved.

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?

The description is front-loaded with the one-sentence purpose, then the artifact's capabilities, then a clean parameter block. The parameter list is justified by the 0% schema coverage, so it is not redundant padding; wording is tight throughout.

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 required, and the description covers purpose, generated features, and all parameters. For a code-generating, file-writing tool with no annotations, it still leaves gaps on side effects (file overwrite, filesystem writes, dependency on connection YAML resolution) that an agent would want before invoking it.

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

Parameters4/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 does: all five parameters receive a one-line meaning, including the non-obvious distinction that connection_name is embedded into the generated app and that connections_dir points at YAML connection definitions. The definitions are shallow — defaults and path format are left to the schema, and overwrite semantics for output_path are unstated — but coverage is complete.

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 opening line gives a specific verb and artifact ("Generate a Streamlit Python app for visualizing DAX query results") and the follow-up sentence enumerates the generated app's capabilities. It is clear what the tool produces, though it never contrasts itself with the other scaffold_* tools that also generate code artifacts.

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?

Usage is implied by the stated outcome — an interactive Streamlit UI plus offline CSV/JSON drag-and-drop exploration — so an agent can infer the scenario. However, there is no explicit when-to-use/when-not-to-use statement, no prerequisite conditions (e.g. the connection must exist in connections_dir), and no routing guidance among the sibling scaffolding tools.

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