list_rules
Retrieve and filter Magento 2 coding standard rules by category, severity level, or search term to ensure code compliance.
Instructions
List all Magento coding standard rules. Can filter by category (Security, Legacy, PHP, Functions, Templates, Less, etc.), minimum severity (1-10), or search term.
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": "list_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Filter by category (Security, Legacy, PHP, Functions, Classes, Templates, Less, etc.) | |
| minSeverity | No | Minimum severity level (1-10, where 10 is most critical) | |
| searchTerm | No | Search in rule names and descriptions |