Skip to main content
Glama

Publish chart

publish_chart
Idempotent

Publishes or republishes a Datawrapper chart so it is publicly visible and embeddable, returning the public URL, version, embed codes and preview image.

Instructions

Datawrapper: publish (or republish) a chart so it is publicly visible at its URL and embeddable. Returns the public URL, version, embed codes (responsive iframe) and a preview image. Requires confirmation: a client dialog, or user_confirmed: true after the user agreed. Republishing updates all embeds. 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": "publish_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
chart_idYes
user_confirmedNotrue means the user explicitly approved this exact action in the conversation; it then counts as the confirmation and no client dialog is shown. Without it, clients with elicitation show a confirmation dialog.
notify_webhooksNoCall the workspace's publish webhooks (default true; false for silent test publishes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • changedInput schema / properties / user_confirmed / description
      Previous value: -"Confirmation flag for clients without a confirmation dialog: true means the user approved this exact action in the conversation. Ignored when the client shows its own dialog."New value: +"true means the user explicitly approved this exact action in the conversation; it then counts as the confirmation and no client dialog is shown. Without it, clients with elicitation show a confirmation dialog."
  2. Changed1 schema field changedv1.3.0
    • addedInput schema / properties / notify_webhooks
      Added value: +{
      +  "description": "Call the workspace's publish webhooks (default true; false for silent test publishes).",
      +  "type": "boolean"
      +}
  3. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=true), the description discloses the confirmation gate, the side effect that republishing updates all existing embeds, the returned artifacts (public URL, version, embed codes, preview image), and the interactive viewer behavior in MCP Apps clients. That is substantial behavioral context an agent could not derive from the structured fields.

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?

Four tight sentences, front-loaded with the action and its effect, followed by confirmation requirements and return values. The trailing MCP Apps viewer note is marginal but genuinely useful for client-behavior expectations, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by enumerating the returned values (URL, version, embed codes, preview image). With the confirmation flow and republish side effects also covered, an agent has everything needed to invoke this correctly.

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?

Schema coverage is 67% and both user_confirmed and notify_webhooks already have schema descriptions, so the description mostly restates the confirmation semantics rather than adding new meaning. chart_id has only a pattern and no prose in either place, and the description does not explain it. Baseline 3 is appropriate.

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 description gives a specific verb and resource ('publish (or republish) a chart') plus the exact effect ('publicly visible at its URL and embeddable'), which cleanly separates it from siblings like unpublish_chart or get_embed_code. An agent can tell what this does 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 states the use case (publishing or republishing) and the important precondition that confirmation is required via a client dialog or user_confirmed: true after the user agreed. It does not explicitly route the agent to alternatives such as unpublish_chart for taking a chart down or preview_chart before publishing, so it stops short of 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.