Skip to main content
Glama

Open a memory

expand
Read-onlyIdempotent

Open the record behind a recalled cue and see the moment whole, with every cue that points to it. Do this before stating a detail from memory. A long record comes in parts: when the reply has a next_offset, expand again with that offset for the rest of the body (body_length says how long the whole body is).

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": {
      "record_id": "<record_id>"
    },
    "name": "expand"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoleave it out for the start; for the next part of a long record, the next_offset from the last reply
record_idYesthe record_id from a recalled cue

Output Schema

NameRequiredDescriptionDefault
bodyYes
cuesYes
sourceYes
record_idYes
stored_atYes
body_lengthYes
body_offsetNo
next_offsetNo
cues_left_outNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description still earns credit for disclosing pagination behavior that annotations cannot: partial bodies, re-calling with next_offset, and body_length as the total-size signal. It does not say what happens if offset is out of range or invalid, which leaves one behavioral edge unexplained.

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?

Three sentences, front-loaded with the core action and the pre-condition, followed by the pagination mechanics. Slight poetic padding ("see the moment whole") but every sentence carries a distinct instruction.

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?

For a two-parameter read tool with annotations and an output schema, the description covers the pre-condition, the meaning of the call, and the multi-part retrieval loop. Return-value structure is correctly left to the output schema, so nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so baseline is 3, and the description goes beyond the schema by explaining the offset loop (feed next_offset back into expand) and by tying record_id to its origin in a recalled cue. That is real added meaning rather than restatement.

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?

States a concrete verb and resource ("Open the record behind a recalled cue") plus the scope of what comes back ("every cue that points to it"), which is enough to separate it from a cue-listing tool. It never names the sibling it complements (recall), so differentiation is implicit rather than explicit.

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?

"Do this before stating a detail from memory" gives a clear triggering condition for when to call it, which is the most important guidance for this tool. There is no explicit when-not-to-use or named alternative for the case where the agent only needs cue-level information.

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.