List SEI CERT rules by filter
list_rulesEnumerate SEI CERT C/C++ rules by structured filters such as language, category, risk level, or checker coverage. Returns rule summaries without full text for listing.
Instructions
List SEI CERT C/C++ rules and recommendations from the bundled database (388 entries), filtered by language, category, kind, risk level, CERT detectability or checker coverage. Use to enumerate rules by structured criteria, e.g. all L1 C++ rules no checker detects. Do not use for free-text lookup (use search_rules) or for one rule's text and examples (use get_rule). Reads bundled data only; fast, no analyzers run. Returns summaries without rule text; 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 = advisory (C only). | any |
| lang | No | c = SEI CERT C, cpp = SEI CERT C++. | any |
| level | No | CERT priority level; L1 is the most urgent. | any |
| limit | No | Maximum summaries returned (each ~400 bytes). | |
| category | No | Three-letter category, e.g. EXP expressions, MEM memory, INT integers, STR strings, CON concurrency. | 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 |
| detectable | No | CERT's own 'Detectable' flag (true = automatable in principle). Omit for both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of rules matching the filters, before `limit`. | |
| rules | Yes | Rule summaries: id, title, lang (c|cpp), kind (rule|recommendation), category, severity, likelihood, priority (P1-P27), level (L1-L3), detectable, url, coverage (tier over all mappings), coverage_runnable (tier with the pinned toolchain). | |
| truncated | Yes | True when count > limit and `rules` was cut. |