Skip to main content
Glama

update_chapter

Update a chapter's title or HTML content while using a base content hash to prevent overwriting concurrent edits; conflicting writes are rejected.

Instructions

Update chapter title or content. Writing content requires a baseContentHash — the one get_chapter returned for the version you edited. It is remembered automatically after get_chapter or create_chapter in this session; pass it explicitly otherwise. If someone else changed the chapter meanwhile, the write is rejected as a conflict rather than overwriting their words.

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": "update_chapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
contentNoHTML content
chapterIdYesChapter ID
baseContentHashNobaseContentHash from get_chapter for the version this edit is based on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.1/5.0
Behavior4/5

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

The annotations only declare readOnly=false, destructive=false, openWorld=true; the description adds genuine behavior beyond that — optimistic concurrency via baseContentHash, session-scoped hash memory, and rejection-as-conflict instead of silent overwrite. The remaining gap is partial-update semantics: it never says whether omitting title or content leaves the field untouched.

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, front-loaded with the action, then the precondition, then the failure mode. No restatement of the name, no filler, and the most error-prone detail (the hash) gets the most space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a small mutation tool with no output schema and four mostly-described params, the description covers the two things an agent would get wrong: the hash requirement and the conflict outcome. What is missing is return behavior and whether title/content are independently optional, both of which matter given the sole required parameter is chapterId.

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?

With 75% schema coverage the baseline is 3, and the description earns above it by explaining baseContentHash's provenance and lifetime far beyond the schema's one-line 'from get_chapter for the version this edit is based on'. title and chapterId still get no added meaning, and the schema already covers content as HTML.

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 description opens with a specific verb+resource ('Update chapter title or content'), naming exactly which fields are mutable, which immediately separates it from create_chapter/get_chapter/delete_chapter. It does not explicitly name a sibling to differentiate against, so it falls just short of the top mark.

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 gives concrete conditional guidance for the hardest part of the call: content writes require baseContentHash, which is auto-remembered after get_chapter or create_chapter in-session and must be passed explicitly otherwise. What it omits is an explicit 'call get_chapter first if you do not have the current version' instruction and any statement about when a title-only update is preferable.

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