Skip to main content
Glama

Update chart

update_chart
Idempotent

Datawrapper: change an existing chart — texts, data, type, style, annotations or raw options. Only the fields you pass change. Annotations are appended by default (annotation_mode 'replace' swaps the whole set; remove single ones via unset of visualize.text-annotations / range-annotations or replace). unset removes options (e.g. ['visualize.custom-range-y']). dry_run: true shows the exact diff without saving. Published charts change only after publish_chart is called again. 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": "update_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
mapNoMap settings for choropleth, symbol and locator maps.
axesNoExplicit column roles, e.g. {x: 'Year', y: ['A','B']} or {labels: 'Country', bars: 'GDP'}. Usually auto-detected; see describe_chart_type for roles.
dataNoExactly one data source. Use csv/rows/columns for inline data (best below ~10,000 rows; line charts below ~1,000 points).
typeNoChange the chart type (id or alias).
introNoDescription below the title (HTML allowed: <b>, <i>, <a>).
notesNoFootnote below the chart (methodology, definitions).
styleNoIntent-level styling. The server maps each field to the right Datawrapper option for the chart type.
themeNoTheme id (see list_themes). Default: the team's or workspace's default theme (usually its custom theme).
titleNoHeadline. State the takeaway, e.g. 'Unemployment fell to a 20-year low'.
unsetNoDotted metadata paths to delete, e.g. 'visualize.highlighted-series', 'describe.byline'.
bylineNoAuthor credit.
dry_runNoReturn the diff without saving.
markersNoLocator maps only: points (max 500), lines, areas, circles, arrows and GeoJSON shapes.
previewNoRender a PNG preview so you can check the result (uses 1 of 3,000 free monthly exports). 'auto' follows the server setting.
alt_textNoScreen-reader description (aria-description): what the chart shows and its main finding. Strongly recommended.
chart_idYes
languageNoOutput locale for number/date formatting and footer texts, e.g. 'en-US', 'en-GB', 'de-DE'. Default: the team's or workspace's locale.
metadataNoRaw metadata sections to merge (describe, publish, data, annotate, axes, custom). Expert use; see https://www.datawrapper.de/developer/visualization-properties.
folder_idNoFolder to put the chart in (see list_folders).
transposeNoSwap rows and columns in Datawrapper (data.transpose). Set automatically for grouped/stacked column charts and multiple pies.
visualizeNoRaw metadata.visualize options (escape hatch). Validated against the chart type; see describe_chart_type and https://www.datawrapper.de/developer/visualization-properties. Applied after `style`.
source_urlNoLink to the data source.
annotationsNoText labels, shaded ranges and reference lines.
source_nameNoData source name, e.g. 'Eurostat'.
column_typesNoOverride how Datawrapper reads a column, e.g. {'Year': 'text', 'ZIP': 'text'}.
hide_columnsNoColumns to keep in the data but leave out of the chart (e.g. notes used only in tooltips).
show_columnsNoColumns to show again after hide_columns.
custom_fieldsNoCustom field values (metadata.custom), e.g. a CMS slug or article id defined in the team settings.
annotation_modeNoHow `annotations` combine with existing ones (default append).
computed_columnsNoAdded columns computed by Datawrapper — useful for live data (external_url) where values cannot be precomputed. A column with the same name is replaced.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent and non-destructive; the description goes much further, disclosing patch semantics, append-by-default annotation merging with annotation_mode 'replace', how `unset` deletes dotted metadata paths, dry_run diffing, and the publish lifecycle requirement. That is material behavioral context an agent cannot get from the annotations or schema.

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 core patch contract, then lifecycle and viewer notes; nearly every sentence carries information. The annotation-removal parenthetical is compressed to the point of being hard to parse, which costs a point.

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 30-parameter, deeply nested mutation tool with no output schema, the description covers the essentials: mutation scope, merge vs replace, removal, dry-run, and the publish step. It omits where chart_id comes from (search_charts) and offers no pointer to describe_chart_type / find_basemap for the large map and type subtrees, leaving a small gap for an agent working from scratch.

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 97% schema coverage the baseline is 3, and the description earns more by explaining cross-parameter semantics the schema cannot: that annotations are append-only unless annotation_mode is 'replace', that `unset` takes dotted paths like 'visualize.custom-range-y', and what dry_run returns. The parenthetical about removing single annotations via unset of visualize.text-annotations / range-annotations is a little ambiguous, keeping it off a 5.

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?

States a specific verb+resource ("change an existing chart") and enumerates what can be changed: texts, data, type, style, annotations, raw options. That clearly separates it from create_chart, copy_chart and publish_chart in the sibling list.

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 explicit operating context: only passed fields change, dry_run shows the diff, and published charts only change after publish_chart is called again — which effectively routes the agent to the follow-up tool. It stops short of naming alternatives for previewing (preview_chart) or inspecting (get_chart), so it is clear context rather than full when/when-not 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.