Skip to main content
Glama

Generate a video (billable)

generate_video

Creates a billed video-generation task after you approve the estimated cost; returns a task ID to poll with get_task.

Instructions

BILLABLE: creates a paid video task (POST /v1/videos) charged per second to the user's APIKO balance. Only call after estimate_cost on the same input and the user's explicit approval of the model, duration, resolution and cost. Reference videos add billed seconds. Returns a task_id at once; poll with get_task (videos take minutes). Never call again to check progress.

Input Schema

NameRequiredDescriptionDefault
inputNoModel request fields exactly as listed in get_model input_schema (e.g. {"prompt": "...", "resolution": "2k"}). Leave out model and async.
modelYesExact video model id.
promptNoShortcut for input.prompt; give the prompt once.
max_cost_usdNoBudget the user approved; the call is refused if the estimate (or its upper bound) is higher or cannot be computed.
wait_secondsNoSeconds to wait (default 0; videos take minutes, use get_task).
client_request_idNoYour id for this one approved request (8-96 chars of letters, digits, . _ -). Reusing it with the same input returns the earlier task instead of charging twice.
reference_video_secondsNoTotal reference video length, for the cost check only; not sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

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 profile (not read-only, open-world, non-idempotent); the description adds the operational facts an agent cannot infer: async semantics (returns task_id at once, minutes-long runtime), per-second billing including extra billed seconds for reference videos, and the approval gate. The client_request_id dedup note is consistent with idempotentHint=false rather than contradicting it.

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?

Five short sentences, front-loaded with BILLABLE and the endpoint, then the precondition, then the async/polling behavior. No filler and no repetition of the schema.

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 7-param, nested-object, billable async tool with no output schema, the description covers cost model, approval prerequisite, return shape (task_id), and the correct follow-up tool. An agent has everything needed to call it safely once.

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. The description still contributes cross-parameter semantics – that reference videos 'add billed seconds' and that model/duration/resolution/cost must have been approved – which links max_cost_usd and reference_video_seconds to the billing decision rather than restating their schema text.

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 specific verb+resource ('creates a paid video task') plus the endpoint (POST /v1/videos) and the billing basis (charged per second). The word 'video' plus the cost framing separates it cleanly from generate_image and the read-only siblings.

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 preconditions: 'Only call after estimate_cost on the same input and the user's explicit approval of the model, duration, resolution and cost.' It also names the alternative for the follow-up step ('poll with get_task') and states a negative rule ('Never call again to check progress').

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