Skip to main content
Glama

memory_store

Persist key-value memory entries across sessions for autonomous agents. Store trade state, user preferences, or reasoning context that survives container restarts. Enables agent continuity between calls. Cost: ~2 sats/KB.

Instructions

Persist a key-value memory entry for an agent across sessions.

Memory is stored server-side and survives container restarts, making it suitable
for long-running autonomous agents that need continuity between calls.

Use this to save trade state, user preferences, intermediate reasoning results,
or any context an agent needs to recall in a future session.

Cost: ~2 sats/KB (minimum 50 sats).
Returns: 'stored' on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesUnique identifier for the agent or workflow storing the memory. Use a stable, descriptive name such as 'btc-trader-bot', 'research-agent', or 'portfolio-monitor'. All keys for this agent are namespaced under this ID.
keyYesThe memory key to store the value under. Should be descriptive and stable across sessions. Examples: 'last_trade', 'portfolio_state', 'user_preferences', 'market_context'
valueYesThe value to store. Use a JSON string for structured data. Example: '{"entry": 95000, "size": 0.1, "direction": "long"}'. Max recommended size: a few KB per entry.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description discloses persistence across restarts, cost per KB, minimum fee, and return string. It adds valuable behavioral context beyond basics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five sentences, front-loaded with purpose, each sentence adds value (persistence, use cases, cost, return). No wasted words.

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

Completeness4/5

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

Covers persistence, use cases, cost, and return value. Missing error handling or size limits beyond recommendation, but output schema exists. Good for a simple 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 coverage is 100% and schema descriptions are already clear. The description adds little new information about parameters beyond examples; 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 description clearly states the tool persists a key-value memory entry across sessions, with specific verb 'Persist' and resource 'key-value memory entry'. It distinguishes from siblings like memory_get and memory_list by focusing on storage.

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?

Provides explicit use cases like saving trade state or user preferences, but does not mention when not to use (e.g., for retrieval) or explicitly name alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/babyblueviper1/invinoveritas'

If you have feedback or need assistance with the MCP directory API, please join our Discord server