Skip to main content
Glama

add_memory

Manually add a memory entry (preference, pattern, decision, or context) to persistent storage, enabling AI coding assistants to retain context across sessions.

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": {
      "type": "<type>",
      "content": "<content>"
    },
    "name": "add_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes记忆类型
contentYes记忆内容
projectNo项目名称(可选)
confidenceNo置信度(0-1,默认 0.8)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it discloses nothing beyond the bare write action. It does not say whether entries are deduplicated, how confidence defaults interact with storage, whether the write is reversible, or what the tool returns on success or conflict.

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?

A single compact sentence with no filler, and the verb-resource core is front-loaded. It is efficient, though the brevity edges into under-specification rather than pure tightness.

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 four-parameter write tool with no annotations and no output schema, the definition says far too little. The meaning of the four memory types, how project scoping affects retrieval, and what confidence controls are all left entirely to the schema's short field labels.

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 description coverage is 100%, so all four parameters including the type enum and the 0-1 confidence default are already documented in the schema. The description adds no additional meaning on top of that, which is the baseline case for full schema coverage.

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?

"手动添加一条记忆" states a concrete verb (add) and resource (memory), and the word 手动 hints it is distinct from automatic recording siblings. However, it never names an alternative such as record_conversation or batch_record_conversations, so the agent must infer the boundary rather than being told.

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?

There is no explicit when-to-use, when-not-to-use, or alternative-selection guidance. The implied contrast with automatic recording is only a hint from the word 手动 and is not developed into a rule.

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