Skip to main content
Glama

Get chart

get_chart
Read-onlyIdempotent

Retrieve and display a Datawrapper chart by ID, with optional metadata, data rows, and embed codes; results can open in an interactive viewer.

Instructions

Datawrapper: show one chart. include adds sections: 'metadata' (describe/visualize/axes, capped), 'data' (first rows as CSV), 'embed' (embed codes, published charts only). 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": "get_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNo
chart_idYes
max_rowsNoRows of data to include (default 25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds real behavior: the 'metadata' section is capped, 'data' returns only the first rows as CSV, 'embed' codes exist only for published charts, and clients with MCP Apps open an interactive viewer. That published-only caveat is the kind of constraint an agent cannot get from structured fields. It stops short of describing pagination or what happens when a section is unavailable, but the bar is lower given annotations.

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?

Three tight sentences, front-loaded with the core action, then the section semantics, then the client-dependent rendering note. The parenthetical 'capped' for metadata is slightly vague about what the cap is, but no sentence is wasted.

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?

With no output schema, the description carries the burden of explaining returns, and it does so per section (metadata fields, CSV rows, embed codes) plus the interactive viewer behavior. For a 3-parameter read tool with annotations present, the remaining omission — where chart IDs come from and what a missing/unpublished chart produces — is minor.

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 only 33% and the `include` array's enum values carry no per-value descriptions, so the description's explanation of what each of 'metadata', 'data', and 'embed' actually returns is doing genuine work. `max_rows` and `chart_id` are left to the schema (default 25 and the 5-character pattern respectively), which is acceptable, though the description never clarifies the relationship between `max_rows` and the 'data' section.

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 gives a specific verb+resource ('show one chart') and names the product context (Datawrapper), so the agent knows this retrieves a single chart by ID. It does not distinguish itself from nearby siblings such as preview_chart or export_chart, leaving the read-vs-render boundary to inference.

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 stated: the agent learns the optional `include` sections and the published-only constraint on 'embed', which effectively signals when those sections are useful. There is no explicit statement of when to choose this tool over preview_chart, export_chart, or search_charts, and no note on how the chart_id is obtained.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.