Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

quick_chart

Generates bar, line, or pie charts directly from DAX query results, saving each chart to a temp file or a specified output path.

Instructions

Generate a chart (bar, line, or pie) from DAX query results.

Returns JSON with file_path, chart_type, and row_count. If output_path is not provided, the chart is saved to a temp file.

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>",
      "chart_type": "<chart_type>",
      "x_column": "<x_column>",
      "y_column": "<y_column>"
    },
    "name": "quick_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
max_rowsNo
x_columnYes
y_columnYes
chart_typeYes
output_pathNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure itself. It notes that omitting output_path writes to a temp file, which is genuine behavioral context, and implies a live DAX execution against a named connection. But it is silent on permissions, whether the query is validated, truncation behavior via max_rows, or whether existing files at output_path are overwritten.

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?

Three short sentences, front-loaded with the action, followed by the return shape and the one default worth knowing. The return-shape sentence largely duplicates the existing output schema, which is mild redundancy, but nothing else is wasted.

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 the description need not explain return fields, and repeating them is optional. However, for a tool requiring five inputs with zero schema documentation, the description does not supply enough to call it correctly without guessing at column parameters and max_rows behavior.

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

Parameters3/5

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

Schema description coverage is 0% across 8 parameters, so the description bears most of the burden. It usefully names the allowed chart types and explains the output_path fallback, but leaves x_column and y_column semantics, max_rows, and connections_dir entirely unexplained, which is a real gap for a 5-required-parameter tool.

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?

States a specific verb and resource: generate a chart (bar, line, or pie) from DAX query results. The chart-type enumeration and the DAX-query input make the tool's function instantly graspable. It stops short of distinguishing itself from siblings such as export_to_csv or the query-builder tools, so it does not reach a 5.

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?

The description says what the tool does but never when to reach for it over an alternative, e.g. exporting to CSV versus charting, or how it relates to the query-builder step it presumably follows. There are no exclusions, prerequisites, or routing hints.

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