Skip to main content
Glama

Delete folder

delete_folder
DestructiveIdempotent

Datawrapper: delete a folder. Like in the Datawrapper app, its charts and subfolders first move to the parent folder (or the root), so nothing inside is deleted. 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": {
      "folder_id": "<folder_id>"
    },
    "name": "delete_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_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.

No schema history has been recorded yet.

TDQS

A4.7/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 goes materially further: it discloses that the operation is not recursive — charts and subfolders are reparented to the parent folder or root, so nothing inside is lost. That corrects the natural but wrong assumption that deleting a folder destroys its contents, which is the single most decision-relevant fact here. It also explains the confirmation mechanics behind `user_confirmed`.

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 identity and the surprising reparenting behavior, then the confirmation requirement. No filler, no 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 two-parameter tool with annotations and no output schema, the description covers everything an agent needs: what is deleted, what happens to children, and how to satisfy the confirmation gate. Return values are unnecessary since no output schema exists and the operation is a plain mutation.

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 50%: `user_confirmed` is documented in the schema, while `folder_id` has no description. The description adds real meaning about the confirmation parameter — that setting it true suppresses the client dialog and counts as the approval — which is behavioral context the schema only partly conveys. It adds nothing for `folder_id`, but that parameter is self-evident from its name and type.

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 opens with a specific verb and resource ('delete a folder') scoped to Datawrapper, and immediately clarifies the non-obvious semantics of that delete. An agent can distinguish it from create_folder, update_folder, copy_folder, and delete_chart without consulting any 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 a firm prerequisite for invocation: the action requires confirmation, either via a client dialog or `user_confirmed: true` after the user agreed. It does not name alternatives (e.g., move_charts to empty a folder before deleting, or update_folder to rename), so the when-versus-what-else guidance is incomplete, but the when-to-call condition is clear.

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.