# Review application form draft reset

`deal_application_editor.review_reset`

Review discarding the Portal draft, its staged attachments and staged history. This does not publish, notify participants or restore deleted answers. Review these effects before calling reset with the returned live_revision, draft_revision and review_digest. This toolset requires a specific grant and is not assigned by default; request access through Support.

[Deal application editor guide](https://docs.staging.levr.ai/mcp/resources/deal_application_editor.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "deal_id": {
      "description": "Exact Deal id from deals.list or deals.get in the selected provider workspace; do not pass an application or runtime ID.",
      "maxLength": 32,
      "minLength": 1,
      "pattern": "^deal_[a-z0-9]+$",
      "type": "string"
    },
    "provider_slug": {
      "description": "Provider workspace returned by providers.list.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "deal_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "enum": [
            "undo",
            "reset"
          ],
          "type": "string"
        },
        "blockers": {
          "items": {
            "maxLength": 1000,
            "type": "string"
          },
          "maxItems": 1,
          "type": "array"
        },
        "can_apply": {
          "type": "boolean"
        },
        "change_summary": {
          "additionalProperties": false,
          "properties": {
            "block_add_count": {
              "minimum": 0,
              "type": "integer"
            },
            "block_remove_count": {
              "minimum": 0,
              "type": "integer"
            },
            "block_update_count": {
              "minimum": 0,
              "type": "integer"
            },
            "section_add_count": {
              "minimum": 0,
              "type": "integer"
            },
            "section_remove_count": {
              "minimum": 0,
              "type": "integer"
            },
            "section_update_count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "section_add_count",
            "section_remove_count",
            "section_update_count",
            "block_add_count",
            "block_remove_count",
            "block_update_count"
          ],
          "type": "object"
        },
        "draft_revision": {
          "description": "SHA-256 fingerprint of the exact document content.",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "effects": {
          "items": {
            "maxLength": 1000,
            "type": "string"
          },
          "maxItems": 5,
          "type": "array"
        },
        "live_revision": {
          "description": "SHA-256 fingerprint of the exact document content.",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "provider_slug": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "review_digest": {
          "description": "SHA-256 fingerprint of the exact document content.",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "runtime_slug": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "staged_attachment_count": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "runtime_slug",
        "provider_slug",
        "action",
        "live_revision",
        "draft_revision",
        "review_digest",
        "can_apply",
        "blockers",
        "effects",
        "staged_attachment_count",
        "change_summary"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
