Skip to main content
Glama

crop

Extract a specific video region by specifying width, height, and x/y offset for precise framing.

Instructions

Crop video to a specific region. Specify width, height, and position offset.

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": "crop"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX offset from top-left (default: 0, use -1 for center)
yNoY offset from top-left (default: 0, use -1 for center)
inputYesInput video file path
widthYesCrop width in pixels
heightYesCrop height in pixels
outputNoOutput file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It says nothing about what happens when the crop region exceeds the frame bounds, whether the video is re-encoded (affecting quality and runtime), whether an existing output file is overwritten, or what occurs if 'output' is omitted.

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 with the operation front-loaded and no padding. The second sentence is mildly redundant with the schema but still functions as a quick parameter checklist.

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?

The schema is fully documented and there is no output schema to explain, so the description only needs to cover behavior. With no annotations, the missing edge-case and output-handling information leaves it merely adequate for a mutation tool that processes media files.

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 all six parameters are already documented, including the non-obvious x/y = -1 centering convention. The description's mention of width, height, and offset merely restates the schema and adds no syntax, ranges, or format detail beyond it.

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?

States a specific verb and resource ('Crop video') plus the region concept, which is enough to distinguish it from siblings like resize, rotate, and trim. It does not explicitly contrast crop with resize (region extraction vs. scaling), but the operation is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied by the narrow purpose, but there is no explicit when-to-use guidance, no mention of alternatives such as resize, and no stated prerequisites or exclusions. An agent must infer that this is the right tool from the name and one-line purpose alone.

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