scf_risk_write
Manage risk register assessments: create, update, delete, or record and renew risk acceptances by selecting a method with organization ID, risk code, and assessment details.
Instructions
Change the risk register (editor+; accept is admin): create a risk assessment, update one, delete one (destructive), or record or renew a risk acceptance. Pick with method.
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": {
"method": "<method>",
"org_id": "<org_id>",
"risk_code": "<risk_code>"
},
"name": "scf_risk_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text notes on this risk assessment Used by: create, update. | |
| impact | No | Inherent impact on a 1–5 scale Used by: create, update. | |
| method | Yes | create: Add a risk to the register by risk_code, or re-score one already there (write — editor; upsert, only passed fields change). Accept with scf_accept_risk; re-scoring an accepted risk clears approval. update: Update a scored risk by code (write — editor). Only passed fields change. Setting accepted records no approval (use scf_accept_risk); re-scoring an accepted risk clears its approval. delete: Delete an organization's scoring of a risk code (destructive write — editor role). The catalog or custom risk definition itself remains; only this org's assessment row is removed. accept: Accept a risk (write — admin): records you as approver, now, the rationale and expiry. Renews an accepted risk. Also accepts a standards exception. A platform key without a user gets 403. | |
| org_id | Yes | Organization UUID — obtain from scf_list_organizations | |
| rationale | No | Why the risk is accepted (required, non-blank; stored trimmed). Blank is refused Used by: accept. | |
| risk_code | Yes | Risk code: catalog R-XX-N (obtain from scf_list_catalog_risks) or custom R-ORG-N (obtain from scf_list_custom_risks) [create] | Risk code — catalog R-XX-N or custom R-ORG-N [update, delete] | Risk code — catalog R-XX-N or custom R-ORG-N — obtain from scf_list_risks or scf_list_custom_risks [accept] | |
| expires_on | No | Date the acceptance lapses (YYYY-MM-DD); must be after today (400 otherwise) Used by: accept. | |
| likelihood | No | Inherent likelihood on a 1–5 scale Used by: create, update. | |
| owner_user_id | No | Risk owner — obtain from scf_list_members Used by: create, update. | |
| treatment_plan | No | How the risk is being treated Used by: create, update. | |
| residual_impact | No | Residual impact after treatment, 1–5 scale Used by: create, update. | |
| next_review_date | No | When the risk is next reviewed (YYYY-MM-DD) [create] | YYYY-MM-DD [update] Used by: create, update. | |
| treatment_status | No | Treatment lifecycle state (default identified) [create] | Treatment lifecycle state. 'accepted' set here records no approval — scf_accept_risk does. Below admin, moving an accepted risk with an approval in force off accepted is ignored (it stays accepted); an admin's move clears the acceptance [update] Used by: create, update. | |
| treatment_due_date | No | When treatment is due (YYYY-MM-DD) [create] | YYYY-MM-DD [update] Used by: create, update. | |
| residual_likelihood | No | Residual likelihood after treatment, 1–5 scale Used by: create, update. |