Skip to main content
Glama

memory_context_tail

Builds a per-turn context tail with current time, recent short-term memories, last emotion, recall snippets, and the current message body.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "memory_context_tail"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
recallNo
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that the output is recomputed each round rather than cached, and it enumerates what the tail contains, which stands in for an absent output schema. It says nothing about side effects, whether it writes or persists anything, permissions, or cost of repeated calls.

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, front-loaded with the core purpose and zero filler. The terseness is efficient, though it comes at the cost of the missing guidance noted above.

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 three-parameter tool with no annotations and no output schema, the definition should explain inputs and return behavior more fully. As written, an agent knows roughly what comes out but not what to pass in, especially the required sessionId.

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 description coverage is 0% across three parameters, so the description must compensate and largely fails. '召回片段' and '本轮正文' give loose hints that the recall and body parameters feed those sections, but sessionId — the only required parameter — is never explained, and the description does not make clear that recall/body are caller-supplied inputs rather than computed outputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb '产出' plus the resource '动态尾部' is specific, and the parenthetical enumerates the components (current time, recent short-term memories, last emotion, recall fragments, body text), which makes the output concrete. However '尾部/tail' is internal jargon and the description never distinguishes this tool from the sibling memory_context_head or memory_context_compose, so an agent cannot tell which context assembler to pick without opening other schemas.

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

Usage Guidelines2/5

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

'每轮新拼' hints that the tool is invoked fresh each turn, which is a weak usage cue but at least implies frequency. There is no explicit when-to-use, no when-not-to-use, and no reference to the head/compose alternatives that clearly overlap in purpose.

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