Skip to main content
Glama

Scale Video

scale_video

Resize a video to new dimensions with FFmpeg. This does not add visual detail; use upscale_video for AI enhancement. Costs 2 credits. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.

Give just width or just height to keep the aspect ratio. Width and height must be even. Give both with mode=crop or mode=pad to change the aspect ratio (for example 16:9 to 9:16); stretch distorts the picture.

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": {
      "video_url": "<video_url>"
    },
    "name": "scale_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNostretch distorts to fit, pad letterboxes, crop center-crops. Default: stretch.
widthNoTarget width, 2-7680, even.
heightNoTarget height, 2-4320, even.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
pad_colorNoBar color for mode=pad. Default: black.
video_urlYesVideo to scale.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true): states the 2-credit cost, that it is asynchronous and returns a job immediately, that check_job yields the permanent URL on completion, and that a failed job is auto-refunded. These are the operational facts an agent needs before paying for a call.

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?

Front-loaded with the core action, then cost/async behavior, then parameter-shaping rules. Five short sentences, no filler, and the correctness-critical constraint (“width and height must be even”) is placed directly with the resize instructions.

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 an 8-parameter, cost-incurring, async media tool with no output schema, the description still covers cost, the job/check_job return path, failure refund, and the full dimension/mode interaction matrix. Nothing needed to call it correctly 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; the description earns an extra point by explaining the cross-parameter interaction the schema does not state — one dimension keeps the aspect ratio, both dimensions require mode=crop or mode=pad to avoid distortion. It does not extend the force_new/pad_color/budget_project semantics beyond what the schema already says.

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 concrete verb and resource ("Resize a video to new dimensions with FFmpeg") and immediately distinguishes itself from the nearest sibling by declaring it does NOT add visual detail and pointing to upscale_video. An agent can pick between the two without opening a 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 routing to upscale_video for AI enhancement, explicit rules for when to supply one dimension (preserve aspect ratio) versus both (aspect-ratio change via crop/pad), and an explicit warning that stretch distorts. When-to-use and when-not-to-use are both covered.

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.