index_status
Check if a repository's semantic index is current, stale, or missing. If stale, it shows how many commits behind, so you can re-index before relying on code search.
Instructions
Report whether a repo's semantic index is fresh, stale, or absent.
Freshness is keyed to the git commit the index was built from — if HEAD has moved on, the index is "stale" and reports how many commits behind. Check this before leaning on semantic results (code_search / mr_review_context): if state is "stale" or "model_mismatch", offer to index_repo(root) first.
Args: root: Absolute path to the repository.
Returns: {state: absent|fresh|stale|model_mismatch|unknown, root, chunks?, indexed_at?, indexed_sha?, current_sha?, commits_behind?, reason?} or {"error": "..."} if the semantic extra is not installed.
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": {
"root": "<root>"
},
"name": "index_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes |