Skip to main content
Glama
Zifu Memory
by tanbopiao

zifu_handoff

Writes a handoff summary at session end so later sessions can resume context; scope must be user or higher, not session-level.

Instructions

会话收尾:写交接摘要(会话边界无关,供后续会话接续)。scope 不能是 session 级。

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": {
      "session_id": "<session_id>",
      "summary": "<summary>"
    },
    "name": "zifu_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNouser
entityNo会话交接
summaryYes
user_idNo
agent_idNo
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it does little: it never says whether the summary persists indefinitely, who can read it, whether it overwrites a prior handoff, or what the call returns. The only behavioral claim is the scope restriction, which is useful but narrow for a write tool with six parameters.

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?

Two short sentences with the action front-loaded and the constraint trailing; nothing is redundant. The terseness borders on cryptic, but no sentence wastes space.

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

Completeness2/5

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

For a write operation with no annotations, six undocumented parameters, and a persistence semantics question (cross-session handoff), the description answers almost none of what an agent needs. The presence of an output schema excuses return-value explanation, but not the missing parameter and durability semantics.

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

Parameters2/5

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

Schema coverage is 0%, so all six parameters rely on the description, which explains only two partially: 'summary' as a handoff abstract and 'scope' with a single negative constraint. 'entity', 'user_id', 'agent_id', and the meaning of the 'user' default for scope are entirely undocumented.

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?

States a specific verb+resource: '会话收尾:写交接摘要' — write a handoff summary at session close, with the effect ('供后续会话接续') spelled out. It's clearly distinguishable from sibling tools like zifu_write/zifu_export by being the session-boundary artifact, but it never names or contrasts any 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 Guidelines4/5

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

'会话收尾' establishes a clear trigger point (end of session) and the purpose (continuation by a later session), and gives one real exclusion: 'scope 不能是 session 级'. No alternatives are named, which keeps it at 4 rather than 5.

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