Recall Memories
recall_memoriesRetrieve up to 20 deterministically ranked memory records for a query (read-only, idempotent; consumes 1 Read API call) and return { results, total_candidates } with per-item { memory, score }. Scores up to 500 candidates in namespace by lexical match (0.55), salience (0.30), and 30-day freshness (0.15) multiplied by tier boost (core=1.5x, semantic=1.25x), excluding items below min_salience. Use when you need individual memory IDs, metadata, or scores (for inspection, feedback, or forget_memory); use build_context instead for a ready-to-inject <memory_context> block, or search_code for code symbols.
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": {
"namespace": "<namespace>",
"query": "<query>"
},
"name": "recall_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keywords or natural-language topic to match against stored memory content. | |
| namespace | Yes | Logical workspace namespace to search (defaults to "default"; never prefix with "org:"). | |
| min_salience | No | Minimum salience filter (0.0-1.0); memories strictly below this value are excluded. | |
| token_budget | No | Advisory token budget hint for downstream context sizing (default 4096). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | Ranked { memory, score } matches (max 20). | |
| total_candidates | Yes | Total candidate memories evaluated in the namespace. |