Skip to main content
Glama

memory_append

Writes a memory entry: use tier=short for session-scoped recall with a default one-day TTL, or tier=long to persist facts across sessions.

Instructions

写入一条记忆。tier=short 为会话内的短期记忆(默认带一天 TTL),tier=long 为跨会话的长期记忆。

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_append"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoshort
extraNo
contentYes
categoryNo
expiresAtNo
sessionIdYesplatform:scope:id,例如 qq:group:123456
importanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 does add one valuable behavioral fact — short tier carries a default one-day TTL — but says nothing about permissions, deduplication, what happens to expired entries, or whether long tier ever expires, leaving most of a mutation tool's behavior undisclosed.

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 tightly packed sentences with the core action front-loaded and the tier semantics immediately after; there is no filler and nothing is buried.

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?

A seven-parameter mutation tool with no annotations, no output schema, and 14% schema coverage needs substantially more: return value, effect of importance/category, and expiry interaction are all absent. The definition covers only the tier dichotomy and is not sufficient to call the tool confidently.

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 coverage is only 14%, so the description must compensate, and it covers just one of seven parameters: it explains what short and long mean, which the enum alone does not. content, extra, category, importance, and expiresAt are left with no meaning anywhere, and the relationship between tier=short and expiresAt is never stated.

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?

The description gives a specific verb and resource ("写入一条记忆" / write a memory) and explains the two modes the tool supports. It never distinguishes itself from near-siblings such as memory_record or memory_ingest, so an agent still has to guess which write path applies.

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

Usage Guidelines3/5

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

The tier explanation indirectly tells the agent when to pick session-scoped versus cross-session storage, which is genuine usage guidance at the parameter level. There is no explicit when-to-use, when-not-to-use, or named alternative, so tool selection against the many memory_* siblings remains implied.

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