memory_search
Full-text and semantic search across memories. Multi-tier retrieval: exact match, relaxed OR fallback with synonym expansion, fuzzy trigram, and optional semantic/hybrid search. Read-only. Returns { items, total, search_mode, retrieval_sources, degraded_components }.
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": {
"q": "<q>"
},
"name": "memory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query | |
| kind | No | Filter by memory kind | |
| sort | No | Sort field | relevance |
| tags | No | Filter by tags | |
| team | No | Team slug filter. Omit for mixed personal+team results. Use "personal" for personal-only. | |
| limit | No | Maximum number of results to return | |
| order | No | Sort order: ascending or descending | desc |
| offset | No | Number of results to skip for pagination | |
| status | No | Filter by status: active, stale, deleted | |
| tag_mode | No | Tag matching mode: all (AND) or any (OR) | all |
| tag_facet | No | Filter by tag facet | |
| collection | No | Filter by collection slug or ID | |
| session_id | No | Filter by interaction session | |
| canon_status | No | Filter by canon status | |
| allow_relaxed | No | Allow AND-to-OR relaxed fallback when strict search returns nothing | |
| search_fields | No | Restrict search to specific fields | |
| stale_penalty | No | How much to penalize stale memories in ranking. 0 = no penalty, 1 = fully suppress. Default 0.5. | |
| max_confidence | No | Maximum confidence as an integer percentage from 0 to 100 | |
| min_confidence | No | Minimum confidence as an integer percentage from 0 to 100 | |
| search_strategy | No | Search strategy: auto (best available), lexical (text only), semantic (vector only), hybrid (both with fusion) | auto |
| verification_status | No | Filter by verification status | |
| include_match_context | No | Include highlighted match context snippets | |
| include_graph_neighbors | No | Include graph-linked neighbor memories in results | |
| include_score_breakdown | No | Include per-signal score breakdown for each result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Search result items | |
| total | Yes | Total matching count | |
| search_mode | No | Search mode used | |
| suggested_tags | No | Suggested related tags | |
| degraded_reason | No | Reason for degradation | |
| retrieval_sources | No | Retrieval sources used | |
| degraded_components | No | Components running in degraded mode |