Skip to main content
Glama

delete_chapter

Destructive

Permanently removes a chapter and its scenes, then renumbers all later chapters to close the gap. Requires book owner access and an API key with delete scope.

Instructions

Permanently delete a chapter. Hard delete — the chapter's scenes are deleted with it, and every later chapter in the book is renumbered down by one to close the gap. Only the book owner can delete, and the API key needs the 'delete' scope.

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": {
      "chapterId": "<chapterId>"
    },
    "name": "delete_chapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
chapterIdYesChapter ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety baseline is covered; the description then adds behavioral facts the annotations cannot express. It discloses the exact blast radius (scenes are deleted too), a non-obvious side effect on unrelated records (later chapters are renumbered down by one), and the authorization surface (ownership plus 'delete' scope).

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 short sentences, front-loaded with the destructive action and then the consequences and permissions. Every clause carries distinct information — permanence, cascade, renumbering, authorization — with no restatement of the name or title.

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 single-parameter destructive tool with no output schema and annotations that only flag destructiveness broadly, the description supplies everything an agent needs to decide and warn correctly: irreversibility, collateral deletion, renumbering of siblings, and permission requirements.

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

Parameters3/5

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

There is a single parameter with 100% schema description coverage, so the schema already carries the semantic load for chapterId. The description adds no format, sourcing, or lookup guidance for that ID, leaving this at the baseline for a fully documented one-parameter schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition opens with a specific verb and resource ('Permanently delete a chapter') and immediately scopes it as a hard delete that cascades to scenes, so an agent can tell it is not a soft archive or a scene-level delete. It stops short of naming a sibling to route to or away from, so differentiation is implied rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Prerequisites for a successful call are spelled out (book owner only, API key needs the 'delete' scope), which is useful context for deciding whether to attempt it. There is no explicit when-to-use versus when-not guidance and no named alternative (e.g., a scene-level delete or an update path), so the routing signal is only implied.

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