search_memories
Find relevant memories by semantic search. Supports natural language queries, scoping to user/agent/run, filtering, relevance threshold, and reranking to surface the most pertinent information.
Instructions
Semantic search across existing memories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language description of what to find. | |
| user_id | No | User scope. Defaults to MEM0_USER_ID. | |
| agent_id | No | Agent scope. | |
| run_id | No | Run scope. | |
| filters | No | Additional structured filter clauses. | |
| limit | No | Maximum number of results. | |
| threshold | No | Minimum relevance score (0.0-1.0). | |
| rerank | No | Whether to apply reranking. | |
| enable_graph | No | Override default graph toggle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |