Skip to main content
Glama

memory_get

Retrieve a stored memory entry for an agent by specifying the agent ID and memory key. Returns the stored string value, or empty if the key does not exist. Paid per request via Lightning.

Instructions

Retrieve a previously stored memory entry for an agent.

Returns the stored value as a string. If the value was stored as JSON,
parse it after retrieval. Returns an empty string if the key does not exist.

Cost: ~1 sat/KB (minimum 20 sats).
Returns: The stored value string, or empty string if not found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesThe agent identifier used when the memory was stored. Must exactly match the agent_id used in memory_store.
keyYesThe memory key to retrieve. Must exactly match the key used in memory_store. Use memory_list to see all available keys for an agent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses return type (string), JSON parsing requirement, empty string for missing keys, and cost (1 sat/KB min 20 sats). No annotations exist, so description provides good behavioral context.

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 concise sentences, front-loaded with purpose. No fluff, each sentence adds meaningful information.

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 return behavior, error case (empty string), JSON handling, and cost. For a simple 2-param tool with output schema, it is nearly complete. Minor omission of potential size limits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 100% of parameters with descriptions. Description adds value by reinforcing exact match requirement and directing to memory_list for key discovery, beyond the schema.

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?

Clearly states it retrieves a previously stored memory entry for an agent. Differentiates from sibling tools like memory_store and memory_list.

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?

Implies when to use (retrieve specific memory) and references memory_list for key discovery, but lacks explicit exclusions or comparison to 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