Skip to main content
Glama

bind_book_node_to_lesson

Bind or unbind a book chapter node to a lesson's material slot, or view bound chapters. This marks the lesson as prepared when a chapter is attached.

Instructions

把书籍章节(书架书目录节点)绑到课次材料位,或解绑,或查本课已绑书章节。

备课态口径(2026-07-15 扩展):「有专项或有书章节=已备好」——绑上任一书章节, 课次即显已备好(与 bind_special_to_lesson 同为材料位,两者并集推导)。

🔴 只 UPDATE biz_course_plan_lesson.book_node_ids 单列——绝不整行 upsert(历史事故: 整行重写把 paper_slots 已绑 paper_id 抹掉)。BE 端 partial updateById 只写 book_node_ids。

参数: lesson_id: 课次 id(字符串)。 node_id: 书章节节点 id(biz_shelf_node.id,字符串;action=materials 时忽略)。 action: 'bind'(默认)/ 'unbind' / 'materials'(查本课已绑书章节概要)。 返回: bind/unbind → {ok, lesson_id, book_node_ids:[...]}; materials → {ok, lesson_id, book_node_ids:[...], materials:[{nodeId,nodeTitle,bookId,bookTitle,questionCount}]}。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNobind
node_idNo
lesson_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Despite no annotations, the description discloses critical behavioral traits: it only updates a single column (book_node_ids) using partial updateById, explicitly warns about a historical bug where full row upsert erased paper_slots, and details the return format for each action. This exceeds minimal expectations.

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 description is well-structured with a clear purpose, context, warning, parameter list, and return format. It is front-loaded but slightly verbose due to the historical warning; still every sentence adds value.

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 the complexity and presence of an output schema, the description covers main use cases and return types. It does not mention error handling or invalid inputs, but is sufficient for an AI agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by detailing each parameter: lesson_id (string), node_id (string, ignored for action=materials), action (default 'bind', values explained). It adds meaning beyond the bare schema structure.

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 the tool's purpose: binding, unbinding, or querying book chapter nodes to lesson material positions. It distinguishes from the sibling tool bind_special_to_lesson by noting that both are material slots and their union determines lesson readiness.

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 the three actions (bind, unbind, materials) and their effects. It implicitly guides usage by noting the relationship with bind_special_to_lesson, but does not explicitly state when to choose this tool over alternatives or provide exclusions.

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