Skip to main content
Glama

Context Link

List Memories

list_memories
Read-onlyIdempotent

List the namespaces of the user's saved memories, so you can fetch one with Get Memory. Use this when the user refers to saved content but you don't know its exact name. Pass the session's mode if it has one: you get memories saved without a mode plus those saved in that mode.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_memories"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOptional mode for this session (e.g. 'customer-support'). Lists memories saved without a mode plus those saved in this mode; memories saved under another mode are excluded. Use the same mode you pass to Get Memory.

Output Schema

NameRequiredDescriptionDefault
modeYes
memoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds real behavioral detail beyond them: the mode filter is a union of memory with no mode plus memory in the given mode, excluding other modes. Ordering and result-size behavior are not mentioned, which keeps it short of a 5.

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?

Two front-loaded sentences: purpose plus next-step first, then the usage trigger, then the mode rule. The mode sentence largely duplicates the schema, but it is short and placed after the primary purpose, so the cost is low.

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

Completeness5/5

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

With one optional parameter, a full schema, an output schema, and rich read-only annotations, the description supplies everything an agent needs: what is returned (namespaces), when to call it, and how the mode changes the result set.

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 100% and the single 'mode' parameter is already documented in the schema, including the union and exclusion rules and the instruction to match Get Memory. The description restates that same rule rather than adding new meaning, so it sits at the baseline for a fully documented 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?

States a specific verb and resource ('List the namespaces of the user's saved memories') and clarifies that only namespace names come back, not contents, by pointing to 'Get Memory' for the fetch. This lets an agent distinguish it from get_memory and save_memory without opening a schema.

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?

Gives an explicit trigger: 'Use this when the user refers to saved content but you don't know its exact name.' It also routes the natural next step to Get Memory and explains the mode condition. It lacks an explicit when-not statement, but the trigger condition is specific enough to guide selection.

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