Prepare a user-owned key
For the full workflow, give a user-owned keyremediation:read for the optional outline and run-status tools, remediation:preview for get_remediation_review_preview, and remediation:request for request_remediation_review. The active owner must hold remediation.read for the reads and preview, and both remediation.read and remediation.execute for request, with no required password change pending. The preview and request scopes also work on their exact-plan REST routes; they differ from the owner’s permissions and grant no other REST write. A service key cannot use the preview or request tool. The server checks the key, owner and current permissions again when each call runs.
In MCP → + Generate token, select the three scopes for a user key. Tool discovery alone is not permission to call a tool; check the live reference for the deployed contract.
1. Identify the exact plan
Start from an open detection and record itsdetection_id and the linked plan_id. get_remediation_plan_outline can explain broad plan intent under remediation:read, but its result is metadata_only: target and execution readiness are not_checked, simulation mode is unknown, and it cannot supply the review revision required below.
Ask the assistant to call get_remediation_review_preview with the two UUIDs:
organizationId and organizationName, every step’s actionType, integrationId/integrationName, resource where required, simulated, reversible and requiresApproval. The response excludes credentials and executable step parameters. reviewRequestReady: true means these local request checks passed at preview time; vendorExecutionReady: not_checked does not promise a vendor action will succeed.
Save the returned reviewRevision and revisionExpiresAt. The revision lasts 15 minutes and is tied to the caller, exact detection, client, plan, step/target state and source state. The server checks live authority again on submission. Previewing does not create a run.
2. Request a named human’s decision
After reviewing the exact target and scope, generate and record one new UUID foridempotency_key. Call request_remediation_review with the same detection and plan UUIDs and the preview’s reviewRevision:
runId, approvalId, runStatus: pending_approval, approvalStatus: pending and replayed: false. A separate named human reviews the actual approval in Activity → Approvals; the requester cannot approve their own request. No step executes from this MCP call.
3. Resolve uncertainty and follow the result
If the response is lost or times out, do not create a fresh UUID and send another request. Retry the same payload with the sameidempotency_key to recover the committed result; replayed: true identifies it. A different payload with the same key is refused. The existing result may be returned even after the preview revision expires, because the server looks up the original committed request first. If there is no committed request and the revision has expired or anything changed, inspect the current run/approval state, preview again, and use a new key only for a deliberately new request.
Use get_remediation_run_status or list_remediation_runs under remediation:read to follow the run. pending_approval is not execution; completed is not verified resolution. A named human may approve the request, but a changed target or plan can cause the queued execution to refuse to act. Check the run’s separate verification status and fresh evidence before claiming a fix. Approval, execution and rollback remain in the signed-in remediation workflow.
When the call is refused
The Developer Console Try it panel executes real REST requests in your workspace. It is not an isolated sandbox or an MCP tool runner. The corresponding REST preview and review-request routes are visible in the authenticated live schema when deployed; use the same exact-target and idempotency discipline there.
For the REST review request, enter the recorded UUID in Idempotency-Key. Generate UUID starts a new key; it is not a retry button. The console keeps the key after errors and shows conflicts without automatically resending the request.