locus_prepare_context
Prepares LLM agent context in a single call: retrieves, re-ranks, packs within token budget, assesses confidence, and adds knowledge-graph facts for query entities.
Instructions
All-in-one context preparation for LLM agents. Retrieves → re-ranks → packs into token budget → assesses confidence → adds KG facts for query entities. Single call returns everything needed to answer the query. Recommended primary tool for agent workflows.
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": "locus_prepare_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Temporal filter YYYY-MM-DD. | |
| limit | No | ||
| query | Yes | ||
| rerank | No | Apply heuristic re-ranking after RRF. | |
| store_path | No | .locus | |
| token_budget | No | Max tokens for packed_context. |