# Read Deal Application autofill preparation

`deal_applications.get_autofill_preparation`

Read Autofill preparation for a Deal application: notes, mode, supporting document names and processing status, available evidence, and revision. Check files[].name and files[].status to confirm uploads and follow processing. Processing updates do not change the preparation revision; read again for progress. This does not start Autofill or save answers.

[Deal applications guide](https://docs.levr.ai/mcp/resources/deal_applications.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": {
    "application_id": {
      "description": "Deal Application id returned by deals.get or deals.create. Prefix: dapp_.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "provider_slug": {
      "description": "Portal workspace where the Deal Application is available. Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "application_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": {
        "ai_mode": {
          "enum": [
            "fast",
            "thinking"
          ],
          "type": "string"
        },
        "application": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "object": {
              "const": "deal_application",
              "type": "string"
            }
          },
          "required": [
            "id",
            "object"
          ],
          "type": "object"
        },
        "can_start": {
          "type": "boolean"
        },
        "evidence_sources": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "family": {
                "type": "string"
              },
              "id": {
                "description": "Stable public identifier for the referenced resource.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "label": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "secondary_label": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "selected_by_default": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "family",
              "label",
              "secondary_label",
              "selected_by_default"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "file_count": {
          "minimum": 0,
          "type": "integer"
        },
        "files": {
          "description": "Supporting documents in preparation order, with their current processing status.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "Document name shown in the Portal.",
                "example": "financial-statement.pdf",
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "description": "Document processing: pending is queued; running is reading the file; success is ready for Autofill; failed needs attention.",
                "enum": [
                  "pending",
                  "running",
                  "success",
                  "failed"
                ],
                "type": "string"
              }
            },
            "required": [
              "name",
              "status"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "revision": {
          "minimum": 1,
          "type": "integer"
        },
        "selected_evidence_source_count": {
          "minimum": 0,
          "type": "integer"
        },
        "text_input": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "application",
        "revision",
        "text_input",
        "ai_mode",
        "file_count",
        "files",
        "selected_evidence_source_count",
        "evidence_sources",
        "can_start"
      ],
      "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"
}
```
