# Review application form publication

`deal_application_editor.publish_review`

Review saved draft changes to an existing application's questions, stored-data impact and eligible participants. This does not publish or send anything. First open and save the draft. Call without recipient_ids to inspect the audience, then call again with selected recipient_id values and the exact optional message. Explain effects and blockers; retain live_revision, draft_revision and review_digest for publish. Removing questions can permanently delete submitted answers; structure recovery does not restore those answers. 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"
    },
    "message": {
      "default": "",
      "description": "Optional shared participant message. Review the same text before publishing.",
      "maxLength": 4000,
      "type": "string"
    },
    "provider_slug": {
      "description": "Provider workspace returned by providers.list.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "recipient_ids": {
      "default": [],
      "description": "Exact recipient_id values from publish_review. Empty selects no communications; defaults are never applied.",
      "items": {
        "pattern": "^recipient_[a-f0-9]{64}$",
        "type": "string"
      },
      "maxItems": 100,
      "type": "array",
      "uniqueItems": true
    }
  },
  "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": {
        "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"
        },
        "changed_section_keys": {
          "items": {
            "maxLength": 255,
            "type": "string"
          },
          "maxItems": 1000,
          "type": "array"
        },
        "config_source": {
          "enum": [
            "live",
            "draft"
          ],
          "type": "string"
        },
        "draft_revision": {
          "anyOf": [
            {
              "description": "SHA-256 fingerprint of the exact document content.",
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "SHA-256 fingerprint of the exact document content."
        },
        "effects": {
          "maxLength": 3000,
          "type": "string"
        },
        "frontend_link": {
          "anyOf": [
            {
              "format": "uri",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "has_draft": {
          "type": "boolean"
        },
        "has_staged_changes": {
          "type": "boolean"
        },
        "impact": {
          "additionalProperties": false,
          "properties": {
            "affected_file_count": {
              "minimum": 0,
              "type": "integer"
            },
            "affected_response_count": {
              "minimum": 0,
              "type": "integer"
            },
            "blockers": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "block_key": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "code": {
                    "maxLength": 100,
                    "type": "string"
                  },
                  "file_count": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "message": {
                    "maxLength": 1000,
                    "type": "string"
                  },
                  "response_count": {
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "block_key",
                  "message",
                  "response_count",
                  "file_count"
                ],
                "type": "object"
              },
              "maxItems": 100,
              "type": "array"
            },
            "destructive": {
              "type": "boolean"
            },
            "findings": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "block_key": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "code": {
                    "maxLength": 100,
                    "type": "string"
                  },
                  "file_count": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "message": {
                    "maxLength": 1000,
                    "type": "string"
                  },
                  "response_count": {
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "block_key",
                  "message",
                  "response_count",
                  "file_count"
                ],
                "type": "object"
              },
              "maxItems": 100,
              "type": "array"
            },
            "findings_truncated": {
              "type": "boolean"
            },
            "has_blockers": {
              "type": "boolean"
            }
          },
          "required": [
            "destructive",
            "has_blockers",
            "blockers",
            "findings",
            "affected_response_count",
            "affected_file_count",
            "findings_truncated"
          ],
          "type": "object"
        },
        "live_revision": {
          "description": "SHA-256 fingerprint of the exact document content.",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "message": {
          "default": "",
          "description": "Optional shared participant message. Review the same text before publishing.",
          "maxLength": 4000,
          "type": "string"
        },
        "owner_kind": {
          "enum": [
            "client_intake",
            "deal",
            "matchmaking"
          ],
          "type": "string"
        },
        "owner_name": {
          "anyOf": [
            {
              "description": "Current application's owner display name.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Current application's owner display name."
        },
        "owner_slug": {
          "anyOf": [
            {
              "description": "Canonical owning workspace ID. Use it as deal_id, business_id or workspace_slug in this editor.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Canonical owning workspace ID. Use it as deal_id, business_id or workspace_slug in this editor."
        },
        "provider_slug": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "publication_kind": {
          "enum": [
            "client_intake",
            "deal",
            "no_notifications"
          ],
          "type": "string"
        },
        "recipient_candidates": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "display_name": {
                "maxLength": 500,
                "type": "string"
              },
              "email": {
                "maxLength": 320,
                "type": "string"
              },
              "recipient_id": {
                "pattern": "^recipient_[a-f0-9]{64}$",
                "type": "string"
              },
              "role_label": {
                "maxLength": 100,
                "type": "string"
              }
            },
            "required": [
              "recipient_id",
              "display_name",
              "email",
              "role_label"
            ],
            "type": "object"
          },
          "maxItems": 300,
          "type": "array"
        },
        "recipient_ids": {
          "default": [],
          "description": "Exact recipient_id values from publish_review. Empty selects no communications; defaults are never applied.",
          "items": {
            "pattern": "^recipient_[a-f0-9]{64}$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array",
          "uniqueItems": true
        },
        "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"
        }
      },
      "required": [
        "owner_kind",
        "owner_slug",
        "owner_name",
        "frontend_link",
        "runtime_slug",
        "provider_slug",
        "has_draft",
        "live_revision",
        "draft_revision",
        "config_source",
        "publication_kind",
        "recipient_candidates",
        "recipient_ids",
        "message",
        "review_digest",
        "impact",
        "has_staged_changes",
        "changed_section_keys",
        "change_summary",
        "effects"
      ],
      "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"
}
```
