Skip to main content
Glama

File ingestion batches

list_ingestion_batches
Read-onlyIdempotent

List recent file-ingestion batches for a gig (status, file counts, merge state), or pass batch_id to read one batch. With batch_id, view="status" (default) returns per-file analysis status plus the batch's merge state. Terminal file statuses: READY_FOR_REVIEW, ATTACHED_ONLY, COMMITTED, COMMITTED_VIA_BATCH, DISMISSED, FAILED. merge_status READY means the merged review is available. Analysis is asynchronous — check status ONCE; do NOT poll. view="review": the merged review payload — cross-file merged proposals, proposed_targets (UEF vs INGESTION classification), field_map (filled vs blank catalog paths), dry-run preview, key_facts, warnings, out_of_range_paths (run-of-show rows outside the gig dates), per-file sources, and merge_version (echo it back on commit_ingestion_batch). Proposals are UEF 2.0: commit rows by their document path.

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>"
    },
    "name": "list_ingestion_batches"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNowith batch_id: status (default) for file and merge status; review for the merged batch review
batch_idNoread this one ingestion batch instead of listing
event_idYesthe gig the ingestion batch belongs to, an id from list_events, open_gigs or my_agenda
organization_idNodefaults to caller's active org — pass explicitly if the event belongs to a different org

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNotool payload (API/composite/confirmation object); object, array, or primitive JSON
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / batch_id
      Added value: +{
      +  "description": "read this one ingestion batch instead of listing",
      +  "type": "string"
      +}
    • 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 / view
      Added value: +{
      +  "description": "with batch_id: status (default) for file and merge status; review for the merged batch review",
      +  "enum": [
      +    "status",
      +    "review"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: analysis is asynchronous, status should be checked once, and it enumerates terminal file statuses plus the meaning of merge_status READY. It does not describe listing volume, pagination, or ordering of 'recent' batches, which is the remaining behavioral gap.

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 dense with no filler sentences; every clause carries operational information. The terminal-status enumeration and the long view="review" payload list are the bulkiest parts, but both are load-bearing for correct invocation. Slightly long, yet not padded.

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?

Annotations cover safety, an output schema covers return shape, and the description still adds the async/do-not-poll rule, the terminal status vocabulary, the merge_status meaning, and the commit workflow link. For a 4-parameter read tool with one enum, nothing an agent needs to call it correctly is missing.

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, but the description earns more by explaining the interaction between batch_id and view (view only applies 'with batch_id'), and by spelling out what view="review" actually returns (proposals, proposed_targets, field_map, dry-run preview, out_of_range_paths, merge_version). That is meaning the schema's terse enum descriptions do not convey.

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

Purpose4/5

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

The description opens with a specific verb+resource ('List recent file-ingestion batches for a gig') and immediately states the dual mode ('or pass batch_id to read one batch'), so the agent knows both the list and single-read behaviors. It never names a sibling tool (e.g., get_ingestion_file_review or create_ingestion_batch) as an alternative, so sibling differentiation is implied by the parameters rather than stated.

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?

It gives clear conditional guidance: omit batch_id to list, pass batch_id with view="status" (default) or view="review", and it flags the downstream action ('echo merge_version back on commit_ingestion_batch'). The explicit 'Analysis is asynchronous — check status ONCE; do NOT poll' is exactly the kind of usage rule an agent needs. It stops short of naming which sibling to use for per-file review versus batch review.

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.