Skip to main content
Glama

hedwigai

Delete a workbook

delete_workbook
DestructiveIdempotent

Deletes a workbook from this account's list. It leaves every listing, search and folder, and stops counting toward them. Its versions and files are kept, and restore_workbook brings it back as it was. Keep the id this answers with: a deleted workbook is not listed anywhere, so the id is how to restore it. A workbook with a run going is refused until the run ends.

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": {
      "workbook": "<workbook>"
    },
    "name": "delete_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
workbookYesThe workbook id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is known; the description adds the non-obvious semantics on top: this is a soft delete that preserves versions and files, removes the item from all listings and quota counts, is blocked while a run is active, and requires the returned id for restoration. That is exactly the kind of context annotations cannot express.

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?

Five short sentences, front-loaded with the core action before scope, persistence, undo path, id retention and the refusal condition. No sentence is redundant; each adds a distinct operational fact.

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?

With no output schema, the description carries the burden of explaining what comes back, and it does so at least partially by highlighting the returned id and its purpose. Combined with the refusal condition, quota effect and reversibility, an agent has everything needed to call this safely.

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 100% for the single "workbook" parameter, so the baseline is 3. The description goes slightly beyond by telling the agent to keep the id the call answers with, clarifying that the response payload carries the restore handle rather than leaving it as an unexplained return value.

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?

"Deletes a workbook from this account's list" gives a specific verb and resource, and the following clauses immediately bound the scope: it is removed from listings, search and folders, but its versions and files persist. That distinguishes it from folder-removal and from restore_workbook, which is named explicitly.

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 precondition that blocks the call ("A workbook with a run going is refused until the run ends") and points at restore_workbook as the reversal path, so an agent knows both when the call fails and how to undo it. It stops short of an explicit when-to-use versus when-to-choose-another-tool rule, but no sibling offers a competing delete.

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.