Skip to main content
Glama

Agent memory, save: key value store for agents

memory_set
Idempotent

Save a value (up to 8,000 characters of text or JSON) under a key in your own namespace, so an agent can remember facts, preferences or task state between runs. Overwrites an existing key; expires after 1 to 30 days (default 30). Values are kept until they expire (at most 30 days) or are deleted; reads anywhere may lag a write made elsewhere by up to a minute. Use to persist what an agent learned for a later call to memory_get. Price $0.002/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Changes only what you saved in your own memory namespace; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
keyYesThe key, up to 200 characters
daysNoDays to keep it, 1 to 30 (default 30)
valueYesThe text or JSON to save, up to 8,000 characters
namespaceYesYour namespace: a secret of 16 to 128 letters, digits, - or _ that you choose and reuse. Anyone who knows it can read and write it, so treat it like a password; send it in a POST body to keep it out of URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: overwrite-of-existing-key semantics, TTL of 1-30 days with a default of 30, values persisting until expiry or deletion, cross-region read lag up to a minute, billing model including free failed calls, and the blast radius ('changes only what you saved in your own memory namespace'). Annotations only supply the readOnly/idempotent/destructive flags, so this is substantial added context.

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?

The core action and its storage semantics are front-loaded and the paragraph is dense with useful facts. It loses a point for redundancy: TTL/expiry is stated twice ('expires after 1 to 30 days' and 'kept until they expire (at most 30 days)') and pricing is restated at the end.

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 4-parameter write tool with no output schema, the description covers lifetime, consistency, cost, scope of effect, and overwrite behavior, leaving nothing an agent needs in order to call it correctly.

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% and the schema already documents the key length, value size, days range/default, and the namespace-as-password warning. The description restates the value size and TTL rather than adding new syntax or format guidance, 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?

States a specific verb and resource ('Save a value ... under a key in your own namespace') plus the payload limit, and names memory_get as the read counterpart, which separates it from memory_get/memory_list/memory_delete in the sibling set.

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?

Explicitly says when to use it: 'Use to persist what an agent learned for a later call to memory_get,' and warns that each call is charged so repeats are not free. It does not mention the other siblings (memory_list for enumeration, memory_delete for removal), so the routing picture is clear but not exhaustive.

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.