Skip to main content
Glama

Get Ingestion Job State

ingestion_get
Read-onlyIdempotent

Read the current state of an ingestion job (paper creation or document ingestion). Returns the status plus a derived awaiting gate ('triage' | 'confirmation' | null), whether it is terminal, and the next action to take. Poll this after starting a job: a paper-creation job parks at awaiting_confirmation (then call paper_confirm) — it does NOT run to complete on its own. Stop polling on a terminal status (complete | failed | cancelled) or when an action is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesID of the ingestion job to read the current state of.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesThe ingestion job kind (paper_bundle, student_batch, source_document, …).
errorYesFailure detail, when status is failed.
job_idYes
statusYesRaw ingestion status.
awaitingYesThe gate the job is parked at, or null if none. `start` means it has not been handed to a queue at all and a person must act before it is — polling will never resolve it.
terminalYesTrue once the job will not change on its own.
created_atYesISO-8601 creation timestamp.
needs_actionYesHuman-readable next step for the caller.
processed_atYesISO-8601 completion timestamp, or null if not yet processed.
attempt_countYesProcessing attempts so far.
exam_paper_idYesThe minted paper's id, once one exists.
triage_summaryYesTriage explanation, only while parked at the triage gate.
triage_issue_countYesHow many triage issues, only while parked at the triage gate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / awaiting / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "triage",
      -      "confirmation"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "start",
      +      "triage",
      +      "confirmation"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / awaiting / description
      Previous value: -"The gate the job is parked at, or null if none."New value: +"The gate the job is parked at, or null if none. `start` means it has not been handed to a queue at all and a person must act before it is — polling will never resolve it."
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources