Skip to main content
Glama

Batch jobs

batch

Caption a whole folder: run one operation on 1-50 videos in one call, priced together. operation caption = transcribe + burn per item, same output and price as caption_video (5 credits/min); transcribe 1/min; burn 4/min (needs subtitles or transcriptionJobId). One preset for all (an item's own preset or styleOverrides wins). dryRun:true returns the total and starts nothing. Missing media, 402 insufficient_balance or maxCredits reject the whole batch before any charge. Returns id, counts and jobs (paginated: offset/limit); poll get_job per item. For one video use caption_video.

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": {
      "operation": "<operation>",
      "items": "<items>"
    },
    "name": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1-50 items, each {mediaUrl or fileId, name?, language?, preset?, styleOverrides?, faceAvoid?, translateTo? (caption), subtitles?/transcriptionJobId? (burn)}.
dryRunNotrue = return the total quote only; nothing is charged or started.
presetNoPreset for every caption or burn item (an item's own preset wins).
api_keyNoOnly for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared.
operationYes'caption' (transcribe + burn per item, same as caption_video), 'transcribe' or 'burn' (existing captions), applied to every item.
maxCreditsNoCap for the whole batch in credits; refused before any item starts when the total is higher.

Output Schema

NameRequiredDescriptionDefault
idNoBatch id (absent on dryRun). Read progress with get_job id, or GET /v1/batches/{id}?offset=&limit=.
jobsNoThis page of item jobs (index, name, id, status, result files).
kindNoAlways batch.
pageNo{offset, limit, nextOffset}: nextOffset null on the last page.
itemsNodryRun: per-item quote {costCents, audioSeconds}.
countsNo{total, succeeded, failed, pending}.
dryRunNotrue: quote only, nothing started or charged.
statusNorunning, succeeded, or failed (some item failed; its credits are refunded).
costCentsNoTotal credits (quote on dryRun, charged so far otherwise).
operationNocaption, transcribe or burn.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / highlightWords / description
      Previous value: -"Shortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. [\"AwesomeVideo\", \"gratis\"]. Maps to styleOverrides.wordHighlights rule {id:\"custom\", words, color}. Same price."New value: +"Shortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. [\"AwesomeVideo\", \"gratis\"]. Maps to styleOverrides.wordHighlights rule {id:\"custom\", words, color}; on highlighter-marker, ghost-keywords and brand-box it fills their keyword list in the preset colors. Same price."
  3. Changed23 schema fields changed
    • changedInput schema / properties / items / description
      Previous value: -"1-10 items, each {mediaUrl or fileId, language?, subtitles?, transcriptionJobId?, preset?}."New value: +"1-50 items, each {mediaUrl or fileId, name?, language?, preset?, styleOverrides?, faceAvoid?, translateTo? (caption), subtitles?/transcriptionJobId? (burn)}."
    • addedInput schema / properties / items / items / properties / name
      Added value: +{
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / platform
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / translateTo
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / items / maxItems
      Previous value: -10New value: +50
    • changedInput schema / properties / operation / description
      Previous value: -"'transcribe' or 'burn', applied to every item."New value: +"'caption' (transcribe + burn per item, same as caption_video), 'transcribe' or 'burn' (existing captions), applied to every item."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "transcribe",
      -  "burn"
      -]New value: +[
      +  "caption",
      +  "transcribe",
      +  "burn"
      +]
    • changedInput schema / properties / preset / description
      Previous value: -"Preset for every burn item (an item's own preset wins)."New value: +"Preset for every caption or burn item (an item's own preset wins)."
    • changedOutput schema / description
      Previous value: -"Tool result as JSON."New value: +"Batch quote or batch status."
    • addedOutput schema / properties / costCents
      Added value: +{
      +  "description": "Total credits (quote on dryRun, charged so far otherwise).",
      +  "type": "number"
      +}
    • addedOutput schema / properties / counts
      Added value: +{
      +  "description": "{total, succeeded, failed, pending}."
      +}
    • addedOutput schema / properties / dryRun
      Added value: +{
      +  "description": "true: quote only, nothing started or charged.",
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / hasMore
      Removed value: -{
      -  "description": "true when more items are available (paginated lists).",
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / id
      Added value: +{
      +  "description": "Batch id (absent on dryRun). Read progress with get_job id, or GET /v1/batches/{id}?offset=&limit=.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items
      Added value: +{
      +  "description": "dryRun: per-item quote {costCents, audioSeconds}.",
      +  "items": {},
      +  "type": "array"
      +}
    • addedOutput schema / properties / jobs
      Added value: +{
      +  "description": "This page of item jobs (index, name, id, status, result files).",
      +  "items": {},
      +  "type": "array"
      +}
    • addedOutput schema / properties / kind
      Added value: +{
      +  "description": "Always batch.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / nextCursor
      Removed value: -{
      -  "description": "Pass as cursor for the next page (paginated lists).",
      -  "type": "string"
      -}
    • addedOutput schema / properties / operation
      Added value: +{
      +  "description": "caption, transcribe or burn.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / page
      Added value: +{
      +  "description": "{offset, limit, nextOffset}: nextOffset null on the last page."
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "description": "The value, when the tool returns something other than an object."
      -}
    • addedOutput schema / properties / status
      Added value: +{
      +  "description": "running, succeeded, or failed (some item failed; its credits are refunded).",
      +  "type": "string"
      +}
    • removedOutput schema / properties / total
      Removed value: -{
      -  "description": "Total number of items (paginated lists).",
      -  "type": "number"
      -}
  4. Changed2 schema fields changed
    • changedInput schema / properties / items / items / properties / styleOverrides / description
      Previous value: -"Per-call style changes deep-merged onto the preset (same fields as list_presets style; null removes a field), validated with the renderer schema and bundled fonts. Example {\"fontSize\":72,\"maxWordsPerCaption\":2,\"wordEntrance\":\"bounce\"}. Same price. No need to save_custom_preset. Every field with examples: get_style_reference."New value: +"Per-call style changes deep-merged onto the preset (same fields as get_catalog {kind:'presets'} style; null removes a field), validated with the renderer schema and bundled fonts. Example {\"fontSize\":72,\"maxWordsPerCaption\":2,\"wordEntrance\":\"bounce\"}. Same price. No need to manage_preset {action:'create', type:'custom'}. Every field with examples: get_catalog {kind:'styles'}."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "description": "Tool result as JSON.",
      +  "properties": {
      +    "hasMore": {
      +      "description": "true when more items are available (paginated lists).",
      +      "type": "boolean"
      +    },
      +    "nextCursor": {
      +      "description": "Pass as cursor for the next page (paginated lists).",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The value, when the tool returns something other than an object."
      +    },
      +    "total": {
      +      "description": "Total number of items (paginated lists).",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  5. Changed5 schema fields changed
    • addedInput schema / properties / dryRun / description
      Added value: +"true = return the total quote only; nothing is charged or started."
    • addedInput schema / properties / items / description
      Added value: +"1-10 items, each {mediaUrl or fileId, language?, subtitles?, transcriptionJobId?, preset?}."
    • addedInput schema / properties / maxCredits / description
      Added value: +"Cap for the whole batch in credits; refused before any item starts when the total is higher."
    • addedInput schema / properties / operation / description
      Added value: +"'transcribe' or 'burn', applied to every item."
    • addedInput schema / properties / preset / description
      Added value: +"Preset for every burn item (an item's own preset wins)."
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the generic mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true). The description adds the traits that actually matter: pricing per operation and per minute, that one preset applies to all items with per-item overrides winning, that missing media/402/maxCredits reject the entire batch before any charge, and that jobs must be polled individually. That is materially more than the annotations carry.

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 lead clause is front-loaded and nearly every sentence adds distinct information (pricing, precedence, atomicity, polling). It is dense, telegraphic and slightly hard to scan — semicolon-packed clauses and mid-sentence parentheticals — but there is essentially no filler to cut.

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?

Even though an output schema exists, the description still orients the caller on what comes back (id, counts, jobs with offset/limit) and how to follow up (get_job per item). Combined with pre-charge failure conditions and pricing, an agent has everything needed to call this correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description goes further: it explains the operation enum in operational terms (caption = transcribe+burn per item, same output and price as caption_video; burn needs subtitles or transcriptionJobId), states the default-preset precedence rule, and clarifies what dryRun returns. These are semantics the schema does not express.

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?

Opens with a concrete verb+resource+scope: 'Caption a whole folder: run one operation on 1-50 videos in one call.' It then names the three operations and explicitly contrasts with caption_video, so an agent can distinguish it from siblings without opening any 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?

Explicit when-to-use ('whole folder', 1-50 items) and when-not ('For one video use caption_video'), plus a stated alternative for polling ('poll get_job per item'). It also prescribes a safe pre-flight pattern via dryRun:true, which is genuine routing guidance rather than a restatement.

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