Skip to main content
Glama

rehub_book

Retrieve a table of contents or the full text of a specific chapter, including scenario guides and appendices, so you can read reverse-engineering guidance and pass a chapter ID from rehub_route directly.

Instructions

这本书的目录与正文:不带 chapter 返回目录(00 使用说明 + 15 个场景章 + 5 个附录);带 chapter 返回该章完整正文。chapter 可用 "04-web-js"/"04"/scenario id(如 "web-js"),附录 D 是对象分类 × 静态/动态/UI 链路矩阵,附录 E 是任务状态/能力/验证。rehub_route 返回的 chapter 直接传进来即可。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rehub_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
chapterNo章 id:04-web-js / 04 / web-js 等;省略则返回目录

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the burden, and it does disclose the two return shapes (TOC vs. full chapter body) plus what the appendices contain. However, for a call that can return an entire chapter of prose, it says nothing about output size, truncation, or token limits, which is the main behavioral risk here. Useful disclosure, but incomplete for an unannotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The two modes are front-loaded and the sentence order follows the natural decision flow (no chapter → TOC, with chapter → body). The appendix D/E detail is genuinely informative but slightly dense/spec-heavy for a description whose main job is selecting the tool.

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?

One optional parameter, no output schema, no annotations — so the description is the primary source of truth, and it explains both return modes and the id format well enough to invoke the tool correctly. The missing piece is output volume/truncation behavior, which matters given full chapter bodies.

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?

Schema description coverage is 100% and the single chapter parameter already documents the '04-web-js / 04 / web-js' format and the omit-to-get-TOC behavior. The description restates those formats rather than adding new semantics, so it sits at the baseline for a schema that already does the work.

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 resource (this book's table of contents and body text) and spells out the two operating modes: without chapter it returns the TOC (00 usage notes + 15 scenario chapters + 5 appendices), with chapter it returns that chapter's full text. It also identifies the content of specific appendices (D = classification × static/dynamic/UI matrix, E = task state/capability/verification), so an agent can tell exactly what this tool yields versus its siblings.

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 an explicit when-to-use rule: omit chapter to browse the TOC, supply chapter to fetch content. It also names the handoff path — a chapter id returned by rehub_route can be passed straight in — which is concrete routing guidance. It stops short of naming any sibling to avoid (e.g. rehub_scenarios), so it is clear context rather than full exclusion guidance.

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