Commit import
commit_importNeeds at least one of job_id or undo_commit_id. Commit an import job — WRITES the data into the live system. Requires preview first. A commit where every row failed returns an error with the failed rows. Who is told: nobody by default. Members the job adds are not emailed unless send_invites is true, which emails each new member an invitation to join the organization that cannot be recalled; gigs, contacts and other rows notify nobody. Confirmation-gated only when undo_preview is not true; the confirmation lists gig create counts by status, venues new vs matched, skipped/duplicate/failed rows, and whether anyone is emailed. To UNDO a committed import instead, pass undo_commit_id (the load_commit_id a commit_import or import_file result returned) and no job_id: with undo_preview true it lists what would be removed, restored or refused and writes nothing; without it, it removes what that commit created and restores what it changed (confirmation-gated). Undo refuses records edited since, records with money moved or messages sent, and imported members and leads.
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": "commit_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | the import job id; omit when undoing | |
| send_invites | No | true emails each new member an invitation to join the organization, which cannot be recalled. Omit (default false) to add members without emailing anyone; only pass true when the user asked for invites. | |
| undo_preview | No | with undo_commit_id: only list what the undo would do; writes nothing | |
| undo_commit_id | No | undo this committed import: the load_commit_id from a commit result | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | only when undo_preview is not true: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: a commit: { import_job_id, status, result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } }; an undo (undo_commit_id): { load_commit_id, status, rolled_back, rolled_back_at, target_type, committed_at, source { type, name, import_job_id }, removed, restored, refused, records [{ entity_type, entity_id, row_index, external_id, written, action, refusals }], records_truncated, kept [{ table, rows }] }; an undo preview (undo_preview): { load_commit_id, status, rolled_back, rolled_back_at, target_type, committed_at, source { type, name, import_job_id }, removed, restored, refused, records [{ entity_type, entity_id, row_index, external_id, written, action, refusals }], records_truncated, kept [{ table, rows }] } } | |
| error | No | when ok is false |