inspect_codebase_graph
Check whether a repository's AST knowledge graph exists and is healthy before building or querying it; returns read-only diagnostics on artifacts, indexed files, and build metrics.
Instructions
Inspects the operational state and artifact health of the AST knowledge graph for a repository. Safe, read-only diagnostic: reads local metadata files with zero mutations, network calls, or side effects. Discloses whether graphify-out/ exists, artifact count, indexed file statistics, and last build metrics.
When to use: Call to check whether a knowledge graph exists before deciding to build or query it. When NOT to use: Do not use to construct the graph (use build_codebase_graph) or to query specific symbol definitions and god classes (use query_codebase_graph). Returns: Graph status (ACTIVE or NOT BUILT), artifact count, indexed file count, node/edge metrics, and next action recommendations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "inspect_codebase_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Absolute or relative filesystem path to the target repository root. If omitted, empty string, or '.', defaults to the current working directory. Read-only access. |