Skip to main content
Glama

util_chart_spec

Read-only

CSV to chart spec (Vega-Lite) — Turn CSV into a ready-to-render Vega-Lite v5 chart spec. Infers column types (number, date/year, category) and picks the right chart: line for trends over time, sorted bar for comparisons, scatter for two numbers, histogram for one number, pie only for 8 or fewer slices, heatmap for two categories. Returns the spec with data inlined (up to 500 rows), the reason, column types and alternatives. Optional: x=, y=, color= column names; goal=trend|compare|distribution|relationship|share; title=. Offline, nothing stored. Price: $0.003 USDC (Base, via x402).

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": {
      "csv": "<csv>"
    },
    "name": "util_chart_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYese.g. month,sales 2025-01-01,1200 2025-02-01,1500 2025-03-01,900

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the safety profile (readOnly, non-destructive, open-world); the description adds substantive behavior the agent could not otherwise know: a 500-row inlining cap, what the response contains (spec, reason, column types, alternatives), no server-side storage, and a $0.003 USDC x402 charge. One soft tension: 'Offline, nothing stored' sits awkwardly against openWorldHint=true, though the on-chain payment plausibly accounts for that hint.

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?

Front-loaded with the core transformation, then progressively more detail; every clause carries information (type inference, chart rules, output shape, pricing). It is a single dense block rather than structured lines, which slightly hurts scannability of the optional-argument list.

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 one-input tool with no output schema, the description covers return contents, row limits, cost, and offline behavior well. The gap is the argument list: the optional steering parameters described are not reflected in the schema, leaving an agent unsure which interface is authoritative.

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 coverage is 100% but the schema exposes only one property, csv, while the description advertises optional x=, y=, color=, goal= and title= arguments that do not exist in the input schema. An agent following the description would attempt arguments that likely fail validation, so the extra text misleads rather than adds meaning.

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 transformation with both endpoints named: CSV in, ready-to-render Vega-Lite v5 spec out. The chart-selection rules (line for trends, sorted bar for comparisons, scatter for two numbers, histogram for one number, pie ≤8 slices, heatmap for two categories) make it immediately distinguishable from siblings like util_csv_profile or util_graph.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The goal= enumeration (trend|compare|distribution|relationship|share) plus the chart-type-to-intent mapping tells an agent clearly when this tool is the right choice. It stops short of naming a sibling alternative or stating when not to use it, so it falls just below the top band.

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