Skip to main content
Glama

Save memory

save_memory

Use this when a durable fact, decision, convention or owner is worth keeping for the person or their team, or the person asks you to save something; one fact per call. Never transcripts, conversation history, chit-chat, one-off requests or secrets. Use scope: "shared" for organization-wide knowledge and "personal" for the person's own items; pass team/teams/project when the context is known; the organization's policy decides who may read it. Confirm with the result's visible_to (e.g. 'Personal: only you') and ai_checks. related lists readable memories it duplicates, updates or contradicts, with a suggestion; it is never merged. Set kind and valid_until when known, supersedes when it replaces a memory.

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

Input Schema

NameRequiredDescriptionDefault
kindNoOptional type of memory.
teamNoTeam to file it under: id, slug, name or alias of a team you belong to. Unknown ones are rejected.
agentNoYour agent label.
scopeNoThe widest audience: 'shared' (= 'organization'), 'personal' (= 'private'), 'team' or 'project' (personal if the group cannot be resolved). Omitted: the given team or project, else the organization's default. AI checks may narrow it.
teamsNoUp to 20 more teams (each as `team`): members of any can read it.
run_idNoYour run id.
contentYesOne self-contained fact, decision or convention, up to 8000 characters.
projectNoProject to file it under: id, slug, name or alias of a project you belong to. Unknown ones are rejected.
importanceNo0.0 (routine) to 1.0 (critical), default 0.5. A floor: classification may raise it.
supersedesNoId of a memory this one replaces.
valid_untilNoISO date/datetime it stops applying (future, within 5 years).
idempotency_keyNoOptional, up to 200 characters (e.g. a UUID): a retry with the same key returns the first save instead of a duplicate.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / teams
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Up to 20 more teams (each as `team`): members of any can read it."
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the mutation profile (readOnly=false, destructive=false, openWorld=false), so the bar is lower, yet the description still adds real behavior: the organization's policy governs read access, the result exposes `visible_to` and `ai_checks` for verification, and `related` surfaces duplicates/updates/contradictions as a suggestion that is 'never merged'. That last point is important agent behavior — it tells the caller a save can succeed while flagging a conflict, so no silent overwrite occurs.

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?

Front-loads the decision criteria before any parameter detail, which is the right order for a save tool. It is dense — three long semicolon-linked sentences — and the final sentence is close to a parameter listing, but almost every clause carries a rule an agent would otherwise get wrong.

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?

Twelve optional parameters and an existing output schema mean the definition does not need to explain return values, yet it still explains the two result fields an agent must act on (`visible_to`, `ai_checks`) and the `related` conflict signal. Guidance on what to write, where to file it, and how to verify the outcome is all present for a fairly complex mutation tool.

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 per-parameter meaning is already carried by structured data; the description only restates it (scope values, team/project, kind, valid_until, supersedes). It does add mild cross-parameter guidance through the sequencing 'pass team/teams/project when the context is known' and the note that the organization's policy decides readability, but the scope-resolution precedence it implies is already spelled out in the `scope` schema field.

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 specific verb-and-resource intent in the first clause ('a durable fact, decision, convention or owner worth keeping') and immediately bounds it with 'one fact per call'. The negative list (transcripts, chit-chat, secrets, one-off requests) tells an agent precisely what does and does not belong here, and the pointer at `supersedes` implicitly separates this from the replace-a-memory sibling.

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 when-to-use ('the person asks you to save something'), explicit when-not-to-use (transcripts, conversation history, secrets), and a routing rule for the ambiguous scope decision: `shared` for organization-wide knowledge versus `personal` for the person's own items, with `team`/`teams`/`project` when context is known. Little is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources