Skip to main content
Glama

Add ingestion file

add_ingestion_file

Add one source to an ingestion batch. Pass text for pasted TEXT (an email thread, itinerary, notes, a schedule), or filename plus content_base64 for a binary file (PDF, image, spreadsheet) — max 8 MiB decoded, which fits the hosted MCP 12 MiB JSON body after base64. Returns 202 and analysis runs asynchronously. Not for tabular CSV imports. Prefer request_attachment_upload when the host app can upload staged attachments. 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": {
      "event_id": "<event_id>",
      "batch_id": "<batch_id>"
    },
    "name": "add_ingestion_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNopasted text to ingest — an email thread, itinerary, notes, a schedule...
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
filenameNofile only: the filename to store (e.g. contract.pdf)
source_nameNotext only: a label for the text (e.g. 'promoter-email'); defaults to pasted-text.txt
content_typeNofile only: MIME type (defaults to application/octet-stream)
content_base64Nofile only: base64 file bytes; data URLs (data:...;base64,...) are accepted
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)
dataNothe 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 } } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false; the description adds genuinely useful context on top: a hard 8 MiB decoded cap justified against the 12 MiB JSON body, 202 plus asynchronous analysis, and 'Runs on the first call; there is no confirmation step,' which is the key non-idempotency warning. It does not cover what happens on a duplicate retry or how to poll for the async result, so it is strong but not exhaustive.

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

Conciseness5/5

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

Front-loaded with the core action, then mode selection, then limits, then return behavior, then the sibling alternative and the no-confirmation caveat. Every clause carries information; no filler or restatement of the title.

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 an 8-parameter write tool with an output schema, the description supplies the mode contract, the size constraint that would otherwise cause a failed call, the async/202 expectation, and the confirmation semantics. Return-value detail is correctly left to the output schema, and org scoping is handled by the schema field.

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 goes beyond the schema by framing text and filename/content_base64 as mutually exclusive mode selectors and by stating the decoded size budget and that data URLs are accepted (schema mentions data URLs too, but the size limit is description-only). It does not explain precedence if both text and content_base64 are supplied.

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?

States a specific verb and resource ('Add one source to an ingestion batch') and immediately disambiguates the two operating modes (pasted text vs. binary file via filename + content_base64). An agent can tell this apart from request_attachment_upload, commit_ingestion_file, and CSV import paths without opening a 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?

Gives explicit when-to-use (text for email threads/itineraries/notes/schedules, file for PDFs, images, spreadsheets), an explicit exclusion ('Not for tabular CSV imports'), and a named alternative with the selecting condition ('Prefer request_attachment_upload when the host app can upload staged attachments').

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.