Skip to main content
Glama

add_book_item

Add a content item to a lesson node as either a question reference or an explanation block.

Instructions

给节点加一个内容项。kind=question 题引用(传 question_id)/ explain 讲解块(传 explain_*)。

🔴 question_id 一律 str(雪花号 JSON number 会截尾)。讲解块内容书自持(D2,不引用 KG 讲义层)。 返回 {ok, item_id(str)}。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seqNo
kindNoquestion
node_idYes
question_idNo
explain_textNo
explain_titleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description must cover behavioral traits. It mentions the Snowflake ID truncation issue and that explain content is self-contained (D2). However, it does not disclose whether the tool is destructive, idempotent, or requires specific permissions. Score 3.

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 concise sentences plus a note. No wasted words, front-loaded with purpose. Efficient and clear. Score 5.

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

Completeness3/5

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

Given 6 parameters, 0% schema coverage, and no annotations, the description covers the main modes and return format but omits seq and node_id semantics. It is adequate but not fully complete. Score 3.

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 0%, so description should compensate. It explains the kind parameter and associated parameters (question_id, explain_text, explain_title). However, it does not explain seq or node_id, leaving gaps. Score 3.

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 clearly states '给节点加一个内容项' (add a content item to a node), and distinguishes between question and explain kinds. It differentiates from sibling 'add_book_node' which adds a node itself. Score 4 because it is specific but could be more explicit about the overall action.

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 when to use each kind (question vs explain) and warns about question_id formatting. It does not explicitly state when not to use or alternatives, but provides sufficient context for the two modes. Score 4.

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