Skip to main content
Glama

Save memory

save_memory

Create or update a memory or scratchpad record by key (replace or append). Requires scope 'memory:write'.

Input Schema

NameRequiredDescriptionDefault
keyYesCaller-chosen key, unique per workspace.
kindNomemory
modeNo'append' adds content to the end of an existing utf-8 record.replace
tagsNo
contentYesUTF-8 text, or base64 when content_encoding is 'base64'. Max 256 KiB.
metadataNoJSON object, max 4 KiB serialized.
if_versionNoOptimistic concurrency: 0 = must not exist; n = stored version must equal n.
ttl_secondsNoExpire sooner than the plan retention. Never extends retention.
content_typeNotext/plain
workspace_idYes
idempotency_keyNoOptional. Same key + same arguments within 24 h returns the original result.
client_encryptedNoContent is an ac-e2e-v1 envelope encrypted by the client. Required in workspaces created with require_client_encryption. Encrypted content is not full-text searchable.
content_encodingNoutf-8

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly=false and destructive=false; the description adds the non-obvious auth requirement (memory:write scope), which is genuine value beyond the structured data. However, it does not disclose that 'replace' overwrites existing content, how version conflicts behave, or the encryption/searchability tradeoff — all material for a write tool.

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?

Two sentences, front-loaded with the action and scope requirement; zero filler. Slightly under-sized for a 13-parameter write tool, 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?

For a 13-param mutation tool with no output schema and only 62% schema coverage, the description covers the basics (upsert semantics, modes, auth) but omits overwrite consequences, version/concurrency behavior, and the encryption requirement that the schema hints at. Minimum viable rather than complete.

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 62%, and the description only echoes the key and replace/append mode, both already documented in the schema. Parameters like ttl_seconds, if_version, client_encrypted, and idempotency_key carry no additional meaning from the description.

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 pair (create or update), the resource (memory/scratchpad record), and the addressing mechanism (by key, with replace/append). This clearly separates it from retrieve_memory and search_memory, though it never names those siblings.

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 'create or update' framing implies when the tool applies, but there is no explicit guidance on when to prefer it over search_memory/retrieve_memory, nor any exclusion or prerequisite beyond the auth scope. Usage is inferable rather than stated.

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