Get record import
get_record_importCheck a background record import's status and progress by jobId or model, including phase, validated/processed counts, invalid and failed rows, and failure details so you know whether to resume, retry, or await confirmation.
Instructions
Read a background record import's status and progress, by jobId or by model (jobId wins when both are given). By model it returns the import still running or awaiting confirmation, else the model's latest import in any status. status goes uploading -> queued -> running -> completed, failed or cancelled, with awaitingConfirmation in between when rows are invalid and the import was started with onInvalid STOP. phase is validate, then write; validated of total and then processed are the progress, created/updated/unchanged what was written, invalidCount the rows validation refused, failedCount the rows refused when written. sample holds the first 20 invalid or failed rows with their message - page all of them with list_record_import_rows. A failed import carries failureReason (stalled, enqueueFailed, unexpected, modelUnavailable, invalidUpsertKey) and resumable: when true, resume_record_import continues it. job is null when the id is unknown or the model has no import on record - a finished import is kept for 7 days. Imports run in steps of a few hundred rows: check again later rather than in a tight loop.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_record_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | The job id start_record_import returned. When given, modelIdOrSlug is ignored. | |
| modelIdOrSlug | No | The model's id or slug: returns the import still running or awaiting confirmation on it, or - when there is none - its most recently started import in any status |