Skip to main content
Glama

Unpublish chart

unpublish_chart
DestructiveIdempotent

Take a published chart offline to disable its public URL and embeds while keeping the chart as a draft. Requires confirmation.

Instructions

Datawrapper: take a published chart offline (public URL and embeds stop working). The chart itself is kept as a draft. Requires confirmation: a client dialog, or user_confirmed: true after the user agreed.

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": "unpublish_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.

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. First observedv1.0.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered structurally. The description genuinely adds value by explaining what the destruction actually means (public URL and embeds break, draft survives) and what confirmation is required. It does not say what happens when the chart isn't published or whether the action is reversible via publish_chart.

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 effect and outcome, then the confirmation mechanics; no filler. Slightly compressed into parenthetical fragments, but every clause carries information an agent needs.

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?

For a two-parameter mutation with no output schema and full annotation coverage, the description supplies the effect, the retained state, and the confirmation protocol. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50% (chart_id has just a pattern), and the description compensates by making the confirmation parameter's meaning and its interaction with the client dialog explicit. An agent knows exactly when to set user_confirmed vs. rely on the dialog.

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?

Specific verb+resource ("take a published chart offline") plus the concrete effect (public URL and embeds stop working) and the post-state ("kept as a draft"). That last clause implicitly separates it from delete_chart and from publish_chart without needing the sibling names spelled out.

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?

The precondition is clear: it only makes sense for a chart that is currently published, and the confirmation workflow is stated explicitly. It doesn't name alternatives such as delete_chart for a permanent removal, so it stops short of full when/when-not routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.