Skip to main content
Glama

Quote a clip

quote_video
Read-only

Price a video generation request before spending credits by calculating unit credits per second from a prompt or structured shot details.

Instructions

Price one generate_video call WITHOUT spending credits (unit_credits per second of duration_s). Pass prompt, or shot: the clip as framing, subject, beats of 1 to 5 seconds, camera, light and continuity, each written as what the frame shows (describe_tool quote_video says how). A reference is as quote_image states it. A generation that fails is charged nothing. While generations are closed it answers generations_disabled or generations_marking_pending and charges nothing.

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>",
      "mode": "<mode>",
      "aspect_ratio": "<aspect_ratio>",
      "duration_s": "<duration_s>"
    },
    "name": "quote_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
shotNo
audioNo
modelYes
cameraNo
promptNo
keep_textNo
duration_sYes
last_frameNo
referencesNo
resolutionNo720p
first_frameNo
max_creditsNo
aspect_ratioYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.72.0
    • addedInput schema / properties / audio
      Added value: +{
      +  "type": "boolean"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance-2.0",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.5",
      -  "kling-3.0",
      -  "kling-4.0",
      -  "kling-4.0-flash",
      -  "gemini-omni-flash-1.1",
      -  "gemini-omni-flash-1.2"
      -]New value: +[
      +  "seedance-2.0",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.5",
      +  "seedance-2.5-flash",
      +  "kling-3.0",
      +  "kling-4.0",
      +  "kling-4.0-flash",
      +  "gemini-omni-flash-1.1",
      +  "gemini-omni-flash-1.2"
      +]
  2. Changed4 schema fields changedv0.61.0
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance-2.0",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.5",
      -  "kling-3.0",
      -  "kling-4.0",
      -  "kling-4.0-flash",
      -  "gemini-omni-flash-1.1"
      -]New value: +[
      +  "seedance-2.0",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.5",
      +  "kling-3.0",
      +  "kling-4.0",
      +  "kling-4.0-flash",
      +  "gemini-omni-flash-1.1",
      +  "gemini-omni-flash-1.2"
      +]
    • addedInput schema / properties / resolution / default
      Added value: +"720p"
    • changedInput schema / required
      Previous value: -[
      -  "model",
      -  "mode",
      -  "aspect_ratio",
      -  "resolution",
      -  "duration_s"
      -]New value: +[
      +  "model",
      +  "mode",
      +  "aspect_ratio",
      +  "duration_s"
      +]
  3. Changed6 schema fields changedv0.56.0
    • addedInput schema / $defs / d1
      Added value: +{
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / $defs / d2
      Added value: +{
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / keep_text
      Added value: +{
      +  "type": "boolean"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance-2.0",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.5",
      -  "kling-3.0",
      -  "gemini-omni-flash-1.1"
      -]New value: +[
      +  "seedance-2.0",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.5",
      +  "kling-3.0",
      +  "kling-4.0",
      +  "kling-4.0-flash",
      +  "gemini-omni-flash-1.1"
      +]
    • addedInput schema / properties / shot
      Added value: +{
      +  "properties": {
      +    "beats": {
      +      "items": {
      +        "properties": {
      +          "action": {
      +            "$ref": "#/$defs/d1"
      +          },
      +          "end_state": {
      +            "$ref": "#/$defs/d2"
      +          },
      +          "from_s": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "objects": {
      +            "items": {
      +              "maxLength": 40,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "maxItems": 6,
      +            "type": "array"
      +          },
      +          "to_s": {
      +            "exclusiveMinimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "from_s",
      +          "to_s",
      +          "action",
      +          "end_state"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 10,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    "camera": {
      +      "properties": {
      +        "move": {
      +          "enum": [
      +            "static",
      +            "push_in",
      +            "pull_back",
      +            "pan",
      +            "handheld"
      +          ],
      +          "type": "string"
      +        },
      +        "speed": {
      +          "enum": [
      +            "slow",
      +            "medium"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "move"
      +      ],
      +      "type": "object"
      +    },
      +    "continuity": {
      +      "properties": {
      +        "continues_from": {
      +          "$ref": "#/$defs/d1"
      +        },
      +        "end_state": {
      +          "$ref": "#/$defs/d1"
      +        },
      +        "persistent": {
      +          "items": {
      +            "maxLength": 160,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "maxItems": 5,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "persistent",
      +        "end_state"
      +      ],
      +      "type": "object"
      +    },
      +    "framing": {
      +      "properties": {
      +        "angle": {
      +          "enum": [
      +            "eye_level",
      +            "low",
      +            "high",
      +            "overhead"
      +          ],
      +          "type": "string"
      +        },
      +        "depth": {
      +          "enum": [
      +            "shallow",
      +            "deep"
      +          ],
      +          "type": "string"
      +        },
      +        "lens_mm": {
      +          "maximum": 200,
      +          "minimum": 12,
      +          "type": "integer"
      +        },
      +        "size": {
      +          "enum": [
      +            "extreme_close_up",
      +            "close_up",
      +            "medium_close_up",
      +            "medium",
      +            "full",
      +            "wide"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "size"
      +      ],
      +      "type": "object"
      +    },
      +    "light": {
      +      "properties": {
      +        "direction": {
      +          "maxLength": 120,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "key": {
      +          "maxLength": 160,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "key"
      +      ],
      +      "type": "object"
      +    },
      +    "start_state": {
      +      "$ref": "#/$defs/d1"
      +    },
      +    "subject": {
      +      "properties": {
      +        "fixed": {
      +          "items": {
      +            "$ref": "#/$defs/d2"
      +          },
      +          "maxItems": 3,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "label": {
      +          "maxLength": 60,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "objects": {
      +          "items": {
      +            "properties": {
      +              "at_start": {
      +                "$ref": "#/$defs/d2"
      +              },
      +              "count": {
      +                "maximum": 10,
      +                "minimum": 1,
      +                "type": "integer"
      +              },
      +              "name": {
      +                "maxLength": 40,
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "name",
      +              "count",
      +              "at_start"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 6,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "label",
      +        "fixed"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "framing",
      +    "subject",
      +    "start_state",
      +    "beats",
      +    "camera",
      +    "light",
      +    "continuity"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "prompt",
      -  "model",
      -  "mode",
      -  "aspect_ratio",
      -  "resolution",
      -  "duration_s"
      -]New value: +[
      +  "model",
      +  "mode",
      +  "aspect_ratio",
      +  "resolution",
      +  "duration_s"
      +]
  4. Changed2 schema fields changedv0.45.0
    • changedInput schema / properties / camera / enum
      Previous value: -[
      -  "static",
      -  "push_in",
      -  "pull_back",
      -  "pan"
      -]New value: +[
      +  "static",
      +  "push_in",
      +  "pull_back",
      +  "pan",
      +  "turntable"
      +]
    • changedInput schema / properties / prompt / maxLength
      Previous value: -2000New value: +5000
  5. Changed9 schema fields changedv0.39.0
    • addedInput schema / $defs
      Added value: +{
      +  "d0": {
      +    "anyOf": [
      +      {
      +        "properties": {
      +          "rights_confirmed": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "upload_id": {
      +            "pattern": "^upl_[a-f0-9]{32}$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "upload_id",
      +          "rights_confirmed"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "run_id": {
      +            "pattern": "^run_[a-zA-Z0-9]+$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "asset_id": {
      +            "pattern": "^ast_[a-f0-9]{32}$",
      +            "type": "string"
      +          },
      +          "rights_confirmed": {
      +            "const": true,
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "asset_id"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  }
      +}
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / duration_s / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / first_frame / $ref
      Added value: +"#/$defs/d0"
    • removedInput schema / properties / first_frame / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / last_frame / $ref
      Added value: +"#/$defs/d0"
    • removedInput schema / properties / last_frame / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / references / items / $ref
      Added value: +"#/$defs/d0"
    • removedInput schema / properties / references / items / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]
  6. Changed3 schema fields changedv0.34.0
    • addedInput schema / properties / camera
      Added value: +{
      +  "enum": [
      +    "static",
      +    "push_in",
      +    "pull_back",
      +    "pan"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance-2.0",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.5"
      -]New value: +[
      +  "seedance-2.0",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.5",
      +  "kling-3.0",
      +  "gemini-omni-flash-1.1"
      +]
    • changedInput schema / properties / resolution / enum
      Previous value: -[
      -  "480p",
      -  "720p",
      -  "1080p"
      -]New value: +[
      +  "360p",
      +  "480p",
      +  "720p",
      +  "1080p"
      +]
  7. Addedv0.33.0

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantial behavior beyond readOnlyHint/destructiveHint: no credits are spent, failed generations are charged nothing, and closed generations return generations_disabled or generations_marking_pending with no charge. That is genuinely useful for an agent deciding whether a dry-run is safe; what it omits is the shape of the pricing response.

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 value proposition (price without spending credits) and dense with no filler. Some phrasing is awkward and indirect — 'A reference is as quote_image states it' and the parenthetical pointer to describe_tool — costing a bit of crispness.

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

Completeness3/5

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

For a 14-parameter nested-object tool with no output schema, the definition covers the hardest input (shot) and the safety story but leaves most mode/model/aspect/optional parameters and the actual return value unaddressed. Adequate to call correctly in the common prompt-or-shot case, thin for first_frame/reference modes.

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

Parameters2/5

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

Schema description coverage is 0% across 14 parameters (4 required), so the description must compensate and only partly does: it explains shot's structure (framing, subject, beats of 1–5 seconds, camera, light, continuity) and ties duration_s to pricing, and defers references to quote_image. The required model, mode, and aspect_ratio are untouched, as are resolution, audio, keep_text, max_credits, first_frame, and last_frame.

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 — pricing one generate_video call without spending credits — and immediately distinguishes itself from the sibling generate_video. The cost formula (unit_credits per second of duration_s) makes the purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies the when-to-use case (estimate cost before calling generate_video) and explicitly names generate_video, quote_image, and describe_tool as the places to go for related semantics. It does not spell out an explicit 'use this before generating' rule or when-not-to-use, so it stops short of a 5.

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