Skip to main content
Glama

delete_act

Destructive

Permanently delete an act and its chapters, prose, and scenes in one transaction; pass the exact chapter count to confirm, or move chapters first to preserve them.

Instructions

Delete an act. THIS ALSO DELETES the chapters inside it, with their prose, and those chapters' scenes — permanently, in one transaction. The tool counts what would die and refuses unless you pass that exact number as confirmChapterCount; an empty act deletes with no confirmation. To keep the prose, move the chapters to another act with update_chapter first.

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": {
      "bookId": "<bookId>",
      "id": "<id>"
    },
    "name": "delete_act"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAct ID
bookIdYesBook ID
confirmChapterCountNoThe number of chapters you accept destroying, as reported by this tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.9/5.0
Behavior5/5

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

Although annotations already declare destructiveHint=true and readOnlyHint=false, the description adds substantial behavior: it deletes chapters and their prose and scenes permanently in one transaction, calculates a destructive count, refuses unless the exact count is supplied, and skips confirmation for an empty act.

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?

The description is front-loaded with the core action, then the cascade warning, confirmation behavior, and preservation alternative. Every sentence adds necessary safety and usage context without redundant wording.

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 cascade tool with no output schema, the description covers the full risk profile, transaction behavior, confirmation mechanics, empty-act edge case, and a safe alternative. Nothing essential for correct invocation 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 100%, so the baseline is 3, but the description adds critical semantics for confirmChapterCount: it must be the exact number the tool reports, and the tool refuses otherwise. It does not add much beyond schema coverage for bookId and id, but the confirmation semantics are valuable.

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 states a specific verb and resource: 'Delete an act.' It immediately distinguishes the operation by explaining the cascading deletion of chapters, prose, and scenes, making it clear this is not a single-chapter or single-scene delete.

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?

It gives an explicit when-not-to-use alternative: to preserve prose, move chapters to another act with update_chapter. It also explains the confirmation requirement and empty-act behavior, leaving little ambiguity about when and how to invoke the tool.

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