Skip to main content
Glama

list_ai_memory_items

Read-only

List AI memory items. Scope a note with entity ('lead'|'contact'|'account'|'campaign') + entity_id (the record id). With entity_id: that record's notes PLUS tenant-wide notes. Without: tenant-wide only. category is now a free topical label (e.g. 'positioning-usp') you can filter on. To read a campaign's playbook memory, pass entity='campaign', entity_id=<campaign_id>. (Legacy: parent_id is an alias for entity_id.) Newest first; each row includes entity/entity_id/agent_id/brain_id/created_at/updated_at and a computed scope (scoped = attached to a record, agent = one agent's own memory, brain = a brain's memory, tenant = shared).

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
limitNoMaximum number of entries to return
entityNolead|contact|account|campaign|user|asbest_project|raumbuchung_booking
agent_idNoOnly what this agent sees: its own memory, its granted brains and shared notes (ignored while acting as an agent — then your own view applies)
categoryNoFree topical label filter
entity_idNoRecord id the notes are attached to
parent_idNoLegacy alias for entity_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "description": "Only what this agent sees: its own memory, its granted brains and shared notes (ignored while acting as an agent — then your own view applies)",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real behavior beyond that: newest-first ordering, the exact fields returned per row, and the computed scope vocabulary (scoped/agent/brain/tenant) that tells the agent how to interpret results. It doesn't cover pagination or volume limits.

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?

Front-loaded with the core action and the scoping rule, and every sentence carries usable information. It is one dense paragraph rather than a structured list, and the trailing parenthetical about return fields is slightly crowded, but nothing is filler.

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?

Six optional params, no output schema, yet the description covers scope resolution, ordering, returned fields, the legacy alias, and the category filter. An agent has everything needed to build a correct call and interpret the result.

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, but the description adds genuine meaning: the additive behavior of entity_id (record notes PLUS tenant-wide), the legacy parent_id alias, and how category is now a free topical label to filter on. That is above what the schema descriptions convey.

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?

Opens with a specific verb+resource ('List AI memory items') and immediately narrows scope with entity/entity_id semantics. It doesn't name the write siblings (create/update/delete_ai_memory_item) to route away from them, but 'List' vs those names is unambiguous.

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 explicit decision rules: with entity_id you get that record's notes plus tenant-wide; without it you get tenant-wide only; for a campaign playbook pass entity='campaign' with the campaign_id. It skies the 'when not to use' and never names alternatives, so it stops short of a 5.

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.