Skip to main content
Glama

create_book

Create a new empty book of a specified type such as lecture, workbook, or textbook. Returns a book ID for further content building.

Instructions

新建一本空书(起步)。book_type 开放注册制(BE 不校验,任意 snake_case slug 可传): 已注册值 = lecture讲义 / workbook练习册 / textbook电子课本 / special备课挑题专项(不进书架列表) / variant_special举一反三专项(SOP-2 立项即建) / daily_punch每日打卡。 新资料形态(口算集训、错题重练…)自定新 slug 即可,🔴 但须先到 认知/服务与能力总目录.md「书类型注册表」挂号 + book-ui BOOK_TYPE_LABEL 补中文名,否则前端显示裸 slug。

返回 {ok, book_id(str)};随后用 add_book_node + add_book_item 建目录树与内容, 或整树一次建书走 import(B 线录入直出书交接面,本工具面不含 import)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gradeNo
titleYes
editionNo
book_typeNoworkbook
subject_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully details behavioral traits: book_type is not validated, registered values listed, registration process for new types, return format, special type excluded from bookshelf, and exclusion of import. No contradictions.

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?

Purpose is front-loaded, but the description is a single dense paragraph. It contains necessary details but could benefit from bullet points or clearer separation of return info and next steps.

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?

Given output schema exists (return {ok, book_id(str)}), the description covers purpose, key parameter behavior, and post-usage guidance. Missing explanations for grade, edition, and subject_id, but overall sufficient for a creation tool with subsequent steps.

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 coverage is 0% and description only adds meaning for book_type (enumerated values, registration). Other parameters (grade, title, edition, subject_id) lack any explanation. Baseline 3 is appropriate as description partially compensates.

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 clearly states it creates a new empty book (新建一本空书) and distinguishes from siblings by noting that subsequent steps require add_book_node/add_book_item or import. The verb 'create' and resource 'book' are specific.

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?

The description explains what to do after using this tool (use add_book_node/add_book_item or import) and warns about registering new book types. However, it does not explicitly state when NOT to use this tool versus alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RuntimeAll/teacher-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server