Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as TheySaid. If you published it, claim ownership there.

Generate chart

generate_chart

Render a chart to a hosted image; returns a URL to embed in markdown as title. Types: bar (grouped vertical), horizontal_bar (best for long category names or ranked lists), stacked_bar (part-to-whole across categories), line / area (trend over an ordered axis), pie / doughnut (share-of-total of ONE series).

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": {
      "type": "<type>",
      "title": "<title>",
      "labels": "<labels>",
      "series": "<series>"
    },
    "name": "generate_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesPick the type that best fits the data.
titleYes
labelsYesCategory labels (x axis; slice labels for pie/doughnut).
seriesYesOne or more series; each values array aligns with labels. pie/doughnut use the first series only.
valueSuffixNoe.g. '%' or null.

Output Schema

NameRequiredDescriptionDefault
urlNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed4 schema fields changed
    • removedInput schema / properties / valueSuffix / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / valueSuffix / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=false, destructiveHint=false, so the write/non-idempotent profile is partly covered. The description adds the return artifact type and markdown embedding syntax, but says nothing about whether the hosted image persists, expires, or can be overwritten – relevant given idempotentHint=false. With an output schema present, much of the return-value burden is already carried elsewhere.

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?

A single tight two-clause statement: purpose and return first, then a compact type taxonomy with parenthetical guidance. No filler, though the semester-length semicolon sentence is dense and the per-type notes would scan faster as a 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 5-parameter rendering tool with annotations and an output schema, the description covers the action, the return value, and the main data-shape decision. It omits practical limits (max labels/series, image format, URL lifetime), which would matter for an agent assembling large datasets.

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 80%, so the baseline is 3, and the description goes beyond it by explaining what each enum value means in data terms (grouped vertical, part-to-whole across categories, trend over an ordered axis) where the schema only says 'Pick the type that best fits the data.' It also reinforces the one-series constraint for pie/doughnut that the schema notes for `series`.

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?

Opens with a specific verb and artifact: 'Render a chart to a hosted image; returns a URL'. It also states the downstream use (embed in markdown as ![title](url)), so the agent knows exactly what it gets back and how to consume it.

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?

Gives concrete selection rules per chart type ('horizontal_bar (best for long category names or ranked lists)', 'pie/doughnut (share-of-total of ONE series)'), which is real when-to-choose guidance for the enum. It does not name any alternative tool or say when not to render a chart, but the sibling catalog contains no competing chart tool, so tool-level routing guidance is largely unnecessary.

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