Wait for Quick Schema Creation
wait_for_quick_schema_creationPoll a quick-schema run_id until its status is completed, completed_with_errors, or failed; then inspect failed_documents and retrieve template and saved document IDs.
Instructions
Wait for an existing quick-schema run_id until result.status is completed, completed_with_errors, or failed. Terminal failure is returned in result, so inspect status and failed_documents rather than assuming a successful tool call means full success. Returns generated template IDs and saved document IDs for future extraction or result retrieval. SDK defaults are 5 seconds between polls and 300 attempts; choose a smaller max_poll_attempts for short client timeouts. On polling timeout, check or wait on the same run_id rather than starting another run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | run_id returned by start_quick_schema_creation; not an extraction task ID, document ID, or export job ID. | |
| api_url | No | ||
| poll_interval | No | Seconds between status requests. SDK default: 5. | |
| max_poll_attempts | No | Maximum status requests before polling timeout. SDK default: 300. Set lower to fit the MCP client's tool timeout; resume with the same run_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| run_id | Yes |