Skip to main content
Glama

brain_remember

Idempotent

Persist a fact, decision, correction, preference, or relationship across sessions by writing one memory item to every configured store, with duplicate and contradiction reporting.

Instructions

Write one memory item to every configured store in one call: the markdown vault first, then SQLite, then any other store the agent has, and the entity graph for relations.

    Use it the moment the user states a fact, decision, correction, preference or
    relationship worth keeping across sessions; one call per item. Not for whole documents
    or web pages (brain_distill) and not for the end-of-session summary (brain_session).

    Never deletes. A near-duplicate fact returns `status: duplicate` with the existing entry
    and writes nothing. A changed value is appended under a `⚠ Fact changed` banner with the
    old line kept, reported as `contradiction`. `layers` reports each store as
    written|exists|pending|failed|refused, so a dead store is visible, never silent. Text
    that looks like a secret is refused.

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": {
      "text": "<text>",
      "kind": "<kind>"
    },
    "name": "brain_remember"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysNoOther words this would be asked for by: synonyms, plain names, the question it answers. Searched, never shown.
kindYesOne of fact|pattern|decision|correction|note|raw|relation, or key: text = a question whose recall was a `weak_match`, source = the `source` of the result that later answered it.
textYesThe memory itself, one item, plain text.
extraNoKind-specific fields. decision: title, reason, classification, confidence. correction: title, error, correction, rule, theme. relation: subject, predicate, object (or text 'S —[p]→ O'). note: section.
forceNoWrite even when a near-duplicate exists.
domainNoTopic tag such as 'trading' or 'system'; empty = none.
sourceNoWhere it came from: a URL, file path or 'user'.
missionNoMission id to tag, e.g. 'M-012'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.2
    • addedInput schema / properties / keys
      Added value: +{
      +  "default": "",
      +  "description": "Other words this would be asked for by: synonyms, plain names, the question it answers. Searched, never shown.",
      +  "title": "Keys",
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / description
      Previous value: -"One of fact|pattern|decision|correction|note|raw|relation."New value: +"One of fact|pattern|decision|correction|note|raw|relation, or key: text = a question whose recall was a `weak_match`, source = the `source` of the result that later answered it."
  2. Changed7 schema fields changedv0.2.6
    • addedInput schema / properties / domain / description
      Added value: +"Topic tag such as 'trading' or 'system'; empty = none."
    • addedInput schema / properties / extra / description
      Added value: +"Kind-specific fields. decision: title, reason, classification, confidence. correction: title, error, correction, rule, theme. relation: subject, predicate, object (or text 'S —[p]→ O'). note: section."
    • addedInput schema / properties / force / description
      Added value: +"Write even when a near-duplicate exists."
    • addedInput schema / properties / kind / description
      Added value: +"One of fact|pattern|decision|correction|note|raw|relation."
    • addedInput schema / properties / mission / description
      Added value: +"Mission id to tag, e.g. 'M-012'."
    • addedInput schema / properties / source / description
      Added value: +"Where it came from: a URL, file path or 'user'."
    • addedInput schema / properties / text / description
      Added value: +"The memory itself, one item, plain text."
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description discloses what happens on edge cases: near-duplicates return status: duplicate and write nothing, changed values are appended under a '⚠ Fact changed' banner and reported as contradiction, secrets are refused, and per-store outcomes surface in `layers`. It productively explains why the write is effectively non-destructive instead of just repeating the hint.

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?

It is front-loaded with the action and store order, then usage, then edge-case behavior, in four short blocks. Dense but almost every clause carries decision-relevant information; a slight trim of the store enumeration would tighten it further.

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?

For a multi-store write with mutation semantics, the description covers idempotency behavior, contradiction handling, secret refusal, and per-store failure visibility, all of which are the risky parts. With an output schema present it need not enumerate return fields, so nothing essential is missing.

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%, so all eight parameters are already documented in the schema, and the description adds little parameter-level detail beyond 'one item' and 'one call per item'. It spends its words on output statuses (duplicate, contradiction, layers) rather than on kind, extra, force, or domain semantics, so the baseline 3 applies.

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 sentence gives a specific verb and resource (write one memory item) plus the fan-out scope: markdown vault first, then SQLite, then other stores, plus the entity graph for relations. This distinguishes it clearly from brain_distill (whole documents) and brain_session (session summary), so an agent can separate it from siblings without opening a 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 an explicit trigger ('the moment the user states a fact, decision, correction, preference or relationship worth keeping across sessions'), a cadence ('one call per item'), and named exclusions pointing at the correct siblings for both excluded cases. Nothing is left to inference about when to route elsewhere.

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