Summarize checker coverage per standard
get_rule_coverageCounts rules by detection tier—deterministic, partial, or LLM-only—across standards and toolchains to show how much static analysis can cover a C/C++ review.
Instructions
Count rules per detection tier: deterministic (a rule-specific checker exists, e.g. a clang-tidy cert-* alias or the cppcheck MISRA addon), partial (only general checkers map) and llm-only (no checker; manual review needed), for all checker mappings, for the pinned reference toolchain (clang-tidy and Clang Static Analyzer 19.1.7, cppcheck 2.17.1, Semgrep with the bundled rules) and for the extended toolchain (plus Infer and the CodeQL CERT packs). SEI CERT by default; set standard for MISRA or AUTOSAR (adds by_standard and licensed_texts). Use to judge how much of a review static analysis can carry. Computed from bundled data; it does not probe the analyzers installed here (check_files reports those in tools[]). For one rule use get_rule; to list a tier's rules use list_rules with coverage.
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": "get_rule_coverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Count only rules, CERT recommendations or MISRA directives. | any |
| lang | No | Count only C (c) or C++ (cpp) rules. | 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 |
| include_ids | No | Add rules_all_mappings, rules_runnable and rules_extended: rule ID lists per tier (~15 KB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Rules counted after the standard/lang/kind filters. | |
| sources | Yes | Upstream mapping sources and commits. | |
| toolchain | Yes | Pinned analyzer versions the tiers were computed for. | |
| definitions | Yes | Meaning of deterministic, partial and llm-only. | |
| all_mappings | Yes | Counts per tier using every upstream checker mapping. | |
| extended_toolchain | Yes | Counts per tier when the optional Infer and CodeQL (CERT query packs) analyzers are installed as well. | |
| runnable_toolchain | Yes | Counts per tier using only the reference toolchain shipped in the Docker image: clang-tidy, Clang Static Analyzer, cppcheck and the bundled Semgrep rules. |