Skip to main content
Glama

List AI memory items

list_ai_memory_items
Read-only

List AI memory notes as the union of enclosing scopes: with entity_type + entity_id → that record's notes + that type's notes + tenant-wide; with entity_type only → all notes of that type + tenant-wide; with neither → tenant-wide only. Each row carries a computed 'scope' of record|type|tenant. Optional agent_id/brain_id further filter (agent_id also matches shared agent-less memory).

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_ai_memory_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 100)
agent_idNo
brain_idNo
entity_idNoRequires entity_type
entity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the read-only, non-destructive annotations, the description discloses the non-obvious union-of-scopes behavior and the fact that each row includes a computed scope field. It also notes that agent_id matches shared agent-less memory, which is important filtering behavior. It does not cover ordering or pagination behavior, but the core read semantics are well explained.

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?

The description is front-loaded with the tool's core purpose and scope model, then adds filtering behavior and row-scope output. Every sentence carries useful information, and the arrow notation makes the parameter-combination rules compact and 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?

For a read-only list tool with no output schema, the description covers the essential invocation logic and the key computed return field. It does not describe ordering or how limit interacts across scopes, but it is complete enough for an agent to select and call the tool 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?

With only 40% schema description coverage, the description compensates by explaining the entity_type/entity_id relationship and the resulting scope union. It also clarifies that agent_id and brain_id are optional filters and that agent_id has a special shared-memory match. It adds less meaning for limit and brain_id specifically, but the most complex parameters are well covered.

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?

The description states a specific verb and resource: listing AI memory notes. It also defines the central scope model, distinguishing this tool from ordinary flat-list siblings by explaining how record-level, type-level, and tenant-wide notes are combined.

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?

It clearly explains how invocation changes based on entity_type and entity_id, including the tenant-wide fallback when neither is supplied. It does not explicitly name alternative tools or exclusions, but the parameter-conditioned behavior gives strong guidance for using this tool correctly.

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