Skip to main content
Glama

end_unit

Finish a study unit by recording actual duration, interruptions, and post-session recall quality; then write the session log and backup.

Instructions

结束一个单元,补时长 / 中断次数 / 事后复述质量,并写日志、备份。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "unit_id": "<unit_id>"
    },
    "name": "end_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo备注
storyNo用过的故事编号(stories.md),用于一个月内不重复
recallNo事后复述 0 讲不出 / 1 勉强 / 2 正常 / 3 很顺
unit_idYes单元 id
actual_minNo实际时长(分钟),不传记为未知,不按墙钟估算
interruptsNo中断次数(Agent 判定,见「时长升级规则」)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose real side effects that structured fields cannot convey ('写日志、备份' - writes a log and performs a backup), which is valuable for a mutating tool, but says nothing about reversibility, failure modes, permissions, or what the call returns.

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?

A single front-loaded sentence with no filler; the verb comes first and the recorded fields and side effects follow. The slash-delimited field list is telegraphic but still scannable, so it stops just short of a 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?

For a 6-parameter mutation tool with no annotations and no output schema, the description covers the main inputs and the log/backup side effect, but leaves return behavior, error conditions, and the purpose of the story/notes parameters unaddressed.

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 100%, so the schema already explains unit_id, actual_min, interrupts, recall, story and notes in detail. The description echoes three of those fields (duration, interrupts, recall) but adds no new semantics and omits the notes/story parameters entirely, so a baseline 3 is warranted.

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?

Names a specific verb and resource ('结束一个单元' - end a unit) and enumerates what gets recorded ( duration / interruption count / recall quality) plus side effects (write log, back up). It is clearly the counterpart of start_unit, though it never names that sibling explicitly.

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?

Usage is only implied by the verb '结束' and its natural pairing with start_unit; there is no explicit statement of when to call it, preconditions (e.g. must a unit be open?), or what to do instead if the unit was never started.

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