Skip to main content
Glama

Create or save many records

save_many
Destructive

Run 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

NameRequiredDescriptionDefault
rowsYesthe arguments for each record, as that tool takes them; up to 50 rows, or 200 for save_guest_list_entry
toolYesthe create or save tool to run for every row
event_idNosave_guest_list_entry only, and required there: the gig every row belongs to
idempotency_keyNocreating 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_idNoorganization for every row; defaults to the signed-in organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { tool, results [{ index, ok, id, error, warnings }], succeeded, failed } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: rows run independently, one ordered result per row with ok/id/error/warnings plus succeeded and failed counts, partial-failure calls still succeed, no confirmation step, and side effects match per-row calls (nothing is sent to crew or guests). The idempotency section discloses key derivation from row arguments, 24-hour retention scoped to organization/user/tool, and the 409 IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_OUTCOME_UNKNOWN failure modes — all consistent with destructiveHint=true and idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and free of filler — every sentence carries an operational fact. It is a single dense run-on paragraph with nested parentheticals, though, which makes the per-tool limits and the retry rules slower to scan than a short bulleted structure would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a fan-out mutation tool with five parameters and an output schema, nothing material is missing: supported tools, per-tool caps, per-row validation behavior, result shape, partial-failure semantics, and retry/idempotency protocol are all covered. The output schema handles return structure, and the description still summarizes it usefully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema descriptions are already detailed, so the baseline is 3. The description still adds real meaning: organization_id and event_id are lifted out of the rows and given once (event_id required only for save_guest_list_entry), and each row's idempotency key is derived from the key plus that row's arguments, which the schema does not spell out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: 'Run one create or save tool over many rows in a single call, instead of calling it once per record.' It then names exactly which four tools can be wrapped and their per-tool row caps, so the agent can distinguish this from the individual create_/save_ siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the alternative it replaces (one call per record) and the conditions that select each variant (create_event up to 50 gigs, save_venue_stage for archiving, save_guest_list_entry up to 200 on one gig). It also gives precise retry routing — never resend rows marked ok, resend only failed rows fixed — and warns that non-create tools take no key so you must list before resending.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.