tier_context
Answers codebase or document questions in one call by resolving the index, running hybrid search, and packing relevant sections and dependencies within a token budget.
Instructions
PRIMARY ENTRY POINT: answer a question about a codebase or document in ONE call. Resolves (and auto-builds/syncs) the repository index, routes with hybrid search, matches symbol names, then packs L2 section bodies, L3 source slices, and a dependency summary until budget_tokens is reached. Use this first; fall back to the granular tier_* tools only when you need a specific section id, symbol, or lint check.
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": "tier_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional .tier file or directory; defaults to the server root's index | |
| query | Yes | Natural-language question or symbol names | |
| budget_tokens | No | Maximum tokens of context to return | |
| include_calls | No | Call-table detail: auto keeps only edges leaving the matched symbols, all keeps every stored edge, none omits the table | auto |
| include_impact | No | Include a compact dependency/impact summary for repo maps |