Skip to main content
Glama

Edit one pending job

update_job
DestructiveIdempotent

Changes one pending job that has no file yet, in a batch or on its own. modifications merge over the job's own (a key given again replaces it, null clears it back to the page's value) and output fields replace the job's, so repeating the same request gives the same result. Switching the output format to mp4, gif, webm or mov makes it a video job, which costs credits by its length and size when it renders. Failed, processing and rendered jobs are refused. Nothing renders until run_job or run_batch. For several jobs at once, or to add and remove jobs, use update_batch. Needs templates:read and batches:create.

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": {
      "jobId": "<jobId>"
    },
    "name": "update_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesPending job ID
outputNoOutput fields to change; omit to keep them
modificationsNoOnly the layers to change; null clears one back to the page's value

Output Schema

NameRequiredDescriptionDefault
idYesjobId for run_job, get_job and update_job
fileYesThe rendered file; null until the job succeeds
flowYesThe flow it renders as a video, if it does
pageYesThe page it renders; null for a video
batchYesThe batch it is in; null for a job on its own
errorYesWhy the render failed
outputYes
statusYespending 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)
templateYes
creditCostYesCredits the render spends when it succeeds
modificationsYesThe values it renders, by layer; null for a job made in the Kalpana app

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • changedInput schema / properties / jobId / description
      Previous value: -"Pending job ID from get_batch_jobs"New value: +"Pending job ID"
    • addedInput schema / properties / modifications
      Added value: +{
      +  "additionalProperties": {
      +    "anyOf": [
      +      {
      +        "anyOf": [
      +          {
      +            "description": "A text layer's text, with <s1>...</s1> tags for runs when it has several styles; or an image layer's asset id or file name",
      +            "type": "string"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "description": "A text layer's text and visibility",
      +            "properties": {
      +              "text": {
      +                "description": "The layer's new text, tagged like a string value",
      +                "type": "string"
      +              },
      +              "visible": {
      +                "description": "false hides the layer; layout closes the gap",
      +                "type": "boolean"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "description": "An image layer's image and framing",
      +            "properties": {
      +              "asset": {
      +                "description": "An asset id (search_assets, upload_images), the image's file name, or a designer image key. Omit to keep the template's image and only re-frame it.",
      +                "type": "string"
      +              },
      +              "fit": {
      +                "description": "cover fills the slot and crops (default), contain shows the whole image, stretch distorts to the slot. The designer's names work too: fill is cover, fit is contain",
      +                "enum": [
      +                  "cover",
      +                  "contain",
      +                  "stretch",
      +                  "fill",
      +                  "fit"
      +                ],
      +                "type": "string"
      +              },
      +              "panX": {
      +                "description": "Moves the image by this fraction of the slot width; positive = right",
      +                "maximum": 1,
      +                "minimum": -1,
      +                "type": "number"
      +              },
      +              "panY": {
      +                "description": "Moves the image by this fraction of the slot height; positive = down",
      +                "maximum": 1,
      +                "minimum": -1,
      +                "type": "number"
      +              },
      +              "visible": {
      +                "description": "false hides the layer",
      +                "type": "boolean"
      +              },
      +              "zoom": {
      +                "description": "Zoom about the slot centre; 1 = none",
      +                "maximum": 4,
      +                "minimum": 0.2,
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "description": "Only the layers to change; null clears one back to the page's value",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / output
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Output fields to change; omit to keep them",
      +  "properties": {
      +    "fileName": {
      +      "description": "The file's name, without extension",
      +      "maxLength": 200,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "format": {
      +      "default": "png",
      +      "description": "png, jpeg and webp render an image and pdf one vector page; mp4 and gif render the whole motion as a video, and webm (VP9) and mov (ProRes 4444) as a transparent video for overlaying on other footage. Video needs an animated template (get_template_inputs isAnimated) and costs more credits",
      +      "enum": [
      +        "png",
      +        "jpeg",
      +        "webp",
      +        "pdf",
      +        "mp4",
      +        "gif",
      +        "webm",
      +        "mov"
      +      ],
      +      "type": "string"
      +    },
      +    "stillTime": {
      +      "description": "Animated pages, images only: the second of the motion the image shows. Omit it to use the page's own still time (get_template_inputs stillTime), else the last frame. If the page has no still time, ask the user, because an outro or a loop can make the last frame a bad image.",
      +      "maximum": 600,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedInput schema / properties / outputFormat
      Removed value: -{
      -  "description": "New output format; omit to keep the job's format. mp4, gif, webm or mov makes it a video, which needs an animated template and costs more credits.",
      -  "enum": [
      -    "png",
      -    "jpeg",
      -    "webp",
      -    "pdf",
      -    "mp4",
      -    "gif",
      -    "webm",
      -    "mov"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / row
      Removed value: -{
      -  "additionalProperties": {
      -    "anyOf": [
      -      {
      -        "anyOf": [
      -          {
      -            "description": "A text layer's text, with <s1>...</s1> tags for runs when it has several styles; or an image layer's asset id or file name",
      -            "type": "string"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "description": "A text layer's text and visibility",
      -            "properties": {
      -              "text": {
      -                "description": "The layer's new text, tagged like a string value",
      -                "type": "string"
      -              },
      -              "visible": {
      -                "description": "false hides the layer; layout closes the gap",
      -                "type": "boolean"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "description": "An image layer's image and framing",
      -            "properties": {
      -              "asset": {
      -                "description": "An asset id (search_assets, upload_images), the image's file name, or a designer image key. Omit to keep the template's image and only re-frame it.",
      -                "type": "string"
      -              },
      -              "fit": {
      -                "description": "cover fills the slot and crops (default), contain shows the whole image, stretch distorts to the slot. The designer's names work too: fill is cover, fit is contain",
      -                "enum": [
      -                  "cover",
      -                  "contain",
      -                  "stretch",
      -                  "fill",
      -                  "fit"
      -                ],
      -                "type": "string"
      -              },
      -              "panX": {
      -                "description": "Moves the image by this fraction of the slot width; positive = right",
      -                "maximum": 1,
      -                "minimum": -1,
      -                "type": "number"
      -              },
      -              "panY": {
      -                "description": "Moves the image by this fraction of the slot height; positive = down",
      -                "maximum": 1,
      -                "minimum": -1,
      -                "type": "number"
      -              },
      -              "visible": {
      -                "description": "false hides the layer",
      -                "type": "boolean"
      -              },
      -              "zoom": {
      -                "description": "Zoom about the slot centre; 1 = none",
      -                "maximum": 4,
      -                "minimum": 0.2,
      -                "type": "number"
      -              }
      -            },
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  "description": "Only the layers to change, keyed and valued as create_batch rows are",
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "jobId",
      -  "row"
      -]New value: +[
      +  "jobId"
      +]
    • addedOutput schema / properties / batch
      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 batch it is in; null for a job on its own"
      +}
    • removedOutput schema / properties / batchId
      Removed 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"
      -    }
      -  ]
      -}
    • changedOutput schema / properties / creditCost / description
      Previous value: -"Credits run_batch spends on this job"New value: +"Credits the render spends when it succeeds"
    • addedOutput schema / properties / error
      Added value: +{
      +  "description": "Why the render failed",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / file
      Added value: +{
      +  "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"
      +}
    • addedOutput schema / properties / flow
      Added value: +{
      +  "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"
      +}
    • addedOutput schema / properties / id / description
      Added value: +"jobId for run_job, get_job and update_job"
    • addedOutput schema / properties / modifications
      Added value: +{
      +  "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"
      +}
    • addedOutput schema / properties / output
      Added value: +{
      +  "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"
      +}
    • removedOutput schema / properties / outputFormat
      Removed value: -{
      -  "description": "File format the job renders to",
      -  "enum": [
      -    "png",
      -    "jpeg",
      -    "webp",
      -    "pdf",
      -    "mp4",
      -    "gif",
      -    "webm",
      -    "mov"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / outputKind
      Removed value: -{
      -  "description": "image for still renders (png, jpeg, webp, pdf); video for mp4, gif, webm or mov",
      -  "enum": [
      -    "image",
      -    "video"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / page
      Added value: +{
      +  "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"
      +}
    • addedOutput schema / properties / template
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "batchId",
      -  "status",
      -  "outputKind",
      -  "outputFormat",
      -  "creditCost"
      -]New value: +[
      +  "id",
      +  "status",
      +  "template",
      +  "page",
      +  "flow",
      +  "batch",
      +  "modifications",
      +  "output",
      +  "creditCost",
      +  "error",
      +  "file"
      +]
  2. Changed7 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / jobId / 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})$"
    • changedInput schema / properties / row / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "description": "A text layer's text, with <s1>...</s1> tags for runs when it has several styles; or an image layer's asset id or file name",
      -        "type": "string"
      -      },
      -      {
      -        "additionalProperties": true,
      -        "description": "A text layer's text and visibility",
      -        "properties": {
      -          "text": {
      -            "description": "The layer's new text, tagged like a string value",
      -            "type": "string"
      -          },
      -          "visible": {
      -            "description": "false hides the layer; layout closes the gap",
      -            "type": "boolean"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": true,
      -        "description": "An image layer's image and framing",
      -        "properties": {
      -          "asset": {
      -            "description": "An asset id (search_assets, upload_images), the image's file name, or a designer image key. Omit to keep the template's image and only re-frame it.",
      -            "type": "string"
      -          },
      -          "fit": {
      -            "description": "cover fills the slot and crops (default), contain shows the whole image, stretch distorts to the slot. The designer's names work too: fill is cover, fit is contain",
      -            "enum": [
      -              "cover",
      -              "contain",
      -              "stretch",
      -              "fill",
      -              "fit"
      -            ],
      -            "type": "string"
      -          },
      -          "panX": {
      -            "description": "Moves the image by this fraction of the slot width; positive = right",
      -            "maximum": 1,
      -            "minimum": -1,
      -            "type": "number"
      -          },
      -          "panY": {
      -            "description": "Moves the image by this fraction of the slot height; positive = down",
      -            "maximum": 1,
      -            "minimum": -1,
      -            "type": "number"
      -          },
      -          "visible": {
      -            "description": "false hides the layer",
      -            "type": "boolean"
      -          },
      -          "zoom": {
      -            "description": "Zoom about the slot centre; 1 = none",
      -            "maximum": 4,
      -            "minimum": 0.2,
      -            "type": "number"
      -          }
      -        },
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "description": "A text layer's text, with <s1>...</s1> tags for runs when it has several styles; or an image layer's asset id or file name",
      +        "type": "string"
      +      },
      +      {
      +        "additionalProperties": {},
      +        "description": "A text layer's text and visibility",
      +        "properties": {
      +          "text": {
      +            "description": "The layer's new text, tagged like a string value",
      +            "type": "string"
      +          },
      +          "visible": {
      +            "description": "false hides the layer; layout closes the gap",
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": {},
      +        "description": "An image layer's image and framing",
      +        "properties": {
      +          "asset": {
      +            "description": "An asset id (search_assets, upload_images), the image's file name, or a designer image key. Omit to keep the template's image and only re-frame it.",
      +            "type": "string"
      +          },
      +          "fit": {
      +            "description": "cover fills the slot and crops (default), contain shows the whole image, stretch distorts to the slot. The designer's names work too: fill is cover, fit is contain",
      +            "enum": [
      +              "cover",
      +              "contain",
      +              "stretch",
      +              "fill",
      +              "fit"
      +            ],
      +            "type": "string"
      +          },
      +          "panX": {
      +            "description": "Moves the image by this fraction of the slot width; positive = right",
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          "panY": {
      +            "description": "Moves the image by this fraction of the slot height; positive = down",
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          "visible": {
      +            "description": "false hides the layer",
      +            "type": "boolean"
      +          },
      +          "zoom": {
      +            "description": "Zoom about the slot centre; 1 = none",
      +            "maximum": 4,
      +            "minimum": 0.2,
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / row / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / batchId / 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 / creditCost / maximum
      Added value: +9007199254740991
    • addedOutput schema / 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})$"
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it explains merge semantics for modifications (re-given key replaces, null resets to page value), that output fields replace wholesale, and that the operation is idempotent ('repeating the same request gives the same result'). It also discloses the credit cost of switching to a video format and the required scopes (templates:read, batches:create), which annotations cannot convey.

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 with the core action and scope, then constraints, then the sibling pointer. Dense but nearly every clause carries information; the credit-cost sentence is slightly tangential but still decision-relevant.

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 mutation tool with nested objects, an output schema, and full annotation coverage, the description supplies the remaining essentials: eligibility rules, merge semantics, side effects (credits, deferred rendering), and required permissions. 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 adds real meaning the schema does not: the merge-vs-replace distinction between modifications and output, and the null-clears-to-page-value rule. It does not restate the format enum or stillTime behavior, which the schema already documents well.

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 ('Changes one pending job that has no file yet') plus scope ('in a batch or on its own'), which immediately separates it from update_batch and create_job. An agent can identify the operation without opening the 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?

Explicitly names the alternative ('For several jobs at once, or to add and remove jobs, use update_batch') and the exclusion ('Failed, processing and rendered jobs are refused'). It also states the prerequisite that nothing renders until run_job or run_batch, so the agent knows this is a staging step.

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