Skip to main content
Glama

Capture a memory

memory_capture
Idempotent

Store explicit user preferences, facts, decisions, and corrections into long-term memory immediately. Use it whenever the user states something to remember, preserving the detail for future recall.

Instructions

Explicitly store a long-term memory (takes effect immediately, enters recall). Call immediately when the user states an explicit preference/fact/decision/correction (e.g. "以后X", "我喜欢X", "记住X", "不要X") — do not wait for wrap-up. Keep content concise, self-contained, and independently understandable. Types: fact / preference / correction / sop / todo_context / event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoMemory typefact
scopeNoWrite scope: project (default) / global
contentYesMemory content. Keep negations intact: e.g. "不要用 X" must be stored as-is, never drop 不/不要/别
priorityNoImportance 0-100, default 50

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotation already provides idempotency, and the description adds behavioral context by noting 'takes effect immediately, enters recall' and emphasizing content preservation (e.g., never drop negations). This goes beyond the annotation to inform the agent of expected side effects and storage behavior.

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?

The description is concise and front-loaded with the core action. It avoids unnecessary details and focuses on essential usage and content requirements, making it easy to parse quickly.

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

Completeness4/5

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

Given the tool's moderate complexity (4 parameters, 1 required, enums, output schema), the description provides sufficient context on when to call and what to store. It does not repeat parameter details already covered by the schema, and the output schema exists, so no further explanation is needed.

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 100%, with descriptions for all four parameters (type, scope, content, priority). The description does not add extra parameter-level semantics beyond what the schema already provides, so the baseline score of 3 is appropriate.

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

Purpose5/5

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

The description clearly states the action (store a long-term memory) and the resource (memory), and explicitly distinguishes when to call it from other memory tools by specifying user statements like '以后X' or '我喜欢X'. This makes it unambiguous for an agent to know its primary purpose.

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 description gives explicit 'when' conditions (call immediately on explicit preferences/facts/decisions/corrections) and adds a practical tip (don't wait for wrap-up). It does not explicitly mention alternatives or when-not-to-use, but the strong conditional guidance effectively directs usage.

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