Get one SEI CERT rule
get_ruleRetrieve a full SEI CERT rule record—text, code examples, exceptions, risk assessment, CWE IDs, and detected checkers—to judge a finding or obtain the verbatim quote that validate_findings requires.
Instructions
Return the full record of one SEI CERT rule: text, noncompliant and compliant code examples, exceptions, CERT risk assessment, CWE IDs, the checkers that detect it, and how the chosen profile adjusts or disables it. Use before judging or explaining a finding, or to copy the verbatim quote that validate_findings requires. Do not use to discover rules (use search_rules or list_rules). Reads bundled data only. Records are large (median ~10 KB, up to ~80 KB); set include_examples=false for text and risk only. An unknown ID returns an error listing close matches.
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": {
"rule_id": "<rule_id>"
},
"name": "get_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Review profile: 'default' (plain SEI CERT), 'ceph' (Ceph severities, suppressions and idioms) or an absolute path to a profile .yaml file. | default |
| rule_id | Yes | SEI CERT rule ID: three-letter category, two digits, then -C or -CPP; case-insensitive. | |
| include_examples | No | Include code examples in `text` and `examples`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Canonical rule ID, e.g. EXP34-C. | |
| cwe | Yes | Related CWE IDs. | |
| url | Yes | Rule page on the SEI CERT site. | |
| kind | Yes | rule or recommendation. | |
| lang | Yes | c or cpp. | |
| risk | Yes | CERT risk assessment: severity, likelihood, remediation, priority, level, detectable, repairable. | |
| text | Yes | Rule text as markdown; examples included unless include_examples=false. Copy `quote` values for validate_findings from here. | |
| title | Yes | ||
| profile | Yes | name, override (severity/priority/note), disabled reason or null, idioms[]. | |
| category | Yes | Three-letter category code. | |
| coverage | Yes | tier, tier_runnable and checkers[] {tool, checker, specific, available}. | |
| examples | Yes | Noncompliant/compliant example pairs; [] when include_examples=false. |