Skip to main content
Glama

list_entities

Identify users, agents, apps, or runs that currently hold stored memories in the memory system.

Instructions

List which users/agents/apps/runs currently hold memories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that resolves settings, gets Mem0 client, and calls client.users via _mem0_call to list entities with error handling.
    def list_entities(ctx: Context | None = None) -> str: """List users/agents/apps/runs with stored memories.""" api_key, _, _ = _resolve_settings(ctx) client = _mem0_client(api_key) return _mem0_call(client.users)
  • Registers the list_entities tool on the FastMCP server instance with a description.
    @server.tool(description="List which users/agents/apps/runs currently hold memories.")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mem0ai/mem0-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server