Skip to main content
Glama

list_entities

View which users, agents, apps, or runs currently have stored memories in the Mem0 MCP Server to track memory ownership and usage.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_entities' tool, registered via @server.tool decorator. It resolves the Mem0 API settings, gets the client, and calls client.users() wrapped in error handling to list entities (users/agents/apps/runs) with stored memories.
    @server.tool(description="List which users/agents/apps/runs currently hold memories.") 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)

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/parthshr370/mem0_mcp_private'

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