Skip to main content
Glama

memory_record

Store a fact worth remembering in long-term memory, so repeated submissions with identical content do not create duplicate records.

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>",
      "content": "<content>"
    },
    "name": "memory_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNosemantic
contentYes要记住的事实,一句话
categoryNo
sessionIdYes
subjectIdNo这条事实关于谁(平台号或 self)
importanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses idempotency on duplicate content ('won't pile up two entries'), which is real behavioral value, but leaves open the dedup scope (exact string match? per session? per subject? per kind?), whether re-reporting with different importance/category merges or is ignored, and whether the write is immediately durable. These are material gaps for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action, and both the scoping parenthetical and the idempotency clause carry information an agent needs. No filler or restatement of the tool name.

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 6-parameter write tool with 33% schema coverage, no annotations, and no output schema, the description is thin: the enum semantics, importance scale meaning, and the dedup scope that determines correctness of repeated calls are all unaddressed. The agent can call it, but cannot confidently predict what a second call with modified fields will do.

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 only 33%: content and subjectId are documented, but kind (an enum with four non-obvious values: episodic/semantic/relation/emotion), category, sessionId, and importance are all undocumented in the schema. The description adds nothing about any parameter, not even what 'content' should look like or how the dedup key is formed. With low coverage the description was expected to compensate and does not.

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 and resource: write a fact 'worth remembering long-term' into the long-term layer. The parenthetical '(not every message should be recorded)' fences the scope against a naive per-message record, which implicitly separates it from higher-volume siblings like memory_append. It does not name or explicitly contrast with any sibling tool, so it stops short of 5.

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?

The clause 'not every message should be recorded' gives clear when-not guidance and the overall framing ('worth remembering long-term') tells the agent what qualifies. However, no alternative tool is named for the cases that don't qualify, so the agent must infer where non-durable items should go.

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