Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Remediate Finding

remediate_finding

Preview 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

NameRequiredDescriptionDefault
applyNoFalse (default) previews; True applies.
evidenceNo
finding_idYesID of the finding.
justificationNoWith ``apply=True``: the operator's rationale.
server_versionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.106.1
    • addedInput schema / properties / evidence
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
  2. Addedv0.84.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and it does: read-only without apply, the shape of the returned diff by finding kind, audit-trail recording of justification, and the important disclosure that the platform does not enforce the preview — the agent does. Error semantics (404, 422, 409) are spelled out as well.

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?

Front-loaded with the mode distinction, then preview behavior, then apply behavior, then error cases — a logical progression where nearly every sentence carries new information. It runs slightly long and repeats the preview requirement for emphasis, but nothing is truly wasted.

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

Completeness5/5

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

For a mutating, kind-dependent operation this covers what an agent needs: mode semantics, confirmation workflow, audit behavior, and the failure modes. An output schema exists, so the diff's return structure need not be re-explained in prose.

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 60%, and the description adds real meaning for two parameters: apply as the preview/commit switch and justification as a required one-line rationale captured on the audit trail. However, evidence and server_version are not mentioned anywhere, leaving part of the parameter surface undocumented in both places.

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 opens with a specific verb pair and resource ('Preview, and on confirmation apply, the platform's remediation of a finding') and immediately clarifies the two operating modes. It also uses the finding's 'kind' to describe what the output looks like, which lets an agent distinguish this from generic finding-editing tools.

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

Usage Guidelines5/5

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

Explicit routing is provided: preview by default, apply only after showing the operator the diff and getting confirmation, and 'resolve those with the control tools' for kinds lacking automatic remediation. The 409 case (already remediated or dismissed) further tells the agent when this tool will refuse.

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