Skip to main content
Glama

Сгенерировать видео

generate_video

Generate videos asynchronously via Infergate: waits up to wait_seconds to download the MP4, or returns a task ID for later status checks.

Instructions

Запускает асинхронную генерацию видео через Infergate (POST /videos), ждёт до wait_seconds и, если готово, скачивает MP4 на диск. Если не успело — возвращает id задачи для check_video. Платный вызов: на балансе резервируется сумма, списывается фактическая стоимость. Если не знаете id модели — сначала list_video_models.

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": {
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo
sizeNo
extraNoДополнительные поля запроса, передаются как есть (перекрывают остальные)
modelYesid модели, например google/veo-3
promptYes
durationNoДлительность в секундах
last_frameNoПоследний кадр: локальный путь, URL или data: URI
output_dirNo
resolutionNoНапример 720p, 1080p
first_frameNoПервый кадр: локальный путь, URL или data: URI
aspect_ratioNo16:9, 9:16, 1:1
input_imagesNoРеференсы (input_references): пути, URL или data: URI
wait_secondsNoСколько ждать результата в этом вызове (по умолчанию 50)
generate_audioNo
filename_prefixNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the async/background nature, the wait_seconds cap, the on-ready file download, the fallback return of a task id, and that the call is billed with a balance reservation and actual cost settlement. It stops short of describing failure/error behavior or whether filename_prefix overwrites existing files.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each doing distinct work — action, timeout fallback, cost, prerequisite — with the main action front-loaded. Nothing is restated from the schema or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter generation tool with no annotations and no output schema, the description covers the execution flow, cost implications, and follow-up path well. The remaining gap is output artifact specifics (where the MP4 lands, naming) and error handling, which an agent would want given the missing output schema.

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

Parameters3/5

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

Schema coverage is 60%, so roughly half the parameters are self-documented. The description adds real semantics for wait_seconds (bounded wait, then fallback) and implies a file lands on disk, but it never explains output_dir, filename_prefix, generate_audio, seed, or how extra overrides other fields.

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 (launches async video generation via the Infergate /videos endpoint) plus concrete scope: waits up to wait_seconds, downloads the MP4, or returns a task id. This clearly separates it from check_video and list_video_models.

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?

Gives explicit routing for two decision points: use check_video if the wait expires without a result, and use list_video_models first if the model id is unknown. These are the actual alternatives an agent would otherwise have to guess between.

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