Skip to main content
Glama

mechacut

chart_from_data

Deterministic chart from records or CSV. Returns a Vega-Lite spec and/or a PNG. No LLM, nothing stored. Same request -> same sha256. Never reorders your data: bars/pies aggregate (sum) per category in first-appearance order; lines keep input order.

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": {
      "x": "<x>"
    },
    "name": "chart_from_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYescategory or numeric column
yNovalue column; required unless kind is histogram
csvNoCSV text, header row required
dataNorecords; or send csv
kindNobar, line, area, point, step, histogram, piebar
titleNo
widthNo
formatNoboth
heightNo
seriesNogrouping column

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it declares determinism ("Same request -> same sha256"), statelessness ("No LLM, nothing stored"), and precise ordering/aggregation semantics for bar/pie vs line. It omits error behavior, size limits, and whether PNG generation has any cost, keeping it short of a 5.

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?

Five short sentences, each carrying distinct information: purpose, output, safety/statelessness, determinism, and ordering semantics. The most decision-relevant facts are front-loaded and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with no annotations and no output schema, the description covers the return value, determinism, storage behavior, and the ordering guarantees that would otherwise surprise an agent. Remaining gaps are minor: error cases, format=\

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 coverage is only 60%, so the description must compensate, and it does for the most consequential parameters: it explains that bars/pies sum per category in first-appearance order while lines preserve input order, and that csv is an alternative to data. It adds little for title, width, height, and series, which remain undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Deterministic chart from records or CSV") plus the concrete outputs ("Vega-Lite spec and/or a PNG"). An agent immediately knows what it produces and from what inputs, with no ambiguity against unrelated siblings.

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?

The description implies the input choice ("records or CSV" / "or send csv") but never explicitly states when to prefer one over the other, and gives no guidance on selecting a chart kind or when not to use this tool. Usage is inferable but not spelled out.

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.