Remediate Finding
remediate_findingPreview a finding's automated remediation as a structured diff, then apply it with a required operator justification for the audit trail. Confirm the preview before committing changes.
Instructions
Preview, and on confirmation apply, the platform's remediation of a finding.
Without apply it is read-only: it returns a structured diff of what
the remediation would change, shaped by the finding's kind (for
structural_duplicate_controls: which controls are kept, which
dropped, and the CO mappings and framework refs the survivor takes).
Show the operator that diff and get explicit confirmation.
With apply=True it commits the change, recording justification
(a one-line operator rationale, required) on the audit trail. Never
apply without having shown the preview: the platform records who acted
but does not enforce the preview — the agent does.
404 when the finding does not exist; 422 when its kind has no automatic remediation (resolve those with the control tools); applying a finding already remediated or dismissed is refused (409).
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": {
"server_version": "<server_version>",
"finding_id": "<finding_id>"
},
"name": "remediate_finding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | False (default) previews; True applies. | |
| evidence | No | ||
| finding_id | Yes | ID of the finding. | |
| justification | No | With ``apply=True``: the operator's rationale. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||