MCP Tools
Context Intelligence

undo_finding_fix

Undo a fix Marcora applied from Context Intelligence, restoring the prior context item or Brand Foundation text.

Parameters

NameTypeRequiredDefaultDescription
team_idintegerYes—Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.
finding_idstring (uuid)Yes—Required. UUID of the applied finding to undo (`can_undo: true`).

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "finding_id"
  ],
  "properties": {
    "team_id": {
      "type": "integer",
      "minimum": 1,
      "description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
    },
    "finding_id": {
      "type": "string",
      "format": "uuid",
      "description": "Required. UUID of the applied finding to undo (`can_undo: true`)."
    }
  }
}

Output Schema

{
  "type": "object",
  "required": [
    "id",
    "status",
    "can_undo",
    "link_url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string"
    },
    "target": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "integer"
          ]
        },
        "kind": {
          "enum": [
            "core",
            "item"
          ],
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "can_undo": {
      "type": "boolean"
    },
    "declined": {
      "type": "boolean"
    },
    "link_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "undone_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "undone_by": {
      "type": [
        "integer",
        "null"
      ]
    },
    "clear_reason": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}

Instructions

Reverts an applied Marcora fix by finding_id when can_undo is true, restoring the prior context item or Brand Foundation text. Requires an Admin or Creator role.

Refusals

Refuses with an explicit reason code when undo cannot proceed, such as:

  • changed_since_apply — the text was edited after the fix was applied.
  • never_applied — the fix was not applied by Marcora.
  • already_undone, not_applied, not_undoable, undo_unsupported, history_unavailable.

It also refuses if the finding cites private source history on a document.

Result

Returns the updated finding with can_undo: false, undone_at, and link_url.

When to use

Use when the user wants to revert an applied Marcora fix and the finding shows can_undo: true.

Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.