Skip to main content
Glama

Set frame

set_frame
Idempotent

PROJECT-SCOPED: this call acts only on the explicit project_id and returns the project identity with its result. Set the output aspect ratio for every render. ratio: source, 16:9, 9:16, 1:1 or 4:5; mode: crop (default), pad (black bars) or pad_blur (blurred backdrop). focus_x/focus_y aim the CROP at the subject (fractions of the source frame, (0,0) = top-left) — without them the crop is the dead-center window, which chops an off-center speaker. For 'make it 9:16' on real footage PREFER auto_reframe, which measures the subject and sets the focus for you. Finals compose on an HD canvas so new captions and branding stay sharp even on archival footage; this does not restore missing source detail. focus_track replaces the complete per-shot track: [{t0,t1,x,y,mode}] in SOURCE seconds. Read get_edl(frame) first; change only the desired spans. Tracks survive trims and speed changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
ratioYes
focus_xNo
focus_yNo
project_idYesRequired immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess.
focus_trackNo

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?

Annotations cover the safety profile (idempotent, non-destructive, closed-world), and the description adds substantial context beyond them: the call is project-scoped and returns project identity, focus_track REPLACES the complete per-shot track rather than appending, tracks survive trims and speed changes, and the HD canvas note flags the limit of what this recovers. That is exactly the kind of non-obvious behavior an agent cannot infer from structured fields.

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 project-scope constraint and the core action, and every sentence carries a distinct fact (defaults, coordinates, replacement semantics, the HD-canvas caveat). It is dense — the focus_track and canvas sentences could be tightened — but nothing is padding.

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 a 6-param mutation tool with no output schema and thin schema descriptions, the definition covers scope, return identity, enum meanings, default behavior, track replacement semantics, and the alternative tool. Nothing an agent needs 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.

Parameters5/5

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

Schema description coverage is only 17%, so the description must compensate, and it does: it enumerates ratio and mode values with the default ('crop (default)'), defines the coordinate system for focus_x/focus_y ('(0,0) = top-left', fractions of the source frame), and specifies the focus_track item shape and that t0/t1 are in SOURCE seconds. This meaningfully exceeds what the schema conveys.

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+resource ('Set the output aspect ratio for every render') and scopes it to every render, which is exactly what distinguishes it from the zoom/reframe siblings. It also names auto_reframe explicitly as the different tool for the same user goal, so an agent can route without opening either 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?

Gives explicit routing advice ('For make it 9:16 on real footage PREFER auto_reframe') plus a required workflow step ('Read get_edl(frame) first; change only the desired spans'). It also states a precondition for focus_x/focus_y (omitting them yields a dead-center crop) that tells the agent when to supply them.

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.