Skip to main content
Glama

start many sync jobs

jobs_create-many
Destructive

Start up to 50 independent Sync jobs in one call, with one create request per item—for example, lipsyncing one video to several audios or dubbing into multiple languages.

Instructions

Start up to 50 independent Sync jobs at once by running one create tool once per item: lipsync_create, lipsync_create-timeline, dubbing_create, translation-previews_create, dialogue-previews_create, dialogue-videos_create, speech-previews_create. Use it whenever the user wants 2 or more jobs that do not depend on each other, such as one video lipsynced to several audios, one video dubbed into several languages (one dubbing_create item per language, when available), or one Edit Dialogue preview, then one video, per variant. It works on every plan and uses the same API, limits and billing as calling the tool once per item; it is not the batch API. Each item is that tool’s own arguments and is checked as a direct call would be; nothing starts if any item is invalid or repeats another. Check coverage per organization: generation allowance for generation jobs, speech allowance for previews and scripts combined. Speech-only sets use speech-previews_get-options, ignoring generation counters. Fully covered sets need no prices or approval. Otherwise quote each configuration, show count, total and excluded charges, and confirm once. A lipsync allowance does not cover translation or dialogue. Items without projectId each get a new project; to keep the set together, create one project with projects_create and pass its projectId with projectIntent=explicit in every item. It keeps at most the account’s concurrent generation limit in flight and waits out capacity refusals by resending the same keyed request. It returns within about 50 seconds and never waits for the jobs to finish. Each item comes back started (with kind and id), failed (with error) or not_started (the account stayed busy). A request still unanswered at the time limit, cut off by a lost connection, or answered with a server error, comes back failed with error.outcomeUnknown: the job may have started. Pass jobs to jobs_get-many to follow the started ones. When remaining is present (items not started or with an unknown outcome), call again later with remaining as it is: every item keeps its derived keys, so a resend never starts a job twice.

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": {
      "tool": "<tool>",
      "idempotencyKey": "<idempotencyKey>",
      "items": "<items>"
    },
    "name": "jobs_create-many"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYesThe create tool to run once per item. Other tools cannot run this way.
itemsYesUp to 50 items, each exactly the arguments tool takes on its own, such as one dubbing_create input per target language. Items must differ. A new set has 2 or more; a single item is for sending remaining again.
idempotencyKeyYesA fresh UUID for this approved set, saved before the call. Reuse it unchanged, with the same items, when calling again for remaining or uncertain items; each item derives its own keys from it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.11
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "items": {
      -        "description": "One result per item, in input order.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "error": {
      -              "additionalProperties": false,
      -              "description": "Why the item failed, or the last refusal it waited on.",
      -              "properties": {
      -                "code": {
      -                  "type": "string"
      -                },
      -                "generationId": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                },
      -                "outcomeUnknown": {
      -                  "const": true,
      -                  "description": "The job may have started (no answer before the time limit, a lost connection or a server error). The item is in remaining; resending it with the same idempotencyKey is safe.",
      -                  "type": "boolean"
      -                },
      -                "retryAfterMs": {
      -                  "type": "number"
      -                },
      -                "status": {
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "id": {
      -              "description": "The started job’s id.",
      -              "type": "string"
      -            },
      -            "index": {
      -              "description": "The item’s position in items.",
      -              "type": "number"
      -            },
      -            "kind": {
      -              "description": "The job kind, for jobs_get-many.",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "started",
      -                "failed",
      -                "not_started"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "index",
      -            "status"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "jobs": {
      -        "description": "The started jobs, ready to pass as jobs to jobs_get-many.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "projectId": {
      -              "type": "string"
      -            },
      -            "videoAssetId": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "kind",
      -            "id"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nextStep": {
      -        "description": "What to do next.",
      -        "type": "string"
      -      },
      -      "remaining": {
      -        "additionalProperties": false,
      -        "description": "Items to send again later as they are: those not started and those failed with outcomeUnknown.",
      -        "properties": {
      -          "idempotencyKey": {
      -            "type": "string"
      -          },
      -          "items": {
      -            "items": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tool",
      -          "idempotencyKey",
      -          "items"
      -        ],
      -        "type": "object"
      -      },
      -      "summary": {
      -        "additionalProperties": false,
      -        "description": "How many items ended in each status.",
      -        "properties": {
      -          "failed": {
      -            "type": "number"
      -          },
      -          "notStarted": {
      -            "type": "number"
      -          },
      -          "started": {
      -            "type": "number"
      -          },
      -          "total": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total",
      -          "started",
      -          "failed",
      -          "notStarted"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "description": "The create tool that ran.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "summary",
      -      "items",
      -      "jobs",
      -      "nextStep"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "generationId": {
      -            "type": "string"
      -          },
      -          "importJobId": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "importStatus": {
      -            "enum": [
      -              "queued",
      -              "downloading",
      -              "processing",
      -              "completed",
      -              "failed"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "progress": {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "retryAfterMs": {
      -            "type": "number"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          },
      -          "status": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "items": {
      +        "description": "One result per item, in input order.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "error": {
      +              "additionalProperties": false,
      +              "description": "Why the item failed, or the last refusal it waited on.",
      +              "properties": {
      +                "billingUrl": {
      +                  "description": "Where a person manages billing for this organization.",
      +                  "type": "string"
      +                },
      +                "code": {
      +                  "type": "string"
      +                },
      +                "generationId": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "nextAction": {
      +                  "additionalProperties": false,
      +                  "description": "The API’s next action for this refusal. Act on it before anything else.",
      +                  "properties": {
      +                    "requiredPlan": {
      +                      "description": "Plan that lifts the limit.",
      +                      "type": "string"
      +                    },
      +                    "retryAfterSeconds": {
      +                      "description": "Seconds to wait before sending the same request again.",
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    "type": {
      +                      "description": "What to do next, such as upgrade_plan or retry_later.",
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "url": {
      +                      "description": "Page where a person does it.",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "type"
      +                  ],
      +                  "type": "object"
      +                },
      +                "outcomeUnknown": {
      +                  "const": true,
      +                  "description": "The job may have started (no answer before the time limit, a lost connection or a server error). The item is in remaining; resending it with the same idempotencyKey is safe.",
      +                  "type": "boolean"
      +                },
      +                "requiredCredits": {
      +                  "description": "Credits this item needed; pass at least this as credits to billing-approval-links_create.",
      +                  "type": "number"
      +                },
      +                "requiredPlan": {
      +                  "description": "The plan that lifts this refusal; pass it as plan to billing-approval-links_create.",
      +                  "type": "string"
      +                },
      +                "retryAfterMs": {
      +                  "type": "number"
      +                },
      +                "status": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "id": {
      +              "description": "The started job’s id.",
      +              "type": "string"
      +            },
      +            "index": {
      +              "description": "The item’s position in items.",
      +              "type": "number"
      +            },
      +            "kind": {
      +              "description": "The job kind, for jobs_get-many.",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "started",
      +                "failed",
      +                "not_started"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "index",
      +            "status"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "jobs": {
      +        "description": "The started jobs, ready to pass as jobs to jobs_get-many.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "projectId": {
      +              "type": "string"
      +            },
      +            "videoAssetId": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "kind",
      +            "id"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextStep": {
      +        "description": "What to do next.",
      +        "type": "string"
      +      },
      +      "remaining": {
      +        "additionalProperties": false,
      +        "description": "Items to send again later as they are: those not started and those failed with outcomeUnknown.",
      +        "properties": {
      +          "idempotencyKey": {
      +            "type": "string"
      +          },
      +          "items": {
      +            "items": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "tool": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool",
      +          "idempotencyKey",
      +          "items"
      +        ],
      +        "type": "object"
      +      },
      +      "summary": {
      +        "additionalProperties": false,
      +        "description": "How many items ended in each status.",
      +        "properties": {
      +          "failed": {
      +            "type": "number"
      +          },
      +          "notStarted": {
      +            "type": "number"
      +          },
      +          "started": {
      +            "type": "number"
      +          },
      +          "total": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total",
      +          "started",
      +          "failed",
      +          "notStarted"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "description": "The create tool that ran.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "summary",
      +      "items",
      +      "jobs",
      +      "nextStep"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "generationId": {
      +            "type": "string"
      +          },
      +          "importJobId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "importStatus": {
      +            "enum": [
      +              "queued",
      +              "downloading",
      +              "processing",
      +              "completed",
      +              "failed"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "progress": {
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "retryAfterMs": {
      +            "type": "number"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv0.2.4

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses concurrency throttling (at most the account limit in flight), retry-on-capacity-refusal via keyed requests, a ~50 second return window, and per-item outcome states (started/failed/not_started) including the error.outcomeUnknown case where a job may have started. It also covers billing/coverage behavior (generation vs speech allowance, quoting and single confirmation) and the derived-key rule that prevents duplicate starts on resend. The idempotentHint=false annotation is not contradicted, since only an identical idempotencyKey + items resend is duplicate-safe.

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?

Purpose and the eligible tool list are front-loaded, and the rest is organized roughly by flow: coverage/billing, project grouping, concurrency, return outcomes, follow-up. It is long and dense, but nearly every sentence carries operational meaning; a few (billing quote/confirmation detail) could be tightened without loss.

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 fan-out mutation tool with 100% schema coverage and an output schema, the description covers the remaining risks an agent needs: eligibility of items, validation and duplicate rejection, capacity behavior, time limit, partial failure semantics, and the exact retry protocol. Nothing material for a correct first call or a safe resend 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: items must be that tool's own arguments and must differ, each item without projectId spawns a new project, and projectIntent=explicit is needed to co-locate a set. It also explains that idempotencyKey must be reused unchanged with the same items on a remaining resend, which the schema alone does not convey.

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 first sentence states a specific verb, resource and scope: start up to 50 independent Sync jobs by running one create tool once per item, and it enumerates the seven eligible create tools. It also explicitly separates itself from the batch API, so an agent can distinguish it from batches_create without opening either 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?

It gives an explicit trigger (2+ jobs that do not depend on each other) plus concrete selection examples (one video to several audios, one dubbing per language, one dialogue preview then one video per variant). It also routes the agent to alternatives in specific cases: speech-previews_get-options for speech-only sets, projects_create to keep a set in one project, and jobs_get-many to follow started jobs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.