memory_search
Search persistent project and personal memory by keyword to retrieve past decisions, conventions, and preferences. Use it before asking users about context they may have already provided.
Instructions
Search persistent memory by keyword (BM25 full-text). Returns matching memories from the current project and/or personal scope. Call before asking the user about past decisions, conventions, or preferences they may have told you before. Search well: break the question into its concepts and try 2–3 phrasings per concept — synonyms, the user's other language, shorter keyword forms — and check the other scope too, before concluding nothing is stored. Results are ranked by BM25 within review tiers — reviewed (approved/published) project memories come first. limit caps how many come back (default 8) and type restricts to one memory type.
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": "memory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Restrict to memories of this type. Closed taxonomy — a misspelled type is rejected, never silently empty. | |
| limit | No | Max results to return (default 8). | |
| query | Yes | Free-text query. File paths, error strings, identifiers work well. | |
| scope | No | Which scope(s) to search. Default: both. |