Skip to main content
Glama

set_format

Idempotent

Change a composition's size using a named format or pixel width and height, or set frame rate from 1 to 120. Elements keep their pixel positions and timing, so move them for the new frame.

Instructions

Change a composition's size (a named format, or width and height in pixels; orientation turns it) or frame rate (1 to 120). Times stay in seconds, so elements keep their length; frames are counted at the new rate. Elements keep their pixel positions: move them for the new frame.

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": {
      "composition": "<composition>"
    },
    "name": "set_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoFrames per second, any from 1 to 120 (24, 25, 30, 50, 60 are common; 23.976 and 29.97 too)
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
widthNoPixels; even
formatNoA named size: 720p = 16:9 HD 1280×720; 1080p = 16:9 Full HD 1920×1080; 2k = 16:9 2K 2560×1440; 4k = 16:9 4K UHD 3840×2160; vertical = 9:16 vertical 1080×1920 (short video); vertical-2k = 9:16 vertical 2K 1440×2560; vertical-4k = 9:16 vertical 4K 2160×3840; square = 1:1 square 1080×1080; portrait = 4:5 portrait 1080×1350 (feed post); 4:3 = 4:3 1440×1080. width / height given too win.
heightNoPixels; even
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.
compositionYesComposition name (file in compositions/ without .json)
orientationNoTurn the size so it is wider (landscape) or taller (portrait)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, idempotent mutation, and the description adds genuinely non-obvious behavior: times stay in seconds so element durations are preserved, frames are recounted at the new rate, and elements retain pixel positions rather than being repositioned. That last point is a real caveat the schema does not convey. It does not discuss what happens to existing rendered output or whether the change is reversible.

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?

Three dense sentences that front-load the action and then deliver the consequences. Phrasing is compact but slightly clipped ('move them for the new frame'), which costs a bit of clarity without wasting space.

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?

For a 10-parameter mutation tool with no output schema, the description covers the essential semantics — what changes, what stays fixed, and the fps range. It omits any mention of required permissions, failure conditions (e.g. invalid or odd dimensions), or what the tool returns, leaving modest gaps.

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% and the schema already spells out every parameter, including the enum expansions and the 'width / height given too win' precedence rule. The description restates the format-versus-dimensions-versus-fps grouping and the 1–120 fps bound, adding light orientation framing but little beyond the schema. Baseline 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?

Names a specific verb (change) and resource (a composition's size or frame rate) and enumerates the two mutually alternative modes — named format/width+height/orientation versus fps — so the agent knows exactly what domain it acts on. It stops short of naming a sibling tool it is not, so it is not quite a 5.

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 rather than stated: an agent infers this is the tool for resizing or re-rating a composition, and the note about elements keeping pixel positions hints at when a follow-up move is needed. There is no explicit when-to-use versus when-not guidance or reference to an alternative tool.

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