Skip to main content
Glama

update_session

Update a teaching session with actions like reschedule, cancel, or take leave. Automatically handle session deferrals and overflow prompts for leave and cancel operations.

Instructions

改单场次(改期/请假/取消/标已上/锁内容/改绑课次/改备注)→ :9090。返回 {ok, deferred?, overflow?}。

参数: session_id : 场次 id(字符串) action : 动作枚举—— 'reschedule' 改期(传 date/start/end;🔴 改期=只改时间不改状态、不触发顺延) 'leave' 请假 → 🔴 触发顺延:该对象该计划、日期在其后的「已排」场次,绑定课次整体前移补位; lesson_locked='1' 的场次保持原课次被跳过;末位课次悬空 → overflow 提示需补排 'cancel' 取消 → 软取消:置 status='3',行留库(同样触发顺延,口径同 leave) 'delete' 🔴 移除课程 → 物理删除整行、不可恢复(区别于 cancel 软取消);仅本人场次可删 'mark_done' 标记已上(session_status→已上) 'lock' 锁定本场绑定的课次内容(顺延时被跳过、不改绑) 'unlock' 解锁 'rebind' 改绑课次(传 plan_lesson_id;只改本场,不动别的场次) 'note' 改备注(传 note) date/start/end : reschedule 用;plan_lesson_id : rebind 用;note : note 用 返回:leave/cancel 会带 deferred(顺延明细 [{sessionId,newLessonId}])+ overflow(悬空课次提示)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
dateNo
noteNo
startNo
actionYes
session_idYes
plan_lesson_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Discloses all behavioral traits: side effects like triggering postponement for leave/cancel, distinction between soft and hard delete, and return values including deferred and overflow. No annotations provided, so description carries full burden and does so thoroughly.

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?

Well-structured with bullet points and headers, but slightly verbose. Could be more concise while retaining clarity.

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

Completeness5/5

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

Covers all aspects: actions, parameters, side effects, return values (deferred, overflow). Given 7 parameters and no annotations, the description is complete.

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?

Adds significant meaning beyond the schema: explains which parameters are used for which actions (e.g., date/start/end for reschedule, plan_lesson_id for rebind, note for note). Since schema coverage is 0%, description fully 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 modifies a single session with specific actions (reschedule, leave, cancel, etc.), distinguishing it from siblings like schedule_sessions or list_schedule.

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

Usage Guidelines5/5

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

Detailed guidelines for each action, including conditions, side effects, and when to use each, e.g., 'delete' is physical and irreversible, while 'cancel' is soft. Explicitly contrasts actions and their impacts.

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