Skip to main content
Glama

Override a clip's pixel aspect ratio

set_item_pixel_aspect_ratio
Idempotent

Override a clip's pixel aspect ratio using a numerator/denominator fraction, such as 1/1 or 4/3, and return the before and after decimal values.

Instructions

Override a clip's pixel aspect ratio as a fraction numerator/denominator (1/1 = square pixels, 4/3 = anamorphic HD 1.333, 10/11 = NTSC DV 0.9091). Returns the pixel aspect ratio before and after as a decimal.

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": {
      "numerator": "<numerator>",
      "denominator": "<denominator>"
    },
    "name": "set_item_pixel_aspect_ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idNoStable project item id (from list_project_items). Preferred.
item_nameNoItem name; the first match in the project is used.
item_pathNoPath in the Project panel, e.g. "Footage/Day 1/clip.mp4".
numeratorYesNumerator of the pixel aspect ratio.
denominatorYesDenominator of the pixel aspect ratio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, so the bar is lower, and the description still adds real value by disclosing the return value ('before and after as a decimal') despite there being no output schema. It does not explain whether the override can be reverted or what permissions/state are required, leaving a modest gap.

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?

Two sentences, purpose front-loaded, with the parenthetical examples earning their place by making the fraction semantics immediately actionable. No filler or redundancy.

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

Completeness4/5

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

Five parameters at 100% schema coverage and annotations covering the safety profile mean the description need not do much more; it also covers the return value in the absence of an output schema. Missing is any note on how the override behaves relative to related item overrides or whether it can be removed.

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, but the description genuinely adds domain meaning beyond the schema's terse 'Numerator/Denominator of the pixel aspect ratio' by mapping concrete fractions to real-world formats and their decimal equivalents. It says nothing extra about the mutually exclusive item_id/item_name/item_path locators, which the schema already covers.

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 ('Override') and a precise resource ('a clip's pixel aspect ratio') expressed as a numerator/denominator fraction. This is unambiguously distinct from sibling overrides such as set_item_frame_rate_override or set_item_scale_to_frame_size, so an agent can select it without opening the schema.

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: the tool exists for overriding PAR, and the parenthetical value examples (1/1 square, 4/3 anamorphic HD, 10/11 NTSC DV) guide what to pass. However there is no explicit when-to-use/when-not guidance, no mention of how this interacts with frame-size or scale tools, and no note on clearing an existing override.

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

Deploy Server

Other Tools