Skip to main content
Glama

resize

Change a video's resolution by setting target width and height, using -1 for either value to preserve the aspect ratio automatically.

Instructions

Change video resolution/scale. Specify width and height (-1 for auto aspect ratio).

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": {
      "input": "<input>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
codecNoVideo codeclibx264
inputYesInput video file path
widthYesTarget width (-1 for auto based on height)
heightYesTarget height (-1 for auto based on width)
outputNoOutput file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it says nothing about re-encoding, quality loss, processing cost, or what happens when the optional output path is omitted (overwrite vs. default naming). Only the codec default in the schema hints at the encoding pipeline.

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?

Two short sentences, front-loaded with the action and followed by the key parameter convention. Nothing is padded, though the second sentence largely duplicates schema text.

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

Completeness2/5

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

For a five-parameter mutation tool with no annotations and no output schema, the description omits output-path defaults, overwrite behavior, and whether resizing re-encodes the file. Those gaps matter for correct invocation and are not covered elsewhere.

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 description coverage is 100%, so the schema already documents all five parameters, including the -1 auto-aspect behavior for width and height. The description restates that -1 hint rather than adding new meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Change video resolution/scale" gives a specific verb (change/scale) and resource (video resolution), which is clearly distinct from siblings like crop, trim, or compress. It stops short of explicitly contrasting with crop, which also alters dimensions, so an agent must infer the difference.

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

Usage Guidelines2/5

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

The description offers no when-to-use, when-not-to-use, or alternative guidance. It never says how this differs from crop (which also changes frame dimensions) or compress, both of which appear in the sibling list.

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