Draft PR comment with hints and style nits
format_pr_reviewAssembles a single Markdown PR review comment from diff analysis and review-packet data, including rule findings, style nits, and optional functional notes; it does not post the comment.
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). | |
| functional_notes | No | Extra functional review bullets; omit to auto-suggest from packet code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||