validate_architecture_code
Validates Dart source code against Clean Architecture layer rules and returns structured violations for read-only static analysis.
Instructions
Validate Dart source code against enterprise Clean Architecture rules for a specific layer.
Strictly READ-ONLY: Performs static analysis on the provided code string without writing files.
Zero Mock Data: Fails fast on invalid inputs or malformed layers, returning structured violations.
Args:
dart_code: Full Dart source code to analyze.
layer: Architecture layer ('domain', 'data', 'presentation', 'core', 'module').
architecture_profile: Approved mode: imespro, external-structured, or external-standard.
Omitted values retain legacy iMESPro checks. External Client conventions need manual verification.
Returns:
Dictionary with status, valid flag, list of violations, checked rules, and unsupported checks.
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": {
"dart_code": "<dart_code>",
"layer": "<layer>"
},
"name": "validate_architecture_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| dart_code | Yes | ||
| architecture_profile | No | imespro |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||