Search the cortex
cortex_querySearch the cortex (a reviewed knowledge base) and get answers that each show their source — a file, link, or document they came from. When the question turns on the user's or their team's preferences, history, decisions, projects, or past conversations, search this first: the user's approved memory is the source of truth for those, and your own recollection may be stale. If nothing trustworthy matches, the cortex says so instead of guessing — relay that honestly rather than answering from general knowledge.
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": "cortex_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The question or topic, in plain words. | |
| tag | No | Optional entity tag filter: only facts tagged with it answer (e.g. 'account:meridian' or 'meridian'). The search itself is unchanged — the tag prunes the results, like everything here, honestly. | |
| kind | No | Optional filter: only facts of one kind, e.g. company_fact, process, story, history, decision, capability, boilerplate. | |
| top_k | No | How many answers to return at most (default 8). | |
| tags_any | No | Optional: keep only facts carrying ANY of these tags. |