Skip to main content
Glama
mcp-server-scf

mcp-server-scf

by MarkAC007

scf_risk_write

Destructive

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

NameRequiredDescriptionDefault
notesNoFree-text notes on this risk assessment Used by: create, update.
impactNoInherent impact on a 1–5 scale Used by: create, update.
methodYescreate: 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_idYesOrganization UUID — obtain from scf_list_organizations
rationaleNoWhy the risk is accepted (required, non-blank; stored trimmed). Blank is refused Used by: accept.
risk_codeYesRisk 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_onNoDate the acceptance lapses (YYYY-MM-DD); must be after today (400 otherwise) Used by: accept.
likelihoodNoInherent likelihood on a 1–5 scale Used by: create, update.
owner_user_idNoRisk owner — obtain from scf_list_members Used by: create, update.
treatment_planNoHow the risk is being treated Used by: create, update.
residual_impactNoResidual impact after treatment, 1–5 scale Used by: create, update.
next_review_dateNoWhen the risk is next reviewed (YYYY-MM-DD) [create] | YYYY-MM-DD [update] Used by: create, update.
treatment_statusNoTreatment 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_dateNoWhen treatment is due (YYYY-MM-DD) [create] | YYYY-MM-DD [update] Used by: create, update.
residual_likelihoodNoResidual likelihood after treatment, 1–5 scale Used by: create, update.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv4.6.0
    • removedInput schema / properties / control_id
      Removed value: -{
      -  "description": "SCF control ID to link (e.g., 'AST-01') — obtain from scf_list_controls Used by: create.",
      -  "type": "string"
      -}
    • removedInput schema / properties / description
      Removed value: -{
      -  "description": "Risk description (required) Used by: create.",
      -  "type": "string"
      -}
    • changedInput schema / properties / method / description
      Previous value: -"create: Create a new risk assessment in the risk register (write — editor+ role). Likelihood and impact scores populate the 5×5 risk matrix.\nupdate: 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.\ndelete: 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.\naccept: 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."New value: +"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.\nupdate: 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.\ndelete: 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.\naccept: 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."
    • addedInput schema / properties / next_review_date / anyOf
      Added value: +[
      +  {
      +    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / next_review_date / description
      Previous value: -"YYYY-MM-DD Used by: update."New value: +"When the risk is next reviewed (YYYY-MM-DD) [create] | YYYY-MM-DD [update] Used by: create, update."
    • removedInput schema / properties / next_review_date / type
      Removed value: -"string"
    • changedInput schema / properties / notes / description
      Previous value: -"Free-text notes on this risk assessment Used by: update."New value: +"Free-text notes on this risk assessment Used by: create, update."
    • removedInput schema / properties / owner
      Removed value: -{
      -  "description": "Name or identifier of the risk owner Used by: create.",
      -  "type": "string"
      -}
    • changedInput schema / properties / owner_user_id / description
      Previous value: -"Risk owner — obtain from scf_list_members Used by: update."New value: +"Risk owner — obtain from scf_list_members Used by: create, update."
    • changedInput schema / properties / residual_impact / description
      Previous value: -"Residual impact after treatment, 1–5 scale Used by: update."New value: +"Residual impact after treatment, 1–5 scale Used by: create, update."
    • changedInput schema / properties / residual_likelihood / description
      Previous value: -"Residual likelihood after treatment, 1–5 scale Used by: update."New value: +"Residual likelihood after treatment, 1–5 scale Used by: create, update."
    • addedInput schema / properties / risk_code / anyOf
      Added value: +[
      +  {
      +    "description": "Risk code: catalog R-XX-N (obtain from scf_list_catalog_risks) or custom R-ORG-N (obtain from scf_list_custom_risks)",
      +    "pattern": "^R-[A-Z]{2,4}-\\d+$",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Risk code — catalog R-XX-N or custom R-ORG-N",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / risk_code / description
      Previous value: -"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] Used by: update, delete, accept."New value: +"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]"
    • removedInput schema / properties / risk_code / type
      Removed value: -"string"
    • removedInput schema / properties / title
      Removed value: -{
      -  "description": "Risk title (required, max ~100 chars) Used by: create.",
      -  "type": "string"
      -}
    • addedInput schema / properties / treatment_due_date / anyOf
      Added value: +[
      +  {
      +    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / treatment_due_date / description
      Previous value: -"YYYY-MM-DD Used by: update."New value: +"When treatment is due (YYYY-MM-DD) [create] | YYYY-MM-DD [update] Used by: create, update."
    • removedInput schema / properties / treatment_due_date / type
      Removed value: -"string"
    • changedInput schema / properties / treatment_plan / description
      Previous value: -"How the risk is being treated Used by: update."New value: +"How the risk is being treated Used by: create, update."
    • changedInput schema / properties / treatment_status / description
      Previous value: -"Treatment workflow status (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."New value: +"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."
    • changedInput schema / required
      Previous value: -[
      -  "method",
      -  "org_id"
      -]New value: +[
      +  "method",
      +  "org_id",
      +  "risk_code"
      +]
  2. Addedv4.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false and destructiveHint=true, so the description's added value is the role gating (editor+ vs admin for accept) and the explicit pairing of delete with destructiveness. It does not discuss irreversibility or confirmation needs, so it stops just short of full behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence: the action and its scope come first, then the four mode options, then the dispatch rule. No filler and nothing redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 15 parameters, no output schema, and a rich per-method schema, the description carries the right level of overview while the schema handles field-level detail. It omits return values and what a successful delete leaves behind, but those are minor for a dispatched write tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description's only added semantic is the method-dispatch rule mapping the enum values to operations, which the schema already spells out per enum value in much greater detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Change the risk register') and enumerates the four distinct operations the tool performs, plus which parameter selects among them. An agent can immediately tell this is the risk-register mutation tool, distinct from the read and custom-risk siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear selection guidance ('Pick with method') and embeds role conditions (editor+ for most, admin for accept) plus a destructive flag for delete. It does not name the read counterpart or clarify the overlap with scf_accept_risk, which the schema has to resolve.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.