Skip to main content
Glama

Edit a draft batch

update_batch
Destructive

Renames a batch and, while it is a draft (until run_batch first succeeds), changes, adds, or removes its editable jobs (pending, or failed with no output) in one request. update merges the given fields into each listed job's values and resets it to pending; unlisted jobs are untouched. remove deletes those jobs permanently, and each add creates new jobs, so repeating a request with add duplicates them. Processing and rendered jobs cannot change. Nothing renders until run_batch, and adding or removing jobs changes what it costs. One pending job in a batch that is no longer a draft is update_job's case. Needs templates:read and batches:create.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addNoNew jobs to append, up to 500
nameNoNew batch name, 1 to 200 characters; omit to keep it
removeNoIDs of editable jobs to delete permanently
updateNoJobs to change, up to 500
batchIdYesBatch ID returned by create_batch or list_batches

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
deletedYesJobs removed
updatedYesJobs changed
insertedYesJobs added

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources