Skip to main content
Glama

List jobs in a batch

get_batch_jobs
Read-onlyIdempotent

Lists a batch's jobs in row order, each row's pages together, one page at a time (page from 1, up to 20 jobs a page; a page past the end is empty), with each job's ID, page or flow, modifications (the values it renders, by layer), status, render error and file. These job IDs and values are the input for update_batch and update_job; only pending jobs change, and error explains why a render failed. get_batch is lighter for overall progress. Needs batches:read.

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": {
      "batchId": "<batchId>"
    },
    "name": "get_batch_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1
limitNoResults per page (default 10); values above 20 are capped at 20
batchIdYesBatch ID returned by create_batch or list_batches

Output Schema

NameRequiredDescriptionDefault
jobsYes
pageYes
limitYesPage size actually applied
totalYesCount of all matches across every page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedOutput schema / properties / batchStatus
      Removed value: -{
      -  "description": "draft until run_batch first succeeds; update_batch adds and removes jobs only in drafts",
      -  "enum": [
      -    "draft",
      -    "published",
      -    "archived"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / items
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "editable": {
      -        "description": "True while the job is pending, or failed with no output",
      -        "type": "boolean"
      -      },
      -      "error": {
      -        "description": "Render error of a failed job; null otherwise",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "flowId": {
      -        "anyOf": [
      -          {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "The flow this job renders as a video, if any"
      -      },
      -      "id": {
      -        "description": "jobId for update_batch and update_job",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -        "type": "string"
      -      },
      -      "outputFormat": {
      -        "description": "File format the job renders to",
      -        "enum": [
      -          "png",
      -          "jpeg",
      -          "webp",
      -          "pdf",
      -          "mp4",
      -          "gif",
      -          "webm",
      -          "mov"
      -        ],
      -        "type": "string"
      -      },
      -      "outputKind": {
      -        "description": "image for still renders (png, jpeg, webp, pdf); video for mp4, gif, webm or mov",
      -        "enum": [
      -          "image",
      -          "video"
      -        ],
      -        "type": "string"
      -      },
      -      "row": {
      -        "additionalProperties": {},
      -        "description": "The job's values, keyed and shaped as batch rows are written",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "rowIndex": {
      -        "description": "The job's row in the batch, from 0, in the order rows were given. One row's jobs across pages or flows share it",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "status": {
      -        "description": "pending waits for run_batch, processing is rendering, success has rendered, failed has a render error, cancelled was stopped by cancel_batch or cancel_job (final, not charged)",
      -        "enum": [
      -          "pending",
      -          "processing",
      -          "success",
      -          "failed",
      -          "cancelled"
      -        ],
      -        "type": "string"
      -      },
      -      "templateId": {
      -        "anyOf": [
      -          {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "templateId",
      -      "status",
      -      "outputKind",
      -      "outputFormat",
      -      "error",
      -      "row",
      -      "editable"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / jobs
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batch": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The batch it is in; null for a job on its own"
      +      },
      +      "creditCost": {
      +        "description": "Credits the render spends when it succeeds",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "error": {
      +        "description": "Why the render failed",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "file": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "contentType": {
      +                "type": "string"
      +              },
      +              "creativeId": {
      +                "format": "uuid",
      +                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +                "type": "string"
      +              },
      +              "fileName": {
      +                "type": "string"
      +              },
      +              "height": {
      +                "anyOf": [
      +                  {
      +                    "maximum": 9007199254740991,
      +                    "minimum": -9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "sizeBytes": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "url": {
      +                "description": "Link to the rendered file",
      +                "type": "string"
      +              },
      +              "width": {
      +                "anyOf": [
      +                  {
      +                    "maximum": 9007199254740991,
      +                    "minimum": -9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "creativeId",
      +              "url",
      +              "fileName",
      +              "contentType",
      +              "sizeBytes",
      +              "width",
      +              "height"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The rendered file; null until the job succeeds"
      +      },
      +      "flow": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The flow it renders as a video, if it does"
      +      },
      +      "id": {
      +        "description": "jobId for run_job, get_job and update_job",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +        "type": "string"
      +      },
      +      "modifications": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The values it renders, by layer; null for a job made in the Kalpana app"
      +      },
      +      "output": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "format": {
      +            "description": "File format the job renders to",
      +            "enum": [
      +              "png",
      +              "jpeg",
      +              "webp",
      +              "pdf",
      +              "mp4",
      +              "gif",
      +              "webm",
      +              "mov"
      +            ],
      +            "type": "string"
      +          },
      +          "kind": {
      +            "description": "image for still renders (png, jpeg, webp, pdf); video for mp4, gif, webm or mov",
      +            "enum": [
      +              "image",
      +              "video"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "format",
      +          "kind"
      +        ],
      +        "type": "object"
      +      },
      +      "page": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The page it renders; null for a video"
      +      },
      +      "status": {
      +        "description": "pending waits for run_batch, processing is rendering, success has rendered, failed has a render error, cancelled was stopped by cancel_batch or cancel_job (final, not charged)",
      +        "enum": [
      +          "pending",
      +          "processing",
      +          "success",
      +          "failed",
      +          "cancelled"
      +        ],
      +        "type": "string"
      +      },
      +      "template": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "status",
      +      "template",
      +      "page",
      +      "flow",
      +      "batch",
      +      "modifications",
      +      "output",
      +      "creditCost",
      +      "error",
      +      "file"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "batchStatus",
      -  "items",
      -  "total",
      -  "page",
      -  "limit"
      -]New value: +[
      +  "jobs",
      +  "total",
      +  "page",
      +  "limit"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / rowIndex / description
      Previous value: -"The job's row in the batch, from 0, in the order rows were given"New value: +"The job's row in the batch, from 0, in the order rows were given. One row's jobs across pages or flows share it"
  3. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / flowId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The flow this job renders as a video, if any"
      +}
  4. Changed11 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / batchId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / page / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / items / items / properties / id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedOutput schema / properties / items / items / properties / row / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / rowIndex / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / items / items / properties / templateId / anyOf
      Previous value: -[
      -  {
      -    "format": "uuid",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / page / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / total / maximum
      Added value: +9007199254740991
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial context beyond them: the authorization scope ('Needs batches:read'), pagination behavior including the edge case that a page past the end is empty, and the semantic that 'error explains why a render failed'. These are behavioral facts the agent could not infer from the annotations.

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?

The routing information and pagination constraints are front-loaded and every clause carries signal. The opening sentence is long and parenthetically nested ('modifications (the values it renders, by layer)'), which makes it denser than ideal, but nothing is truly wasted.

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 paginated read tool with an output schema, this covers everything an agent needs: scope/permission, ordering, page size limits, the shape of returned fields, and how the results feed update_batch/update_job. No material gap remains even though the output schema already documents return values.

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 page/limit/batchId are already documented; the description mainly reinforces that paging starts at 1 and caps at 20 jobs per page. It adds a little meaning the schema lacks (empty page past the end), but the heavy lifting is done by the schema, so this sits just above baseline.

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 description gives a specific verb and resource ('Lists a batch's jobs') plus the ordering model ('row order, each row's pages together') and the exact result fields. It also distinguishes itself from the lighter sibling by name, so an agent can separate it from get_batch, get_batch_outputs and get_job without opening schemas.

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?

It states the downstream purpose explicitly ('These job IDs and values are the input for update_batch and update_job'), the domain constraint that 'only pending jobs change', and names the alternative for a different need ('get_batch is lighter for overall progress'). When-to-use and when-to-use-something-else are both covered.

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.

Resources