Skip to main content
Glama

reorder_chapters

Sets a book's chapter reading order by submitting every chapter ID in the desired sequence; partial lists are rejected to prevent duplicate positions.

Instructions

Reorder a book's chapters. Pass the COMPLETE list of the book's chapter IDs in the desired reading order — a partial list is rejected, because the server has no atomic reorder endpoint and a partial write would leave duplicate positions. Only chapters whose position actually changes are written. If a failure interrupts the run, the reply says exactly which chapters moved; re-running with the same list is safe.

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>",
      "chapterIds": "<chapterIds>"
    },
    "name": "reorder_chapters"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesBook ID
chapterIdsYesEvery chapter ID in the book, in the desired reading order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that only changed positions are written, that a partial write is blocked server-side, that failures report exactly which chapters moved, and that re-running is safe (idempotent). That is precisely the operational context an agent needs before a write.

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 sentences, each front-loaded with the operative constraint and ending with the recovery path. No padding, and the completeness rule appears before the mechanics.

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 still covers the return behavior that matters (failure reporting, what happened to positions), plus the idempotency guarantee. Nothing an agent needs to call this 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 100% and both parameters are documented, so the baseline is 3; the description earns more by stressing that chapterIds must be the complete set and by giving the reason a partial list is invalid. It adds operational meaning rather than repeating the schema.

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?

"Reorder a book's chapters" gives a specific verb and resource, and the resource (chapters) is distinct from the sibling reorder_plot_nodes. An agent can identify the operation and its scope immediately, with no ambiguity about what is being mutated.

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 clearly states the required call pattern: a COMPLETE list in desired reading order, with partial lists rejected, and it explains why (no atomic endpoint, duplicate positions). It gives no explicit when-to-use alternatives, but no sibling tool offers chapter reordering, so the guidance is sufficient rather than misleading.

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