Skip to main content
Glama
Mipiti
by Mipiti

Set Mitigation Groups

set_mitigation_groups

Set the mitigation-group structure for a control objective, defining AND/OR control paths that satisfy it and replacing all existing assignments.

Instructions

Declaratively set the mitigation-group structure for a control objective. Mutating; runs as a polled background job (an LLM sufficiency check evaluates whether the new structure satisfies the CO) and returns once complete.

Replaces ALL mitigation-group assignments for this CO. Call get_mitigation_groups first to see the current structure and the unmapped controls available for assignment.

Mitigation groups define alternative paths to satisfy a CO:

  • Within a group: AND — all controls must be implemented.

  • Across groups: OR — any one complete group mitigates the CO.

  • Defense-in-depth: tracked but not required for mitigation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
co_idYesID of the control objective (e.g., "CO5").
groupsYesJSON object mapping group numbers to control-ID lists. Example: '{"1": ["CTRL-01", "CTRL-02"], "2": ["CTRL-03"]}'.
model_idYesID of the threat model.
justificationNoWhy this group structure is appropriate (10 to 2000 characters). The gate weighs it alongside the objective and the controls' own descriptions, so state the reasoning, not evidence.
server_versionYes
defense_in_depthNoComma-separated control IDs tracked as defense-in-depth (not required for mitigation). Example: "CTRL-04,CTRL-05".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.77.1
    • changedInput schema / properties / justification / description
      Previous value: -"Why this group structure is appropriate (min 10 chars)."New value: +"Why this group structure is appropriate (10 to 2000\ncharacters). The gate weighs it alongside the objective and the\ncontrols' own descriptions, so state the reasoning, not evidence."
  2. Changed2 schema fields changedv0.66.0
    • changedInput schema / properties / defense_in_depth / description
      Previous value: -"Comma-separated control IDs for defense-in-depth.\nExample: \"CTRL-04,CTRL-05\""New value: +"Comma-separated control IDs tracked as\ndefense-in-depth (not required for mitigation). Example:\n\"CTRL-04,CTRL-05\"."
    • changedInput schema / properties / groups / description
      Previous value: -"JSON object mapping group numbers to control ID lists.\nExample: '{\"1\": [\"CTRL-01\", \"CTRL-02\"], \"2\": [\"CTRL-03\"]}'"New value: +"JSON object mapping group numbers to control-ID lists.\nExample: '{\"1\": [\"CTRL-01\", \"CTRL-02\"], \"2\": [\"CTRL-03\"]}'."
  3. Addedv0.62.2
  4. Removedv0.62.1
  5. First observedv0.57.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: it discloses that the operation is mutating, that it runs as a polled background job with an LLM sufficiency check, that it replaces ALL assignments, and that defense-in-depth controls are tracked but not required. This is substantial behavioral disclosure for a destructive-ish mutation.

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?

The description is front-loaded with the action and mutation risk, then adds the critical call-get-first guidance, then compactly explains the group logic in bullets. Every sentence and bullet earns its place; nothing is filler or redundant with the schema.

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?

For a mutation tool with no annotations, the description covers the essential context: replacement behavior, polling/completion semantics, group logic, and parameter intent. An output schema exists, so return-value explanation is not needed. The only noticeable gap is the completely undocumented server_version parameter, which keeps this from being fully complete.

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

Parameters4/5

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

Schema coverage is high (83%), so the baseline is 3, but the description adds real meaning beyond the schema: it explains the 'justification' parameter's role in the gate ('state the reasoning, not evidence') and clarifies the defense_in_depth semantics and groups JSON structure. The undocumented server_version parameter is not addressed at all, preventing a 5.

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?

The description states a precise verb and resource: 'Declaratively set the mitigation-group structure for a control objective.' It clearly distinguishes this from the read-side sibling by explicitly telling the agent to call get_mitigation_groups first to inspect current structure. The replacement semantics and group semantics make the tool's role unmistakable.

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?

The description gives concrete usage context: call get_mitigation_groups first, note that all existing assignments are replaced, and understand the AND/OR/defense-in-depth semantics. It stops short of explicitly naming alternatives or saying when not to use this tool versus other group-setting siblings like set_control_assumption_groups, so it misses the highest bar for exclusions.

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

Deploy Server

Other Tools