list_entities
List users, agents, apps, or runs that currently hold stored memories to track memory ownership and usage.
Instructions
List which users/agents/apps/runs currently hold memories.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mem0_mcp_server/server.py:372-377 (handler)The handler function for the 'list_entities' tool. It resolves the API key from context, retrieves the Mem0 client, calls client.users() to list entities, and wraps the result with _mem0_call for error handling and JSON serialization.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)
- src/mem0_mcp_server/server.py:371-371 (registration)Registration of the 'list_entities' tool on the FastMCP server instance using the @server.tool decorator.@server.tool(description="List which users/agents/apps/runs currently hold memories.")