Skip to main content
Glama

Remember a fact

remember_fact

Store one durable fact in encrypted long-term memory for later recall across sessions—ideal for preferences, decisions, identifiers, or recurring constraints; not for secrets or session-only details.

Instructions

Store one durable fact in encrypted long-term memory, readable later by recall_context.

Use this when the user states something worth keeping across sessions: a preference, a decision, an identifier, a recurring constraint. Do NOT use it for conversation that only matters in this session, for secrets or credentials, or to restate something already stored — storing the same fact twice creates two memories that both surface on recall.

The write is only reversible by a client holding the same key store, so the fact cannot be read back from another machine or a hosted instance. A stored fact can be deleted before it expires, but only by that same holder.

Args: fact_text: The fact to persist, as a self-contained sentence that still makes sense alone: "prefers oat milk in coffee", not "that one". Shorter text embeds more precisely and recalls better. scope: One of: financial, medical, preferences, work. A partition label deciding who and what can read the fact back, so recall must ask for the same one. Any other label stores nothing and returns an error. retention: One of: 30d, 90d, 365d (default 30d). How long the fact stays retrievable before the server expires and purges it. Expiry is irreversible.

Returns the new memory id, or "error: ..." with nothing stored when the scope or retention is rejected. An unusable credential, an unreachable API or a rejected envelope all follow the same rule: an error and no partial write.

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": {
      "fact_text": "<fact_text>",
      "scope": "<scope>"
    },
    "name": "remember_fact"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes
fact_textYes
retentionNo30d

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover the generic profile (not read-only, not idempotent, no open world, not destructive); the description goes well beyond them with encryption, key-store-bound readability across machines, deletion rights limited to the same key holder, and irreversible expiry. It also documents atomicity ('an error and no partial write') and confirms non-idempotency by warning that duplicate stores create duplicate memories, consistent with idempotentHint=false.

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?

Content is front-loaded: purpose first, then when/when-not, then the failure/reversibility model, then parameters. It is on the long side and the sentence about unusable credentials, unreachable API, and rejected envelopes partly repeats the error rule already stated, which is the only real slack.

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

Completeness5/5

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

The tool is a 3-param write with an output schema, and the description covers the things the schema and annotations cannot: partition-based read access, key-store dependency, expiry irreversibility, duplicate-memory risk, and the error/no-partial-write contract. Nothing an agent needs in order to invoke it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all meaning and does: fact_text gets a self-contained-sentence rule, a concrete example ('prefers oat milk in coffee', not 'that one'), and a length/precision rationale. scope enumerates the four valid partitions, explains that it governs read access and must match on recall, and states that any other label stores nothing and errors; retention enumerates 30d/90d/365d with the 30d default and irreversible purge semantics.

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 opening clause gives a specific verb and resource ('Store one durable fact in encrypted long-term memory') and immediately names the sibling that reads it back ('readable later by recall_context'). An agent can distinguish remember_fact from recall_context without opening either 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?

It states the triggering condition (a user preference, decision, identifier, or recurring constraint worth keeping across sessions) and explicit exclusions: session-only conversation, secrets/credentials, and restating an existing fact. The duplicate case even explains the consequence ('two memories that both surface on recall'), which is exactly the kind of routing detail an agent needs.

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

Deploy Server

Other Tools