Skip to main content
Glama

Delete chart

delete_chart
DestructiveIdempotent

Datawrapper: move a chart to the trash (restorable for 30 days with restore_charts). permanent: true deletes it irreversibly. Published charts also disappear from websites. Requires confirmation (client dialog, or user_confirmed: true); the confirmation shows the chart title and id.

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": "delete_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
chart_idYes
permanentNoIrreversible deletion instead of trash.
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.

No schema history has been recorded yet.

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real consequences beyond them: the 30-day trash retention, that permanent deletion is irreversible, and that published charts disappear from live websites. It also discloses the confirmation mechanism and what the user will see (chart title and id), which is exactly the context a destructive tool needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the default action and escalating to the irreversible case and then the confirmation requirement. No redundant restatement of the title or annotations.

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 destructive 3-parameter tool with no output schema, the description covers recovery, irreversibility, downstream effects on published charts, and the confirmation protocol. Nothing an agent needs in order to call it safely is missing.

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 coverage is 67% and both optional booleans already carry descriptions, so the baseline is 3. The description adds meaning on top: it frames `permanent` as irreversible versus trash, and explains that `user_confirmed: true` suppresses the client dialog and counts as the confirmation — a behavioral consequence not spelled out in the schema field alone.

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 and resource ('move a chart to the trash') and immediately distinguishes the default behavior from the irreversible variant gated by `permanent: true`. An agent can tell this apart from `restore_charts`, `delete_folder`, and `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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the recovery path and its window ('restorable for 30 days with restore_charts') and the condition that changes behavior (`permanent: true`). It also states the confirmation precondition (client dialog or `user_confirmed: true`), so the agent knows what must happen before the call is valid.

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.