Skip to main content
Glama

get_chapter

Read-only

Retrieve chapter content and a base content hash to pass to update_chapter, preventing concurrent edits from being overwritten.

Instructions

Get chapter content. Also returns a baseContentHash — pass it back to update_chapter so a concurrent edit from the editor is reported as a conflict instead of being overwritten.

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

Input Schema

NameRequiredDescriptionDefault
chapterIdYesChapter ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely new behavioral context — that a baseContentHash is returned and is meant as an optimistic-concurrency token preventing overwrite of concurrent editor changes — which an agent could not infer from annotations.

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?

Two tight sentences with the primary purpose front-loaded and the follow-up sentence earning its place by explaining the returned hash's contractual use. No redundant restatement of the name or schema.

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 single-parameter read with no output schema, the definition is nearly complete: it names the extra returned field and its purpose. It leaves the shape of 'chapter content' (markdown, HTML, structured blocks) unspecified, which is a minor gap.

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?

Only one parameter (chapterId) with 100% schema description coverage, so the schema already carries the semantics. The description adds no format or sourcing detail for chapterId; baseline 3 applies.

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?

States a specific verb and resource ('Get chapter content'), which is unambiguous against siblings like update_chapter or delete_chapter. It does not explicitly differentiate itself from other read tools such as get_article or get_book, so it stops short of a 5.

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?

Gives a clear usage context: call this and pass the returned baseContentHash into update_chapter for conflict detection, which effectively describes the read-before-write workflow. It does not state exclusions or contrast with other read tools, so it is short of explicit when-not guidance.

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