Create or save many records
save_manyRun one create or save tool over many rows in a single call, instead of calling it once per record. tool names which: create_event (up to 50 gigs; venue_id links a saved venue, and a row may also carry customer_id to link that saved customer), save_venue (up to 50 venues), save_venue_stage (up to 50 stages, rooms or spaces across venues; archiving stays with save_venue_stage, which asks first) or save_guest_list_entry (up to 200 entries on one gig's guest list). Each row takes the same arguments as that tool, except organization_id and event_id, which are given once here; a row with an unknown or invalid argument fails on its own. Same access and side effects as calling the tool once per row, so nothing is sent to crew or guests. Rows run independently and return one result per row in order (ok, the record id, error, warnings), with succeeded and failed counts. A call where some rows failed still succeeds: rows marked ok were saved, so never resend them; resend only the failed rows, fixed. For create_event, an idempotency_key makes a retry safe after a timeout: each row's key comes from the key and that row's arguments, so resending the same rows (all of them, or only the failed ones) with the same key returns gigs already created instead of creating them twice. With a key, two identical rows are refused. The other tools take no key, so list before resending. Runs on the first call; there is no confirmation step.
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": {
"tool": "<tool>",
"rows": "<rows>"
},
"name": "save_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | the arguments for each record, as that tool takes them; up to 50 rows, or 200 for save_guest_list_entry | |
| tool | Yes | the create or save tool to run for every row | |
| event_id | No | save_guest_list_entry only, and required there: the gig every row belongs to | |
| idempotency_key | No | creating only: a key you generate (a UUID works) and send with this create. Send the same key to retry the same create after a timeout or lost reply: the server returns the record that call created, read as it is now with your current access, and does not create or notify a second time. If that first call failed with an error that may have left the record created, the key stays blocked (409 IDEMPOTENCY_OUTCOME_UNKNOWN): check whether the record exists before creating it with a new key. Kept for 24 hours per organization, user and tool; reusing a key with different arguments is refused (409 IDEMPOTENCY_KEY_REUSED). Omit it and a repeated call creates a repeat. | |
| organization_id | No | organization for every row; defaults to the signed-in organization |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: { tool, results [{ index, ok, id, error, warnings }], succeeded, failed } } | |
| error | No | when ok is false |