Skip to main content
Glama

Commit ingestion file

commit_ingestion_file
Destructive

Commit the selected proposals from ONE ingested file onto the gig — WRITES live data. Not reversible. Always call get_ingestion_file_review first and 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]). 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>",
      "file_id": "<file_id>",
      "selected": "<selected>"
    },
    "name": "commit_ingestion_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesthe ingested file id within the batch
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
selectedYesUEF 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.
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
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: { file { packet_counts, parts_failed, ai_summary, attachment_id, batch_id, category, commit_result, undo_commit_id, and 12 more fields }, 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. Changed15 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 / file_id / minLength
      Added value: +1
    • 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"
      -}
    • 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": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "event_id",
      -  "batch_id",
      -  "file_id"
      -]New value: +[
      +  "event_id",
      +  "batch_id",
      +  "file_id",
      +  "selected"
      +]
    • 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: { file { packet_counts, parts_failed, ai_summary, attachment_id, batch_id, category, commit_result, undo_commit_id, and 12 more fields }, result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } } }"
  2. Changed1 schema field changed
    • 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.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the danger bar is pre-lowered; the description still reinforces beyond them with 'WRITES live data. Not reversible.' and adds the confirmation-gating workflow. The two-call confirmation handshake is also spelled out in the confirmation_token schema field, so some of this is reinforcement rather than new information.

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-loads the write/irreversible warning, then the prerequisite, then path mechanics — a sensible risk-first ordering with no filler sentences. Slightly dense and it re-enumerates path templates that the schema already lists, which is redundant but not wasteful enough to hurt readability.

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 destructive, confirmation-gated commit tool it covers the prerequisite, the exact payload semantics, org scoping and the retry-with-token mechanic, and an output schema exists so return values need not be described. Nothing an agent needs to invoke it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the schema already explains file_id, batch_id, event_id, the selected path format, edited_uef_json, org defaulting and the confirmation_token flow in detail. The description restates the path shapes and their source ($.events[0].days[d].run_of_show[c], etc.), adding only the linkage to the review step rather than new per-parameter meaning, so baseline 3 applies.

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 ('Commit the selected proposals from ONE ingested file onto the gig'), and the capitalized 'ONE' explicitly distinguishes it from the batch-level sibling commit_ingestion_batch. An agent can pick between them without opening either schema.

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

Usage Guidelines4/5

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

Gives an explicit hard prerequisite ('Always call get_ingestion_file_review first') and tells the agent exactly what to feed into selected from that review. It stops short of an explicit when-not or a named alternative routing rule (e.g., 'for multiple files use commit_ingestion_batch'), leaving that contrast only implied by 'ONE'.

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.