# Review proposed application form changes

`deal_application_editor.validate_config`

Validate a complete config from get_config without saving. Read get_config_schema before authoring. Review impact against both live and draft questions: removals can permanently delete answers on publication; storage conversions and populated repeatable-group loss are blocked. Open a draft before saving. Copy live_revision, draft_revision and review_digest into replace, keeping the same config. A review is not consent; publishing requires a separate review and approval. 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": {
    "config": {
      "additionalProperties": false,
      "properties": {
        "application_runtime_structure": {
          "description": "Complete editable structure for the selected application runtime.",
          "type": "object"
        },
        "config_type": {
          "const": "application_runtime_structure",
          "description": "Document kind used to distinguish this config from other portable documents."
        },
        "config_version": {
          "const": 1,
          "description": "Version of the portable Runtime Editor config contract."
        }
      },
      "required": [
        "config_version",
        "config_type",
        "application_runtime_structure"
      ],
      "type": "object"
    },
    "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",
    "config"
  ],
  "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": {
        "config_digest": {
          "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."
        },
        "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."
        },
        "finding_count": {
          "minimum": 0,
          "type": "integer"
        },
        "findings": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            },
            "required": [
              "path",
              "code",
              "message"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        },
        "findings_truncated": {
          "type": "boolean"
        },
        "impact": {
          "anyOf": [
            {
              "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"
            },
            {
              "type": "null"
            }
          ]
        },
        "live_revision": {
          "description": "SHA-256 fingerprint of the exact document content.",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "review_digest": {
          "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."
        },
        "valid": {
          "type": "boolean"
        }
      },
      "required": [
        "valid",
        "findings",
        "finding_count",
        "findings_truncated",
        "live_revision",
        "draft_revision",
        "impact",
        "review_digest",
        "config_digest"
      ],
      "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"
}
```
