Skip to main content
Glama
Zifu Memory
by tanbopiao

zifu_resume

Assemble a budgeted continuation pack at session start: visible handoff summary, active facts, and recent events. Requester identity sets scope; absent identity returns org-level data only.

Instructions

新会话开场:拉接续包——可见交接摘要优先+active 事实+近期可见事件,硬预算内确定性装配。 reader 自报身份(session_id/agent_id/user_id);无身份只给 org 级(fail-closed)。

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": {
      "reader": "<reader>"
    },
    "name": "zifu_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetNo
readerYes
recent_limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose real behavior: deterministic assembly under a hard budget, a stated priority ordering of content sources, and a fail-closed identity rule (no identity → org-level only). It never states whether the call is read-only or whether items are marked as delivered, which is a meaningful omission for a no-annotation tool.

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 dense sentences that front-load the core action and its content priority, then add the identity rule. Very little waste, though the em-dash chain and stacked "+" separators make it slightly harder to parse than a plain sentence.

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?

An output schema exists, so return-value explanation is appropriately omitted, and the description covers the key mechanics of budget, priority, and identity fallback. It still leaves `recent_limit` and the budget's unit/effect unexplained, which matters for a tool whose headline promise is deterministic assembly within a hard budget.

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 0% and the required `reader` object is an open nested object, so the description's enumeration of session_id/agent_id/user_id is genuinely valuable compensation. However, `budget` is only alluded to via "硬预算" with no unit or default meaning, and `recent_limit` is not mentioned at all, leaving two of three parameters 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?

"拉接续包" names a concrete action and its composition (visible handoff summary first + active facts + recent visible events), so the agent can tell this is a composite session-bootstrap read rather than a plain query. It does not, however, distinguish itself from siblings like zifu_handoff, zifu_state, or zifu_facts even though it overlaps with all three.

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?

"新会话开场" implies the trigger condition (session start) but gives no explicit when-not, no mention of alternatives for a mid-session refresh, and no guidance on when to prefer zifu_handoff or zifu_facts instead. Usage is implied rather than stated.

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