Skip to main content
Glama

update_lesson

Revise an existing lesson with a mandatory reason; old snapshot stored, revision increments. Mark changes as teaching (learner-visible) or technical (hidden).

Instructions

修订已有 lesson (revision pass 回写). 旧版全文快照入 lesson_revisions 后应用 patch, revision += 1. 必须带 revision_reason; 没有理由的修订直接拒绝. modality_declarations.mindmap 同 add_lesson (纯可选笔记; 脑图默认不生成, 留空不罚). revision_kind (迁移 0033, 双轨修订): 问自己——这次改动是她教出来的, 还是机器逼出来的? 前者 teaching (会呈现给学习者并触发回看提醒), 后者 technical (留痕但对她隐身)。缺省 teaching——发布后的修订默认面向学习者, 宁可多呈现不可偷藏.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo
evidenceNo可选, 依据什么证据 (如 "作业二里 Prepaid 方向连错两次")。**学习者会在修订病历本里读到这一段**——写人话, 内部 id 不进正文。注意本字段没有配套的 evidence_refs 通道, 所以宁可说得笼统, 也不要塞机器词。
lesson_idYes
concept_idsNo可选;每项必须是已存在的 concept id(server 会查存在性)
revision_kindNo可选, 缺省 teaching。问自己:"这次改动是她教出来的, 还是机器逼出来的?" 前者 teaching (会呈现给学习者并触发回看提醒), 后者 technical (留痕但对她隐身, 如格式/门禁/重构/错别字)。
idempotency_keyNo可选。幂等键 (建议 uuid) —— 同一 key 重放此调用返回首次结果, 不重复写入. 网络重试/断线重连时带上同一个 key, 而不是猜"上次到底写没写".
revision_reasonYes必填——为什么改
content_markdownNo
estimated_minutesNo
modality_declarationsNo可选教具的"声明式跳过"记录; 目前只用 mindmap 键。
Behavior5/5

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

With no annotations provided, the description carries the full burden. It transparently discloses side effects (snapshot, revision increment), strict rejection without revision_reason, mindmap behavior (optional, not generated by default), and the teaching/technical distinction with default and learner-facing implications. This is highly informative.

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 a single dense paragraph but front-loads the purpose and provides essential behavioral details. It is somewhat run-on, yet every sentence is informative and there is no fluff. It could benefit from clearer segmentation, but remains effective and concise.

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 tool's complexity (10 params, nested objects, no output schema), the description covers the core mutation flow, mandatory fields, and nuanced revision_kind semantics. It does not mention return values or some straightforward params (title, lesson_id), but those are self-evident and partially covered by schema descriptions. Overall, it is sufficiently complete for correct usage.

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 60%, not low enough to demand full compensation. The description adds meaningful guidance for revision_kind (with the teaching/technical heuristic) and modality_declarations.mindmap (same as add_lesson, no penalty), but it does not enrich other parameters like idempotency_key or evidence beyond what the schema already provides.

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 begins with '修订已有 lesson' (revise an existing lesson), clearly identifying the verb and resource. It goes further to describe the revision workflow (snapshot to lesson_revisions, apply patch, increment revision), which distinguishes it from sibling tools like add_lesson and add_lesson_patch.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for existing lessons and mandates revision_reason, but it does not explicitly state when to prefer this tool over add_lesson_patch or other revision-related siblings. It lacks an explicit when-not-to-use or alternative comparison, though the revision semantics provide some context.

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/sf-shenfeng/learn-shell'

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