Skip to main content
Glama

AI Code Security Gate

Retrieve Agent Memory

memory_retrieve

Retrieve a project's memories for this key (newest first, max 20; optional keyword filter). Costs 2¢.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "memory_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
api_keyNo
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The description discloses behavior beyond the annotations: newest-first ordering, a hard cap of 20 results, and a 2¢ cost. The cost note is especially valuable because it explains why readOnlyHint is false for an operation that is otherwise a read. What it omits is any mention of authentication requirements around api_key.

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?

One tightly packed sentence with the resource, ordering, result cap, optional filter, and cost all front-loaded. Nothing is wasted and the parenthetical grouping keeps constraints readable.

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?

With an output schema present, return-value details are correctly left out, and the description covers the operational facts that matter: ordering, cap, optional filter, and price. The remaining gap is the undocumented api_key parameter and auth requirements, which is minor but real for a paid endpoint.

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 0% across three parameters, so the description must compensate. It maps loosely to project_id ('a project's memories') and query ('optional keyword filter'), but api_key is entirely undocumented and 'for this key' introduces a term the schema does not contain.

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 a project's memories') and scopes it to a key, which lets an agent tell it apart from memory_store. However, 'this key' is undefined terminology since no key parameter exists in the schema, leaving mild ambiguity about what is being filtered.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative, even though memory_store is the obvious counterpart. The phrase 'optional keyword filter' hints at how to narrow results but does not state when filtering is appropriate.

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.