Skip to main content
Glama

Commit ingestion batch

commit_ingestion_batch
Destructive

Commit the selected proposals from the batch's MERGED review onto the gig — WRITES live data. Always call list_ingestion_batches with batch_id and view=review first; merge_version must match. Pass the rows to commit as selected: their UEF 2.0 document paths in the review's proposals ($.events[0].days[d].run_of_show[c], $.events[0].shifts[s].crew[k], $.events[0].ledger_items[i], $.leads[l]). To also save song requests, guests, contacts, show facts, key times or tasks, pass files with each file's packet_selected paths from get_ingestion_file_review. When the batch has no merged review (merge_status NONE, e.g. batch merge is off), omit merge_version and selected and pass files with each file's selected and packet_selected: the files are committed one at a time in upload order. 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": {
      "event_id": "<event_id>",
      "batch_id": "<batch_id>"
    },
    "name": "commit_ingestion_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoper-file rows by file id. With a merged review, only packet_selected applies (written after the merged rows). With no merged review (merge_status NONE), each listed file is committed in upload order like commit_ingestion_file; files already committed are skipped, so a retry is safe.
batch_idYesthe ingestion batch id, from create_ingestion_batch or list_ingestion_batches
event_idYesthe gig the ingestion batch belongs to, an id from list_events, open_gigs or my_agenda
selectedNoUEF 2.0 document paths of the review's proposal rows to commit, e.g. $.events[0].days[1].run_of_show[2], $.events[0].shifts[3].crew[0], $.events[0].ledger_items[4], $.leads[1]. Paths index the review's proposals (or edited_uef_json when sent); a path that names no row is a 400.
merge_versionNothe merge_version from list_ingestion_batches (batch_id, view=review) — the commit is rejected (409) if a re-merge happened since you reviewed. Omit only when the batch has no merged review (merge_status NONE) and you pass files.
edited_uef_jsonNooptional corrected UEF document as a JSON string; selected paths name rows in it
organization_idNodefaults to caller's active org — pass explicitly if the event belongs to a different org
event_field_keysNoevent-level fields to overwrite from the merged proposal: 'venue' and/or 'location'. Omit to write NO event fields.
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen 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: { batch { event_id, files, id, merge_commit_result, merge_error, merge_status, merge_version, merged_proposal_counts, and 2 more fields }, file_results [{ error, file_id, result, status }], result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / batch_id / description
      Previous value: -"the ingestion batch id"New value: +"the ingestion batch id, from create_ingestion_batch or list_ingestion_batches"
    • addedInput schema / properties / batch_id / minLength
      Added value: +1
    • changedInput schema / properties / edited_uef_json / description
      Previous value: -"optional corrected UEF document as a JSON string; indexes select FROM it"New value: +"optional corrected UEF document as a JSON string; selected paths name rows in it"
    • changedInput schema / properties / event_id / description
      Previous value: -"the event the ingestion batch belongs to"New value: +"the gig the ingestion batch belongs to, an id from list_events, open_gigs or my_agenda"
    • addedInput schema / properties / event_id / minLength
      Added value: +1
    • addedInput schema / properties / files
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "packet_key_time_kinds": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "the key time kind the user picked for a key-time row whose name is not on the organization list, as path ($.packet.key_times[i]) to kind",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "packet_selected": {
      +        "description": "this file's show-packet row paths from get_ingestion_file_review ($.packet.song_requests[i], $.packet.contacts[i], $.packet.show_facts[i], $.packet.key_times[i], $.packet.client_contacts[i], $.packet.guests[i], $.packet.tasks[i])",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "selected": {
      +        "description": "this file's proposal row paths from get_ingestion_file_review; only when the batch has no merged review",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "description": "per-file rows by file id. With a merged review, only packet_selected applies (written after the merged rows). With no merged review (merge_status NONE), each listed file is committed in upload order like commit_ingestion_file; files already committed are skipped, so a retry is safe.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • removedInput schema / properties / lead_idx
      Removed value: -{
      -  "description": "indexes into the review's proposals leads to commit",
      -  "items": {
      -    "type": "integer"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / ledger_idx
      Removed value: -{
      -  "description": "indexes into the review's proposals.events[0].ledger_items to commit",
      -  "items": {
      -    "type": "integer"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / member_idx
      Removed value: -{
      -  "description": "indexes into the review's proposals.events[0].members to commit",
      -  "items": {
      -    "type": "integer"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / merge_version / description
      Previous value: -"the merge_version from get_ingestion_batch_review — the commit is rejected (409) if a re-merge happened since you reviewed"New value: +"the merge_version from list_ingestion_batches (batch_id, view=review) — the commit is rejected (409) if a re-merge happened since you reviewed. Omit only when the batch has no merged review (merge_status NONE) and you pass files."
    • addedInput schema / properties / merge_version / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / merge_version / minimum
      Added value: +-9007199254740991
    • removedInput schema / properties / schedule_idx
      Removed value: -{
      -  "description": "indexes into the review's proposals.events[0].schedule_items to commit",
      -  "items": {
      -    "type": "integer"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / selected
      Added value: +{
      +  "description": "UEF 2.0 document paths of the review's proposal rows to commit, e.g. $.events[0].days[1].run_of_show[2], $.events[0].shifts[3].crew[0], $.events[0].ledger_items[4], $.leads[1]. Paths index the review's proposals (or edited_uef_json when sent); a path that names no row is a 400.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "event_id",
      -  "batch_id",
      -  "merge_version"
      -]New value: +[
      +  "event_id",
      +  "batch_id"
      +]
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"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: { batch { event_id, files, id, merge_commit_result, merge_error, merge_status, merge_version, merged_proposal_counts, and 2 more fields }, file_results [{ error, file_id, result, status }], result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } } }"
  2. Changed6 schema fields changed
    • addedInput schema / properties / edited_uef_json / description
      Added value: +"optional corrected UEF document as a JSON string; indexes select FROM it"
    • addedInput schema / properties / lead_idx / description
      Added value: +"indexes into the review's proposals leads to commit"
    • addedInput schema / properties / ledger_idx / description
      Added value: +"indexes into the review's proposals.events[0].ledger_items to commit"
    • addedInput schema / properties / member_idx / description
      Added value: +"indexes into the review's proposals.events[0].members to commit"
    • addedInput schema / properties / schedule_idx / description
      Added value: +"indexes into the review's proposals.events[0].schedule_items to commit"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive/non-read-only/not-idempotent, but the description adds real context: 'WRITES live data', a 409 rejection if a re-merge happened since review, one-at-a-time commit in upload order for the non-merged path, and the confirmation gate. These are operational consequences an agent cannot infer from the schema or annotations alone.

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 with the action and the live-data warning, and every sentence carries branching information rather than filler. It is dense – several long clauses packed with path examples – but nothing is clearly redundant given the two-mode contract.

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

Completeness4/5

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

For a 9-parameter destructive tool with nested objects and an output schema, the description covers prerequisites, both modes, ordering, and conflict behavior. Only minor gaps remain, such as what happens to unselected proposal rows or event_field_keys interaction, which the schema partially covers.

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%, so the baseline is 3; the description earns more by explaining the conditional relationship between merge_version, selected, and files (merged review vs merge_status NONE) and by naming the concrete path shapes for proposal vs packet rows. It does not add much beyond the schema for edited_uef_json, organization_id or event_field_keys.

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?

The opening sentence names a specific verb and resource ('Commit the selected proposals from the batch's MERGED review onto the gig') and immediately flags the write. It also distinguishes the two operating modes, which is exactly what separates this from commit_ingestion_file.

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?

Explicit prerequisites are given ('Always call list_ingestion_batches with batch_id and view=review first; merge_version must match') along with sourcing of row paths from get_ingestion_file_review. It also states the conditional case (merge_status NONE → omit merge_version and selected, pass files with selected/packet_selected) so the agent knows which branch applies.

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.