Discard import
discard_importDiscard an uncommitted import job (CREATED, PARSED, MAPPED, PREVIEWED, or FAILED). Deletes the job and its staged rows only — no gigs, venues, contacts or other live records change, and nobody is notified. Refused for jobs that are committing or already committed (COMMITTED/PARTIAL) and for in-flight parse/map/preview steps. Prefer this after a superseded preview so PREVIEWED jobs do not linger. Confirmation-gated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>"
},
"name": "discard_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | the import job id to discard | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | 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: { import_job_id, discarded } } | |
| error | No | when ok is false |