Skip to main content
Glama

Retrieve memory

retrieve_memory
Read-onlyIdempotent

Retrieve one record by key, including content and content_sha256. Requires scope 'memory:read'.

Input Schema

NameRequiredDescriptionDefault
keyYes
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds genuine value by disclosing the required auth scope 'memory:read' and the returned fields (content, content_sha256), though it says nothing about not-found behavior or errors.

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?

Two short sentences with zero filler; the core behavior is front-loaded and the auth requirement follows. Nothing to trim.

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 no output schema, mentioning content and content_sha256 helps, and the scope requirement is valuable. However, the required workspace_id goes entirely unexplained and lookup failure semantics are absent, leaving gaps for a two-parameter fetch tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, but it only implies that 'key' identifies a single record. workspace_id is never mentioned despite being required, and the key's pattern/length constraints and the workspace scoping relationship are left entirely to the schema.

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?

The description gives a specific verb and resource ('Retrieve one record by key') and pins down the scope to a single record, which implicitly contrasts with the batch-oriented search_memory sibling. It does not name the sibling explicitly, so distinction relies on inference from 'one record by key'.

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?

'By key' implies exact-key lookup as opposed to search_memory, but the description never states when to choose this tool over search_memory or what happens if the key is absent. Usage is only implied, with no exclusions or prerequisites beyond the scope line.

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