Draft PR comment with hints and style nits
format_pr_reviewBuilds a markdown PR review comment from diff check results and review packets, showing rule candidates, Ceph idioms, style nits, and functional notes. Does not post.
Instructions
Build a single markdown PR comment from check_diff output and build_review_packet: static tool summary, heuristic candidate-rule table, Ceph idiom hints, CodingStyle nits, and optional functional bullets. Does not post anywhere.
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": "format_pr_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repo root for relative paths in the markdown. | |
| scope | No | One line: merge-base..head and file list. | |
| title | No | Heading for the comment, e.g. the PR title. | |
| packet | No | Result from build_review_packet (needs `hunks`). | |
| profile | No | Review profile: 'default' (plain SEI CERT), 'ceph' (Ceph severities, suppressions and idioms), 'misra' (MISRA C:2012 + MISRA C++:2023), 'autosar' (AUTOSAR C++14) or an absolute path to a profile .yaml file. | ceph |
| check_result | No | Full object returned by check_diff (tools, findings, warnings, summary). | |
| github_footer | No | Append collapsible footer: pull_request_target, mcp, or github-action. Omit to skip. | |
| functional_notes | No | Extra functional review bullets; omit to auto-suggest from packet code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||