Skip to main content
Glama

ScorpTech x402 Tools

Chart Svg

chart_svg
Read-onlyIdempotent

Render a chart to a standalone SVG (plus base64 data URI) for reports, dashboards, emails and agent answers: bar, horizontal bar, stacked bar, line, area, scatter, pie and donut. Multiple series with legend, "nice" axis ticks, compact number labels (1.2k, 3.4M), optional value labels, gaps for null values, rotated category labels when crowded, light / dark theme, custom colours and size. Accessible (title + aria-label). Returns JSON with: type, width, height, series, categories, valueRange, elements, bytes. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/chart-svg

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": {
      "series": "<series>"
    },
    "name": "chart_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNobar
yMaxNo
yMinNo
themeNolight
titleNo
widthNo
colorsNo
heightNo
labelsNoCategory labels (x axis / slices)
legendNoDefault: on when there are several series (or for pie / donut)
seriesYes[{name, values: [numbers | null], color?}]; scatter values are [x, y] pairs. A plain array of numbers is one series.
xLabelNo
yLabelNo
valueLabelsNoPrint values on bars / points / slices

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety bar is low, and the description goes well beyond them: it discloses the output contract (JSON keys type, width, height, series, categories, valueRange, elements, bytes), so the agent knows what it gets back despite there being no output schema. It also discloses that the call is metered at $0.003 USDC per successful call via x402 on Base or Solana, which is a material behavioral fact an agent must know before invoking. The only shortfall is that it doesn't state failure behavior (e.g. whether a failed render is charged) or a size/output cap.

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 verb and return shape, then a dense feature list, then the output fields and pricing, so a reader can stop early. The feature enumeration runs long in comma-separated style without grouping, making it slightly catalog-like, but every clause (nice ticks, compact labels, null gaps, rotated labels, themes) maps to real capability rather than 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 14-parameter renderer with no output schema, the definition is unusually complete: it states the artifact produced, enumerates output JSON keys, discloses the paywall and cost, and provides an alternate HTTPS endpoint. Remaining gaps are axis-bound semantics for yMin/yMax and the labels/xLabel/yLabel params, which an agent can recover from the schema. Nothing an agent strictly needs to attempt a call is absent.

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 only 29% across 14 parameters, so the description must carry meaning, and it does for most of the important ones: type (enumerated chart kinds), series (multi-series, nulls become gaps), legend (multi-series default), valueLabels, theme (light/dark), colors, width/height, and title/aria-label for accessibility. It leaves yMin, yMax, labels, xLabel and yLabel unaddressed, so the agent must open the schema for axis scaling and category labelling semantics. That gap keeps it below a 5, but the compensation for low schema coverage is substantial.

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?

Specific verb plus resource: "Render a chart to a standalone SVG (plus base64 data URI)", immediately narrowed by an enumerated set of supported chart types (bar, hbar, stacked, line, area, scatter, pie, donut). An agent reading only this sentence knows exactly what the tool produces and can distinguish it from sibling SVG generators like identicon_svg by the chart vocabulary alone.

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 rather than prescribed: "for reports, dashboards, emails and agent answers" gives consumption contexts but never states when to choose this over an alternative, nor any when-not conditions. The alternate HTTPS transport is mentioned, which is a genuinely useful routing hint, but there is no explicit decision rule for picking between this and another rendering tool.

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