analyze_project
Analyze project source code to build a queryable code graph. Required before using query tools to explore code structure and dependencies.
Instructions
Build the code graph by analyzing project source code.
REQUIRED before using query tools. Without analysis, the graph is empty.
Options:
service: Analyze only one service (faster for multi-service projects)
force: Re-analyze even if graph exists (use after code changes)
index_only: Fast mode — create MODULE nodes only, skip detailed analysis
Phases: Discovery → Indexing → Analysis → Enrichment → Validation Returns: Analysis summary with node/edge counts and timing.
Tip: Use get_stats after analysis to verify graph was built successfully.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | No | Optional: analyze only this service | |
| force | No | Force re-analysis even if already analyzed | |
| index_only | No | Only index modules, skip full analysis |