analyze_topology
Analyze token topology by generating dependency graphs, detecting anti-patterns, and visualizing token relationships with distribution charts and coverage matrices.
Instructions
Analyze token topology with dependency graph, anti-pattern detection, and structure analysis. Shows token relationships, reference chains, isolated tokens, circular dependencies, and common anti-patterns like primitive leakage, naming inconsistencies, and redundant tokens. Includes visual dependency graph (Mermaid), distribution charts, and coverage matrix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pathPrefix | No | Only analyze tokens starting with this path prefix. Comma-separated for multiple prefixes. | |
| includeGraph | No | Include Mermaid dependency graph in output. Default: true. | |
| graphMaxDepth | No | Maximum reference depth to show in dependency graph. Default: 3. | |
| graphMaxNodes | No | Maximum nodes to show in dependency graph (prevents overwhelming diagrams). Default: 40. | |
| includeAntiPatterns | No | Include detailed anti-pattern analysis. Default: true. | |
| includeDistribution | No | Include token distribution charts. Default: true. |