Get firmware coding rules
get_firmware_rulesReturns coding rules for microcontroller firmware in C, C++ or Rust. Each rule has an id, a habit with its reason, what to look for in review, and the MISRA or CERT rule numbers it relates to. The rules that block a change come first. Use it before writing firmware code, or to review code rule by rule, where a finding can name the id of its rule. Give a context to get only the rules for that kind of code.
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": {
"language": "<language>"
},
"name": "get_firmware_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | The kind of code: bare-metal, rtos (task code), interrupt (handlers), driver or bootloader. Omit for every rule of the language. | |
| language | Yes | The language of the code: c, cpp or rust. |