Skip to main content
Glama
mcp-server-scf

mcp-server-scf

by MarkAC007

scf_control_write

Destructive

Change an organization's SCF control scope: update or batch-update controls, scope or unscope frameworks, and set scope, basis, maturity, materiality, or procedure overrides.

Instructions

Change the organization's control scope (editor+; some methods admin): update or batch-update controls, scope or unscope a framework, set scope, basis, maturity, materiality or procedure overrides.

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>"
    },
    "name": "scf_control_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisNo'mcr' or 'dsr' to override; null clears the override (and its reason) so the basis is derived from the org's classified frameworks again [set_basis_override] | 'mcr' (mandatory compliance requirement) or 'dsr' (discretionary security requirement); null leaves it unclassified. Reclassifying MCR to DSR changes which exclusions need an approver, hence admin-only [set_framework_basis] Used by: set_basis_override, set_framework_basis.
levelNoTarget CMM level L0–L5 for this control; null clears the override (and its reason) and the control inherits its domain target Used by: set_target_maturity.
ownerNoAccountable owner of the control Used by: update.
actionNo'include' pins the control in scope, 'exclude' pins it out, 'inherit' clears the override AND discards the recorded rationale (it stays in the audit trail) Used by: set_scope_override.
methodYesupdate: Update a scoped control's implementation fields (write — editor+). Identify by scf_id. Only provided fields apply. Material controls: admin for not_applicable. at_risk raises a deficiency. batch_update: Batch-update up to 500 scoped controls in one transaction (write — editor+). Each operation targets an scf_id. Material/MCR controls: no deselect (409); at_risk raises a deficiency. scope_framework: Bulk-scope every control mapped to a framework into the organization (write — editor+ role). Creates a scoped-control entry for each control in the framework. unscope_framework: Unscope every control mapped only to these frameworks (destructive write — editor). Shared controls are kept. An MCR framework, or one taking out a material control, needs an admin and a reason. set_scope_override: Force one control in or out of scope (write — editor+). 'include'/'exclude' pin it; 'inherit' clears it. Excluding an MCR or material control needs an admin key and a reason (editors 403). set_basis_override: Override one control's derived obligation basis (write — ADMIN role): mcr or dsr with a reason, or null to clear and derive it from its frameworks again. 404 if the control has no scope record. set_framework_basis: Record why a scoped framework is in scope (write — ADMIN role): basis mcr|dsr, obligation_type and obligation_source. Replaces all three; null clears. Only an active (scoped) framework, else 404. set_target_maturity: Override one control's target maturity (write — ADMIN role): a level L0–L5 with a reason, or null to inherit its domain's target again (domain targets: scf_update_org_settings). set_materiality: Set whether one control is material (write — ADMIN's own key; a platform key gets 403): true/false with a reason, or null for the catalogue default (material at weighting 10). set_procedure: Link one control to its signed-off procedure document, or null to unlink (write — editor+). The document must be this org's procedure, approved or published when linked (400 otherwise).
org_idYesOrganization UUID — obtain from scf_list_organizations
reasonNoWhy this control is being overridden — recorded in the audit trail (max 2000 characters). Required for 'exclude'. The admin making an MCR or material exclusion is recorded as its approver; there is no approver parameter [set_scope_override] | Why the derived basis is wrong for this control (max 2000 characters) — required when basis is set [set_basis_override] | Why this control departs from its domain target (max 2000 characters) — required when level is set [set_target_maturity] | Why (max 2000 characters). Required when material is true or false, and when a null clear makes a control weighted below 10 not material (400 otherwise) [set_materiality] Used by: set_scope_override, set_basis_override, set_target_maturity, set_materiality.
scf_idNoSCF control identifier in DOMAIN-NN format (e.g., 'AST-01', 'GOV-02') — NOT the UUID [update] | SCF control identifier in DOMAIN-NN format — obtain from scf_list_scoped_controls [set_scope_override, set_basis_override, set_target_maturity, set_materiality, set_procedure] Used by: update, set_scope_override, set_basis_override, set_target_maturity, set_materiality, set_procedure.
materialNotrue or false overrides the catalogue default; null clears the override. The admin is recorded as the approver: deciding a control is not material lets it be excluded or marked not_applicable without one Used by: set_materiality.
priorityNoImplementation priority: 'high', 'medium', or 'low' Used by: update.
frameworksNoFramework slugs to remove, e.g. ['iso_27017_2015'] — obtain from scf_list_frameworks Used by: unscope_framework.
operationsNoUpdate operations to apply (1–500 per call) Used by: batch_update.
assigned_toNoAssignee responsible for implementation Used by: update.
document_idNoProcedure document UUID — obtain from scf_list_documents; null unlinks. A later edit sends the document back to review; the link stays and scf_list_scoped_controls shows procedure_document_status Used by: set_procedure.
target_dateNoTarget completion date in ISO-8601 (YYYY-MM-DD) Used by: update.
framework_idNoFramework slug to scope (e.g., 'nist-800-53-r5') — obtain from scf_list_frameworks [scope_framework] | Framework slug of a framework the org has scoped — obtain from scf_get_framework_scope_summary [set_framework_basis] Used by: scope_framework, set_framework_basis.
maturity_levelNoMaturity level with L prefix: L0 Not Performed, L1 Performed, L2 Planned, L3 Well Defined, L4 Quantitatively Controlled, L5 Continuously Improving Used by: update.
removal_reasonNoWhy these controls leave scope — recorded in the audit trail. Required (400 without it), with an admin key (403 otherwise), when a framework carries an MCR obligation or its removal would take a material control out of scope Used by: unscope_framework.
completion_dateNoActual completion date in ISO-8601 (YYYY-MM-DD) Used by: update.
obligation_typeNoWhere the obligation comes from: statutory, regulatory, contractual or discretionary; omitted or null clears it Used by: set_framework_basis.
selection_reasonNoJustification for scoping decision — required for not_applicable or deferred Used by: update.
obligation_sourceNoThe law, regulation or contract behind it (max 2000 characters); omitted, null or blank clears it Used by: set_framework_basis.
implementation_notesNoFree-text implementation notes and context Used by: update.
implementation_statusNoNew implementation status (lowercase): not_started, in_progress, implemented, ready_for_review, monitored, not_applicable, at_risk, or deferred. Moving to at_risk raises a deficiency (see scf_list_deficiencies). A material control (catalogue weighting 10, or set material by an admin) can only leave scope through scf_set_scope_override by an admin (other paths 409), and only an admin may mark it not_applicable (403 otherwise). Used by: update.
orphan_evidence_actionNoTracked evidence whose only in-scope requirers are the controls being removed: keep (default) leaves it tracked and reports it; untrack switches tracking off and closes its open tasks as won't-do. Files and history are never touched Used by: unscope_framework.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.6.0
    • addedInput schema / properties / orphan_evidence_action
      Added value: +{
      +  "description": "Tracked evidence whose only in-scope requirers are the controls being removed: keep (default) leaves it tracked and reports it; untrack switches tracking off and closes its open tasks as won't-do. Files and history are never touched Used by: unscope_framework.",
      +  "enum": [
      +    "keep",
      +    "untrack"
      +  ],
      +  "type": "string"
      +}
  2. Addedv4.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true/readOnlyHint=false, and the description adds information annotations cannot express: a tiered authorization model where editor-level access suffices for most methods while a subset requires admin. It still does not say what is lost on an unscope, that reasons are written to an audit trail, or that 'unscope' only removes controls mapped solely to those frameworks — all of which live in the schema.

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

Conciseness4/5

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

One front-loaded sentence with the action first and the role constraint immediately after, so an agent gets the essentials in the first few words. The trailing colon list is a long run-on that partly duplicates the enum, which is the only waste.

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

Completeness3/5

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

This is a high-complexity tool: 10 mutually exclusive methods, 25 parameters, destructive semantics, and no output schema. The one-sentence description carries the overview and auth tiers but leaves all per-method behavioral detail (409/403 conditions, mandatory reasons, admin-key approver recording, null-clears-override semantics) to the schema; an agent must open the `method` enum before it can call anything correctly.

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 description coverage is 100% and each of the 25 parameters carries a 'Used by:' tag plus method-specific semantics, so the schema does the heavy lifting. The description's method list merely echoes the `method` enum and adds no format, constraint, or cross-parameter detail beyond it.

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

Purpose4/5

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

The description leads with a specific verb+resource ('Change the organization's control scope') and enumerates the covered operations (update, batch-update, scope/unscope framework, override setters), which separates it cleanly from the read-side sibling scf_control_read. It stops short of a single crisp definition because 'control scope' undersells the framework-scoping and procedure-linking methods, but the enumeration compensates.

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

Usage Guidelines3/5

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

The parenthetical '(editor+; some methods admin)' gives a real pre-call gate, and the method list implies which operation to pick. However there is no explicit when-to-use/when-not guidance against siblings, and the crucial routing hints (e.g. deselecting a material control must go through scf_set_scope_override) only appear inside the input schema, not the description.

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