List coding-standard rules by filter
list_rulesList SEI CERT, MISRA, and AUTOSAR rules by standard, language, category, risk level, classification, or checker coverage to find matching C/C++ guidelines via structured criteria.
Instructions
List rules from the bundled databases, filtered by standard, language, category, kind, risk level, CERT detectability, MISRA/AUTOSAR classification or checker coverage. Default standard is SEI CERT C/C++ (388 rules and recommendations); standard='misra' or 'autosar' lists MISRA C:2012 (221), MISRA C++:2023 (178) or AUTOSAR C++14 (397) guidelines. Use to enumerate rules by structured criteria, e.g. all L1 C++ rules no checker detects or all mandatory MISRA C rules. Do not use for free-text lookup (use search_rules) or one rule's details (use get_rule). Reads bundled data only; fast. Returns summaries; count is the total before limit, so raise limit or narrow filters when truncated is true.
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 |
|---|---|---|---|
| kind | No | rule = normative rule; recommendation = CERT advisory (C only); directive = MISRA directive. | any |
| lang | No | c = C rules (SEI CERT C, MISRA C), cpp = C++ rules (SEI CERT C++, MISRA C++, AUTOSAR). | any |
| level | No | CERT priority level; L1 is the most urgent. | any |
| limit | No | Maximum summaries returned (each ~400 bytes). | |
| category | No | SEI CERT three-letter category, e.g. EXP expressions, MEM memory, INT integers, STR strings, CON concurrency. Ignored for other standards' sections. | any |
| coverage | No | Checker coverage tier: deterministic = a rule-specific checker exists; partial = only general checkers; llm-only = no checker, manual review needed. Matches either the all-mappings or the pinned-toolchain tier. | any |
| standard | No | Rule set: cert = SEI CERT C and C++ (default; the only standard with full rule text); misra = MISRA C:2012 (with Amendments 1-4, i.e. the MISRA C:2023 set) and MISRA C++:2023; autosar = AUTOSAR C++14; or one standard by name; all = every standard. | cert |
| detectable | No | CERT's own 'Detectable' flag (true = automatable in principle). Omit for both. | |
| classification | No | MISRA/AUTOSAR classification; SEI CERT rules have none and are excluded when this is set. | any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of rules matching the filters, before `limit`. | |
| rules | Yes | Rule summaries: id, standard, title, lang (c|cpp), kind (rule|recommendation|directive), category, severity, likelihood, priority (P1-P27), level (L1-L3), detectable, url, coverage (tier over all mappings), coverage_runnable (tier with the pinned toolchain). MISRA/AUTOSAR entries add classification, category_name, decidability, enforcement and cert (related SEI CERT IDs); their title is our paraphrase, not the official headline. | |
| truncated | Yes | True when count > limit and `rules` was cut. |