Skip to main content
Glama

Export chart

export_chart
Read-onlyIdempotent

Datawrapper: export a chart as PNG, SVG or PDF (print quality, CMYK, transparent background, dark mode, custom size), or as a ZIP with index.html and the scripts to host the published chart yourself. PNG is returned as an image; SVG/PDF/ZIP as an embedded resource. In local (stdio) mode save_to writes the file into the configured export directory. SVG/PDF require a paid Datawrapper plan. Uses 1 export from the monthly quota.

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

Input Schema

NameRequiredDescriptionDefault
darkNo
logoNo
modeNoPDF color mode (cmyk for print).
unitNo
zoomNoPNG pixel density (default 2 = retina).
plainNoOnly the chart, without title/description/footer.
scaleNoPDF scale factor.
themeNoRender with another theme without changing the chart.
widthNoWidth in `unit` (default 600 px).
formatNoDefault png. zip: self-hosting package of the published chart (size options do not apply).
heightNoHeight or 'auto' (default).
logo_idNoWhich logo to show when the theme defines several.
save_toNostdio only: file name inside DW_EXPORT_DIR (default ./exports).
chart_idYes
ligaturesNoTypographic ligatures (default true).
full_vectorNoSVG/PDF: export everything as vectors, including the basemap of locator maps (otherwise raster). Tilted maps, basemap labels and 3D buildings stay raster.
transparentNo
border_colorNo
border_widthNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent/non-destructive; the description adds what they cannot: the return channel differs per format (PNG as an image, SVG/PDF/ZIP as an embedded resource), that a file may be written locally via `save_to` in stdio mode, that SVG/PDF need a paid plan, and that each call burns one export from the monthly quota. That is exactly the behavioral context an agent needs before invoking a quota-consuming export.

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?

Front-loaded with the formats, then return channel, then mode/plan/quota constraints — each sentence carries distinct information with no filler. The long parenthetical format list is dense but justified given the option breadth.

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 19-parameter export tool with no output schema, the description covers the essential decision points: available formats, what comes back, quota and plan cost, and the stdio-only file-write path. Remaining gaps are per-parameter appearance details that the schema largely handles.

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?

With 19 parameters and only 63% schema description coverage, the schema still carries most of the meaning (enum values, ranges, units). The description contributes targeted semantics — that size options do not apply to `zip`, and how `save_to` resolves against the export directory — but leaves the many appearance parameters (theme, logo, border, ligatures) unexplained beyond their schema text.

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 states a specific verb (export) and resource (a chart) plus the full output surface: PNG, SVG, PDF, or a ZIP self-hosting bundle. An agent can immediately tell this is a rendering/export tool rather than a read tool. It does not name a sibling (e.g. preview_chart) to contrast with, so it falls short of a 5.

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?

It gives real operating constraints: SVG/PDF require a paid plan, each call consumes one export from the monthly quota, and `save_to` only applies in local stdio mode. What is missing is routing guidance — nothing says when to pick this over preview_chart or get_embed_code, so usage is implied rather than directed.

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.