Skip to main content
Glama

Preview chart

preview_chart
Read-onlyIdempotent

Datawrapper: render the current state of a chart as PNG (desktop or mobile width, light or dark, optionally only the chart without title, description and footer) to check it visually. Cached per chart version; each new render uses 1 export from the monthly quota. In clients that support MCP Apps the result opens in an interactive chart viewer.

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": "preview_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
darkNoRender in dark mode.
plainNoOnly the chart, without header (title, description) and footer (notes, source).
widthNoWidth in px (default 600; ~360 to check mobile).
chart_idYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses caching behavior ('cached per chart version'), a quota side effect on fresh renders, and client-dependent behavior in MCP Apps clients. These are exactly the traits an agent cannot infer from the annotations or schema, and they do not contradict the readOnly hint since no chart data is mutated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the action and output format, followed by cost and client-behavior notes. Nothing is repeated and every clause carries information the caller needs.

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

Completeness5/5

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

Although there is no output schema, the description covers the return value (a PNG, or an interactive viewer in MCP Apps clients), the variants available, the caching model, and the quota impact. For a four-parameter render tool, an agent has everything needed to call it correctly and predict the cost.

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?

With 75% schema coverage the schema already documents dark, plain, and width, and the description reinforces them in functional terms (mobile-width checks, hiding title/description/footer). It adds a little framing but leaves chart_id's format and the caching key unexplained, so it is modestly better than the schema baseline rather than a full complement.

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?

The description opens with a specific verb and resource ('render the current state of a chart as PNG') and enumerates the available render variants (desktop/mobile width, light/dark, plain). Combined with 'to check it visually' and the caching/quota notes, it clearly separates a preview render from a final export.

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?

It states the use case explicitly ('to check it visually') and adds a cost consideration (one export per new render from the monthly quota) that helps an agent decide whether to call it. It does not name an alternative such as export_chart or state when not to use it, so it stops short of full routing guidance.

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.