Skip to main content
Glama

Agent Data Tools: Utilities

Agent memory, list keys: what a namespace holds

memory_list
Read-only

List up to 100 keys saved in your namespace, optionally only those starting with a prefix, with their size, save time and expiry; pass the returned cursor for the next page. Values are not included (read them with /memory/get). Values are kept until they expire (at most 30 days) or are deleted; reads anywhere may lag a write made elsewhere by up to a minute. Use to see what an agent has saved. Example: namespace=demo-agent-memory-7f3c9a21. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "namespace": "<namespace>"
    },
    "name": "memory_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoThe cursor from the previous page of this list
prefixNoOnly keys that start with this text
namespaceYesYour namespace: a secret of 16 to 128 letters, digits, - or _ that you choose and reuse. Anyone who knows it can read and write it, so treat it like a password; send it in a POST body to keep it out of URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses pagination via the returned cursor, the 100-key page cap, the 30-day expiry window, up-to-one-minute read lag across regions, and per-call billing with failed calls free. These are behavioral facts an agent cannot derive from readOnlyHint/destructiveHint/idempotentHint, and nothing contradicts them.

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?

Purpose, pagination, and the value-vs-key distinction are front-loaded, and the pricing/safety tail is short. "Reads or computes only and changes nothing" largely restates readOnlyHint and the billing sentence is dense, so a little of the paragraph does not earn its place.

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 no output schema, the description carries the return shape itself: keys with size, save time, and expiry, plus a cursor for the next page. Combined with the expiry and read-lag notes, an agent has everything needed to call and interpret this correctly.

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 the baseline is 3, but the description adds meaning the schema does not: prefix narrows the listing, cursor chains pages, and the worked example "namespace=demo-agent-memory-7f3c9a21" shows the expected value shape. It does not add format details for cursor itself, keeping it below 5.

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?

"List up to 100 keys saved in your namespace, optionally only those starting with a prefix" states a specific verb, resource, cap, and filter. It explicitly distinguishes itself from the sibling memory_get by noting "Values are not included (read them with /memory/get)", so an agent can pick between them without opening either 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?

"Use to see what an agent has saved" plus the pointer to /memory/get for values gives clear when-to-use and one explicit when-not. It stops short of routing against memory_set/memory_delete (e.g., "to write, use memory_set"), leaving some sibling choice to inference.

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