Skip to main content
Glama

Quattr

build_chart_spec

Read-only

Build a minimal Vega-Lite chart specification from result rows. Pick the mark and x/y columns, or let them be inferred (first text/date column as x, first numeric column as y).

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": {
      "rows": "<rows>"
    },
    "name": "build_chart_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
markNoline
rowsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety behavior is covered. The description adds useful behavioral detail by specifying inference rules for x/y columns, but does not describe the returned spec structure or how it relates to rendering.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two front-loaded sentences with no wasted wording. Purpose comes first, followed immediately by the useful inference 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?

For a chart-spec builder with four parameters and no output schema, the description covers the essential call semantics but leaves gaps: it does not explain the return object shape, does not mention the mark default, and does not route between this tool and render_chart.

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. It does so for the most ambiguous parameters x and y by explaining the inference fallback (first text/date column as x, first numeric column as y), and it identifies rows as result rows. Mark options and default come from the schema enum, so the remaining gap is minor.

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 states a specific verb and resource: build a minimal Vega-Lite chart specification from result rows. It clearly distinguishes the output from a rendered chart, but does not explicitly differentiate itself from sibling tools such as render_chart.

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 explains parameter inference but gives no explicit guidance on when to use this tool versus alternatives like render_chart. It implies usage by saying it builds a spec from result rows, but task-selection guidance is absent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources