Deal applications
Read as MarkdownChoose an action to read its inputs, results, and usage guidance. Your connection determines which tools are available to you.
A Deal application collects the information required for one recipient. Find its ID through deals.get or a deals.create receipt. Each recipient can require different questions and documents.
1. Discover this application's questions
Use the application's ID and your Portal's provider_slug throughout this workflow. Call deal_applications.get_contract without section_key to get the section index. Then call it with each relevant returned section_key to read the actual questions and repeated groups. Empty questions in the index means details were omitted, not that the application has no questions.
Forms vary by intake template, recipient and Deal package. Use the contract for this existing application, not a different application's keys or the latest definition. Read field value_schema, choices, required fields, visibility and supported operations. Copy block_key and field_key from the questions; a section key is not a block key. Refresh the contract when its contract_version changes or validation indicates the questions changed.
2. Save known answers and repeated entries
Call deal_applications.get_answers and follow next_cursor until you have the relevant answers. Preserve existing values and ask for missing facts rather than guessing. Call deal_applications.update_answers with ordinary field updates, the latest expected_answers_revision and a new UUID idempotency_key.
For owners or another repeated group, use list_repeatable_items with the group's contract block_key. Use add_repeatable_item only for a genuinely new entry, retain its returned item_id, and use update_repeatable_item for that row's answers. Row order and a person's name are not row identifiers. All these tools use this application's namespace.
Use each write's new answers revision for the next change. If a revision is stale, read again and reconcile the changes before retrying. After a lost response, retry the identical command with its original key and revision. The application's revision and its answers_revision protect different state.
3. Attach the required documents
Find the file question in the contract, including accepted file types and counts. Call deal_applications.prepare_answer_file_upload with its block_key, optional exact item_id, latest expected_answers_revision, a new UUID idempotency_key, filename, size_bytes and content_sha256. Preparation attaches nothing.
POST the bytes to the returned URL as multipart field file, with the returned transfer_token as a Bearer credential, within five minutes. This HTTP transfer is part of the MCP workflow; no separate Portal API key is needed. Do not place file bytes or transfer tokens in AI conversation. The transport limit is 25 MiB per file; the question's requirements and application storage limits also apply.
Read the upload receipt, then call deal_applications.list_answer_files to confirm the attachment belongs to the intended question and row. Keep the resulting answers revision. Retry the same bytes at the returned URL while its credential remains valid; check existing attachments before preparing another upload after an uncertain result. Uploading evidence to Autofill is separate: it does not satisfy a file question by itself.
4. Hand required signatures to the human
Read deal_applications.review_signature with the signature block_key and exact repeated item_id, if applicable. Review the consent and existing receipts. A signature recorded on one owner does not establish that every owner signed; a satisfied required field does not establish that a separately invited person completed their request.
Explain who will receive access and what they can do, then obtain explicit confirmation. Call deal_applications.request_signature with the target, email, a new UUID idempotency_key and user_confirmed: true. Use access_mode: "signature_only" unless broader editing is intended. Existing broader access is preserved.
The result contains a request ID, status, delivery_state and signing_url. Tell the recipient to open that link, verify their invited email address, review the application and sign. The server also queues an invitation email. The link is a verification entry point, not an access credential. Public MCP does not sign on the human's behalf, and ordinary answer updates cannot record consent.
Call deal_applications.get_signature_request with its signature_request_id, or list_signature_requests, to follow progress:
queuedconfirms scheduling;acceptedmeans mail-provider acceptance, not inbox delivery or signing.status: "completed",signature_idandcompleted_atidentify the saved signature for this request.access_stateseparately reports active, expired, revoked or unavailable access. An unusable or completed request has no signing URL.
Reuse the original key and arguments for a network retry. For an intentional resend, explain the renewed access, confirm it, and pass the existing signature_request_id with a new key. Preserve the original block, item, email and access mode; omit the message to reuse it. Check readiness after signing. Neither sending an invitation nor signing submits the application.
5. Check readiness and submit only when asked
Call deal_applications.check_submission_readiness. Resolve each issue using its question keys and exact repeated item_id; signature issues identify the relevant block and row. Answer changes can reveal new requirements, so check again after completing them. Optional unanswered fields can keep a visual completion counter below 100% while required readiness passes.
When submission is requested, review the current answers and readiness. Explain validation and external-delivery effects, then obtain the second explicit confirmation required by the submit tool. Call deal_applications.submit with the current expected_revision, expected_answers_revision, a new UUID idempotency_key and user_confirmed: true. These MCP inputs differ from the REST submission-token workflow.
If state changed, reread it and obtain confirmation for the current submission rather than retrying with guessed revisions. Read the application afterward to confirm its submitted state. A receipt confirms submission, not approval or funding. If the task was only to complete or sign, stop before submission.
Retrieve the original submission
Current attachment lists do not establish what was submitted. When a document is reported missing, compare the source files, current attachments and retained submission files. A retained package does not prove recipient delivery or review. Editing the current application does not send an amendment.
Use deal_applications.get_submission_package to check when an original was captured, its preparation_status, and PDF/file availability. The summary contains no application answers. Its frontend_link opens the branded application workspace, where the submission timeline/history provides the saved copy.
Use deal_applications.list_submission_files for supporting-file IDs, names and sizes. Follow next_cursor until null. Use deal_applications.get_submission_download with artifact: "zip" for everything, "pdf" for the original application and signature audit, or "file" with a listed file_id.
GET download.url with Authorization: Bearer <transfer_token> within five minutes. Keep the token private; no API key is needed. Access is checked again when downloading.
not_captured means no original copy was saved. pending and failed describe copy preparation, not delivery. Supporting files may remain available after PDF failure. Do not submit again to obtain a copy, and never present current answers as historical answers. Use the original PDF to review submitted content; typed historical answers are not available through these tools.
Record an application decision
Use deal_applications.review_status_change to review an available status change and its effects. Source and processing Portals can record outcomes; observers can only record submitted or not-submitted status when available. Explain the review, obtain a second explicit confirmation, then call deal_applications.change_status with the same application, target status, optional destination stage, and review token. Send user_confirmed: true, a new UUID idempotency_key, and selected recipients’ email and origin, or recipients: [] for no optional messages. Automatic effects still apply.
Before marking funded, complete the required financing fields available to you. Read financing terms, then use Update financing terms for amounts and equipment details with the returned revision. Send equipment in changes.equipment_entries as the complete list you want to keep; [] clears it. If funding is confirmed before you have the funded amount, include allow_missing_funded_amount: true in both the review and execution calls. It defaults to false; other required fields and invalid amounts still block the action. Keep its value unchanged after review; changing it requires a new review and confirmation. Add the funded amount later with Update financing terms.
The review shows the stage change in your Portal, including any default stage it will create. Other Portals follow their stage synchronization preferences.
Marking funded may create commission obligations. Recording submitted status or reopening does not deliver the application. Read the application afterward to confirm its status.
Available tools
deal_applications.getRead a Deal Applicationdeal_applications.get_contractRead questions in the applicationdeal_applications.get_answersRead Deal Application answersdeal_applications.update_answersUpdate Deal Application answersdeal_applications.list_repeatable_itemsList repeated rows in the applicationdeal_applications.add_repeatable_itemAdd a repeated row in the applicationdeal_applications.update_repeatable_itemUpdate a repeated row in the applicationdeal_applications.delete_repeatable_itemDelete a repeated row in the applicationdeal_applications.get_answer_file_downloadDownload a file from the applicationdeal_applications.list_answer_filesList files in the applicationdeal_applications.list_submission_filesList original submission filesdeal_applications.get_file_textRead application document textdeal_applications.import_answer_fileImport application documentdeal_applications.prepare_answer_file_uploadPrepare the application answer file uploaddeal_applications.update_answer_fileRename a file in the applicationdeal_applications.delete_answer_fileRemove a file from the applicationdeal_applications.review_status_changeReview application statusdeal_applications.review_signatureReview the application signaturedeal_applications.change_statusChange application statusdeal_applications.get_submission_downloadDownload original submissiondeal_applications.get_signature_requestRead application signature requestsdeal_applications.list_signature_requestsRead application signature requestsdeal_applications.get_submission_packageRead original submissiondeal_applications.request_signatureRequest an application signaturedeal_applications.share_with_businessShare Deal Application with businessdeal_applications.get_autofill_preparationRead Deal Application autofill preparationdeal_applications.prepare_autofillPrepare Deal Application autofilldeal_applications.prepare_autofill_file_uploadPrepare Deal application Autofill supporting-file uploaddeal_applications.start_autofillStart Deal Application autofilldeal_applications.get_autofillGet Deal Application autofilldeal_applications.import_autofill_fileImport Autofill documentdeal_applications.delete_autofill_fileRemove Autofill supporting documentdeal_applications.list_autofill_suggestionsList Deal Application autofill suggestionsdeal_applications.accept_autofill_suggestionAccept a suggested answer in the applicationdeal_applications.retry_autofillRetry Deal Application autofilldeal_applications.retry_autofill_file_extractionRetry supporting-document extractiondeal_applications.check_submission_readinessCheck Deal Application submission readinessdeal_applications.submitSubmit Deal Application