Skip to main content
Glama

API Keg — Executive SVG Chart & KPI Card Compiler

Render Publication-Grade Executive SVG Chart

render_chart
Read-onlyIdempotent

Compiles structured business data into a crisp standalone SVG + base64 data URI across bar, stacked_bar, horizontal_bar, line, area, waterfall, funnel, and gantt chart types, returning a verified zero-overlap layoutReport. Pricing: $0.002 USD per rendered executive SVG chart (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

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": {
      "chartType": "<chartType>"
    },
    "name": "render_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoExecutive headline chart title.
widthNoTarget SVG viewport width in pixels.
heightNoTarget SVG viewport height in pixels (auto-expands if dense rows/margins require it).
seriesNo1 to 12 data series for Cartesian charts.
paletteNoAccessible executive palette ('corporate', 'slate', 'emerald', or 'dark').corporate
footnoteNoSource attribution or footnote rendered along the bottom edge.
showGridNoRender subtle dashed reference gridlines.
subtitleNoContext subtitle (timeframe, unit scope, or cohort).
chartTypeYesEnterprise chart type: 'bar', 'stacked_bar', 'horizontal_bar', 'line', 'area', 'waterfall', 'funnel', or 'gantt'.
categoriesNoCategory or time-bucket labels for bar, stacked_bar, horizontal_bar, line, and area charts.
ganttTasksNoTimeline tasks and milestones for 'gantt' charts.
showLegendNoOverride automatic legend visibility.
unitSuffixNoOptional unit suffix appended to formatted values (e.g. ' ms', 'x').
xAxisLabelNoOptional horizontal axis title.
yAxisLabelNoOptional vertical axis title.
includeZeroNoForce numeric scale to include the 0 baseline.
valueFormatNoAxis and data-label formatter ('compact' -> 12.4K, 'currency' -> $1.2M, 'percent' -> 45.3%, 'percent_ratio' -> 0.453 as 45.3%, 'integer', 'decimal', 'raw').compact
funnelStagesNoOrdered conversion stages for 'funnel' charts.
referenceLineNoOptional target/threshold reference line.
currencySymbolNoCurrency symbol prefix used when valueFormat is 'currency'.$
showDataLabelsNoRender collision-checked value labels directly on bars/points.
waterfallStepsNoOrdered bridge steps for 'waterfall' charts.
ganttMilestonesNoOptional vertical milestone guide lines for 'gantt' charts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 safety is covered. The description adds genuinely new behavioral facts: a per-chart price of $0.002 via x402 micropayment, a free dry-run validation mode, the auto-expanding height behavior is in schema but the zero-overlap layoutReport guarantee is stated here, and that output is a standalone SVG plus data URI.

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?

Two tight sentences, front-loaded with the core capability before pricing and the free-validation escape hatch. Minor promotional adjectives ('crisp', 'publication-grade' in the title) are the only padding.

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 23-parameter tool with no output schema, the description still names the return shape (SVG, base64 data URI, layoutReport) and the pricing/dry-run mechanics, which are the non-schema facts an agent needs. It does not hint at which parameter families are chart-type-specific, but the schema's per-field descriptions largely close that gap.

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 100%, so the schema already carries the full parameter burden, and the description adds no additional meaning about individual parameters beyond restating the chart-type list. Baseline 3 applies.

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 ('Compiles structured business data') and concrete output artifacts (standalone SVG + base64 data URI + layoutReport), and enumerates all eight supported chart types. This lets an agent distinguish it from render_kpi_card, which by name covers a different artifact class.

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?

Offers one useful usage hint — passing ?dry_run=true on REST to validate the schema for free — plus the pricing model, which implies caution about repeated calls. However, it never states when to choose this over render_kpi_card or when a chart type is inappropriate (e.g., gantt needs ganttTasks rather than series), so selection guidance is only implied.

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