get_layer_dependencies
Detect upward dependency violations in Python codebases by analyzing layer imports. Returns categorized file counts and dependency edges.
Instructions
Analyze architectural layer dependencies in a Python codebase. Categorizes files into layers (web, handlers, services, generators, core, providers, models) and detects upward dependency violations where lower layers import from higher layers. Returns layer file counts, dependency edges, and violations.
No prior indexing required.
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": {
"repo_path": "<repo_path>"
},
"name": "get_layer_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the repository to analyze | |
| summary_only | No | Return only violation count without full layer details (default: false) |