Skip to main content
Glama

Context Link

Save Memory

save_memory
Destructive

Save content to the user's memory for later retrieval. Use this when the user wants to save information, notes, or conversation content. If this session queries Context Link with a mode, save with that same mode.

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
modeNoThe mode this session is running in. Pass the same mode you use for Get Context / Ask Question / Get Memory, so the memory is saved into that mode and only visible when that mode is used. Omit only when the session uses no mode; the memory is then visible in every mode.
contentYesThe content to save. Can be plain text, markdown, or structured content.
namespaceNoA name/label for this memory (use-dashes-for-spaces). If omitted, a timestamped name is generated. A '[mode]/name' namespace (e.g. '[customer-support]/top-links') names a memory in that mode explicitly.

Output Schema

NameRequiredDescriptionDefault
messageYes
namespaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "The mode this session is running in. Pass the same mode you use for Get Context / Ask Question / Get Memory, so the memory is saved into that mode and only visible when that mode is used. Omit only when the session uses no mode; the memory is then visible in every mode.",
      +  "type": "string"
      +}
    • changedInput schema / properties / namespace / description
      Previous value: -"A name/label for this memory (use-dashes-for-spaces). If omitted, a timestamped name is generated."New value: +"A name/label for this memory (use-dashes-for-spaces). If omitted, a timestamped name is generated. A '[mode]/name' namespace (e.g. '[customer-support]/top-links') names a memory in that mode explicitly."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description never explains what is destructive — e.g., whether saving under an existing namespace overwrites prior content — nor any permission requirements. It does add one genuine behavioral rule beyond the schema: propagate the session's mode so the memory lands in the same mode as other Context Link calls.

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?

Three short sentences, front-loaded with the action and followed by the trigger and the conditional rule. Slight overlap with schema-documented mode behavior, but nothing is wasted.

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

Completeness3/5

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

With an output schema present, return values need not be described, and the three parameters are fully specified in the schema. However, for a tool annotated as destructive and non-idempotent, the description should address namespace collisions/overwrites, which it omits.

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 mode, content, and namespace are already fully documented, establishing a baseline of 3. The description reinforces the mode parameter's intended value (use the same mode as other calls) but adds no detail on content format or namespace naming beyond what the schema states.

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?

States a specific verb and resource ('Save content to the user's memory for later retrieval') plus the kind of content intended (information, notes, conversation content). It does not explicitly name the retrieval counterpart among siblings (get_memory/get_context), so differentiation is implied rather than stated.

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

Usage Guidelines4/5

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

Gives a clear trigger ('when the user wants to save information, notes, or conversation content') and a conditional rule for mode consistency when the session uses a mode elsewhere. It offers no when-not guidance or explicit pointer to sibling tools for retrieval.

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