Skip to main content
Glama

memory_capture

Save reusable knowledge as an indexed memory card so future sessions and agents can retrieve it. Write distilled facts, commands, and paths, not raw chat logs.

Instructions

把一条值得长期复用的知识写进记忆库,供以后所有会话和其他 agent 检索。写入后本卡会被立即索引,不需要再调用 memory_reindex。触发时机:完成一个任务、解决一个报错、确认一个环境配置、做出一个影响后续的决策之后。写入前请自己先蒸馏——你是 LLM,用一两段话把结论写清楚,不要倒贴整段对话原文。标题要写成「以后你会用什么词去搜它」,正文要写清事实、命令、路径、以及为什么这么做。不要写入:临时状态、一次性的中间过程、密码与私钥等凭据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes蒸馏后的正文:结论、命令、路径、注意事项
kindNoknowledge / project / mistake / prompt / tool / content(默认 knowledge)
tagsNo可选标签
titleYes卡片标题,将被检索命中,写成可搜索的事实描述
sourceNo可选来源标记,默认取调用方 clientInfo
on_conflictNo标题已存在但正文不同时的处理。suffix(默认)另存为 -2 新卡并在结果里回传 conflict 信息;reject 直接拒绝写入。若你要表达「事实变了」,不要靠这个参数 —— 用取代语义。
reject_secretsNotrue 时若正文含疑似凭据(私钥头、AWS/GitHub/Slack token、明文密码赋值等)则拒绝写入;默认 false = 只告警不阻断。默认不阻断是因为本库的正当用途包含渗透测试记录。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden, and it does disclose a real behavioral trait: the card is indexed immediately on write and becomes visible to all future sessions and other agents, so no reindex call is needed. It also states what must not be persisted (transient state, credentials). It stops short of describing required permissions, failure behavior, or the shape of the returned result, which keeps it at 4 rather than 5.

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?

Every sentence earns its place — purpose, indexing side effect, triggers, authoring guidance, and prohibitions are all non-redundant. However it is delivered as one dense run-on block with no line breaks or headers, so the trigger list and the exclusion list are harder to scan than they need to be.

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?

For a 7-parameter write tool with no annotations and no output schema, the description covers purpose, timing, authoring rules, and prohibitions well. The main omission is what the call returns and how failures surface (e.g. conflict results), though on_conflict handling is at least documented in the schema.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description goes further by telling the agent how to author the two required parameters — title must be phrased as the words a future search would use, body must contain facts, commands, paths, and rationale. It adds no semantics for kind/source/on_conflict/reject_secrets beyond what the schema already documents.

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?

States a concrete verb+resource (把一条值得长期复用的知识写进记忆库) and its downstream effect (供以后所有会话和其他 agent 检索). It explicitly names a sibling, memory_reindex, and rules it out ('不需要再调用 memory_reindex'), so the agent can distinguish this from the read-side siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit trigger timing (完成一个任务、解决一个报错、确认一个环境配置、做出一个影响后续的决策之后) and explicit exclusions (不要写入:临时状态、一次性的中间过程、密码与私钥等凭据). It also prescribes how to prepare input (先蒸馏,不要倒贴整段对话原文) and how to phrase title vs body — a complete use protocol rather than an implied one.

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