check_index_status
Check codebase indexing status to determine if search tools are ready or if indexing is required.
Instructions
USE THIS TOOL to check if the codebase has been indexed and whether search tools will return results. Call this BEFORE search_code or search_docs if you're unsure about indexing state.
TRIGGER - Call this tool when:
You're unsure if the codebase has been indexed
search_code or search_docs returned empty results
Starting work on a new project or session
You want to verify index health before searching
This tool checks the SQLite database for indexed symbols and documentation chunks. It's a lightweight diagnostic - much faster than re-indexing.
INTERPRETING RESULTS:
If "indexed" is false OR "symbols_indexed" is 0: You MUST call index_codebase first
If "suggestion" says "CALL index_codebase FIRST": Indexing is required
If "suggestion" says "ready to search": Search tools will work
Do NOT use this tool for:
Actually indexing the codebase (use index_codebase)
Searching for code or documentation
Git history queries
Args: directory: Path to the project directory to check.
Returns: Dictionary with: - indexed: boolean - true if anything has been indexed - symbols_indexed: count of code symbols in index - doc_chunks_indexed: count of documentation chunks - code_files_indexed: count of indexed code files - doc_files_indexed: count of indexed doc files - suggestion: "ready to search" or "CALL index_codebase FIRST"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |