Skip to main content
Glama

Get chart SVG

get_chart_svg
Read-only

Returns the inline SVG markup of a chart created earlier, as text (about 20 KB).

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": {
      "chart_id": "<chart_id>"
    },
    "name": "get_chart_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
chart_idYes
text_scaleNoLay every text out this many times larger (1 to 2); the chart keeps its width. Omit for the saved size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description does add genuinely useful behavior: the return is inline SVG text at roughly 20 KB, which matters for context budgeting. It says nothing about failure modes (e.g., unknown chart_id) or whether the returned markup is a snapshot versus live.

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 front-loaded sentence with no filler; the size hint is placed where it is most useful. It is arguably too terse rather than bloated, but nothing in it is wasted.

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

Completeness3/5

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

For a two-parameter read tool with no output schema, the description covers what is returned and roughly how large it is, which is the key information. It leaves gaps on chart_id provenance and error behavior when the id is invalid or the chart was deleted.

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 coverage is 50%: text_scale is fully documented in the schema, while chart_id has no schema description. The description only weakly compensates by implying chart_id refers to a previously created chart; it does not explain where to obtain an id or its format. Baseline 3 fits given the schema carries text_scale's meaning.

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

Purpose4/5

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

The description uses a specific verb+resource ("Returns the inline SVG markup of a chart") and adds the format detail (inline SVG as text) plus approximate payload size. It implicitly scopes the tool to charts created earlier, which separates it from creation tools, though it never names a sibling such as get_live_chart_embed as the alternative.

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 only implied: "a chart created earlier" signals a prerequisite that the chart must already exist, but there is no explicit when-to-use or when-not-to-use guidance, and no pointer to the alternative embed-viewing tool. An agent must infer the retrieval use case from the purpose statement alone.

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