Skip to main content
Glama

Create chart

create_chart

Datawrapper: create a chart, map or table in one call (create + upload data + style). Everything is validated before anything is sent, so a failing call costs no quota. Pass type (id or alias, see describe_chart_type), data (csv/rows/columns/external_url/google_sheet) or markers (locator maps), a takeaway title, source_name and alt_text. Use style for common settings (sort, colors, highlight, number format, y range, legend…) — it maps to the right option per chart type. annotations adds text, shaded ranges and reference lines. visualize is the raw escape hatch. Maps: choropleth needs map.basemap (id or search phrase) — regions are matched and normalized automatically; symbol maps use lat/lon columns. The chart is created as an unpublished draft and a PNG preview is returned; publishing is a separate, confirmed step (publish_chart). 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": {
      "type": "<type>"
    },
    "name": "create_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).
typeYesChart type id or alias, e.g. 'd3-lines', 'bar', 'choropleth', 'table'.
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'.
bylineNoAuthor credit.
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.
team_idNoTeam that owns the new chart (see whoami). Default: your primary team, whose members see the draft.
alt_textNoScreen-reader description (aria-description): what the chart shows and its main finding. Strongly recommended.
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`.
workspaceNoWorkspace slug for the new chart (see whoami).
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.
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.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, but the description adds behavior they do not cover: the chart is created as an unpublished draft, a PNG preview is returned, and publishing is a separate confirmed step. The pre-send validation / no-quota-on-failure detail is genuinely useful operational context. It stops short of covering preview export cost or retry/idempotency implications, which is why it is not a 5.

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?

The key facts are front-loaded — what it creates, the validation guarantee, then the required inputs, then the map special cases and the draft/publish lifecycle. It is dense with backtick-quoted parameter names rather than prose padding. A few parentheticals (MCP Apps viewer, alias hints) could be trimmed without loss.

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 28-parameter creation tool with no output schema, the description covers the essentials an agent needs: the one required parameter (type), the mutually exclusive data-source options, the draft-not-published lifecycle, and what comes back (a PNG preview). It is close to complete; the remaining gap is that it does not describe error/failure surfaces beyond the validation guarantee.

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 description coverage is 100%, so the baseline is 3, but the description adds semantic mapping the schema does not: type accepts an id or alias, data accepts csv/rows/columns/external_url/google_sheet, style is an intent-level layer that maps to the right option per chart type, and visualize is the raw escape hatch applied after style. It also gives the map-specific rule that choropleth needs map.basemap while symbol maps use lat/lon columns.

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 opening states a specific verb and resource — 'create a chart, map or table in one call (create + upload data + style)' — which is unambiguous and covers the three output families in one phrase. An agent can immediately tell this apart from publish_chart or update_chart without opening the schema.

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 routes the agent to siblings for the information it needs ('see describe_chart_type', 'see find_basemap', 'see list_themes', 'see whoami') and explicitly defers publishing to publish_chart as a separate confirmed step. It also gives a reason to prefer this call (validation happens before sending, so a failed call costs no quota). What it lacks is an explicit contrast with update_chart or copy_chart, so the when-not-to-use case is only implied.

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.