Repository navigation
Datawrapper MCP V2 2.6.0
Unknown fields are reported
create_chartandupdate_chartreject fields they do not know, at any depth, before anything is sent to Datawrapper:style: {sortt: true}now answersstyle: unknown field "sortt" … Did you mean "sort" or "sort_by"?. Before, such a field was dropped without a word and the chart missed what was asked for. Free-form parts (series names inseries_colors,visualize,metadata, data rows) accept any key as before.describe_chart_typelists thestylefields a chart type supports, with their values. The list is derived from what the server does with each field for that type; the type references of thebuilding-chartsskill carry it too.
Output schemas
- 16 tools declare what they return in
structuredContent(outputSchema): the chart tools (create_chart,update_chart,get_chart,preview_chart,copy_chart,search_charts,publish_chart,get_embed_code), folders, comments,analyze_data,find_basemapandmatch_regions. Clients that process results in code know the fields. - A result always fits its schema: a success without structured content carries its text as
message, and content that does not fit is sent in that form and logged (field names only) instead of failing a call that already changed the chart.
Smaller tool list
update_chartnames the fields ofstyle(with their values),mapandannotationsand points tocreate_chartinstead of repeating their schemas;markerskeeps its schema. The tool list shrinks from about 167,000 to 133,000 characters, which every client without deferred tool loading sends with each conversation. Arguments are validated against the full schemas as before; the same call gives the same result and the same Datawrapper requests.DW_TOOL_SCHEMA=fullbrings the long form back.- Agent evals back the change (Haiku and Sonnet, three runs per task). With tool search, the six tasks that change an existing chart passed as often as with the long form (Sonnet 17 of 18 runs, Haiku 14 of 18, in both forms), with the same number of tool calls and 36–40 % fewer input tokens. An earlier, shorter form that also left
markersand thestylevalues out passed with all schemas in context but needed extra calls for map and marker changes under tool search; that is why those two stayed in. describe_chart_typelists the fields inside object-valuedstylefields with their values (color_scale.mode:"continuous" | "steps"). With the field names alone, agents guessed values.- Agent evals:
npx tsx scripts/eval/run.tsletsclaude -psolve the tasks inevals/against a fake Datawrapper API and scores the charts by machine (see docs/development.md). npx tsx scripts/tool-budget.tsprints the size of every tool definition; a test keeps the list below a ceiling.
Chart viewer (MCP App)
- Larger preview: inline, the image uses the space header, toolbar and warnings leave of the 500 px card instead of a fixed 260 px; in fullscreen it fills the stage width, keeps its aspect ratio and stays within the host's container height.
- Sharper preview:
preview_charttakes an optionalzoom(1–2, default 1). The viewer asks for zoom 2 on Refresh, the width/theme/chart-only toggles and when it switches to fullscreen, and falls back to 1x if a 2x image exceeds the size limit.create_chartandupdate_chartkeep returning 1x images, so the model's context does not grow.
Security
Findings of a security audit of 2.5.3. None is known to have been used.
- One-time sign-in links need confirmation:
open_in_editorreturns the plain editor URL unless the user confirmed the link (client dialog oruser_confirmed: true). While an issued link works, every tool refuses input that contains it, so text planted in a chart or comment cannot make the assistant write it into a chart, a comment or a URL. - Basemap caches are per user: on a shared server the basemap list and region values one token fetched were served to every user for a day. Private basemaps of a workspace stay with the accounts that can read them; users with the same list still share one copy.
- Moves and copies into another team ask first:
move_charts,copy_chart,update_folderandcopy_folderneed confirmation when charts or folders enter a team or workspace they are not in (its members can then see and edit them). Moves inside a team, into a folder or to the personal charts are unchanged. - No redirect for unknown clients before the user acted:
/authorizeanswers a request it cannot accept (wrongresponse_type, missing PKCE, wrongresource) with an error page unless the client is a built-in known one. Before, a self-registered client could turn a link to the server into a redirect to its own address. - The redirect that carries the authorization code sends
Cache-Control: no-storeandReferrer-Policy: no-referrer. - A failed client-metadata fetch shows a fixed text; the network error (address, port) goes to the log.
/mcpruns without a checked bearer only in the localMCP_AUTH=nonemode (no behaviour change; guards against a later routing mistake).