Skip to main content
Glama

Frame a clip or photo

frame_clip
Idempotent

Use this when the user wants the picture framed differently in a clip or photo: "zoom in a bit", "mirror it", "make it 1200 by 628". Not for: standard shapes 9:16, 1:1, 4:5, 16:9 (style_clip output_shape), light and color (adjust_look) or a facecam split (edit_clip). Rotation is done in the editor. Undoable (undo_edit). Costs no Horizon Units. Returns job_id; job_status waits for it.

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": {
      "clip_id": "<clip_id>"
    },
    "name": "frame_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNofill (picture fills the frame, edges cropped), whole (whole picture, background around it), or a band shape 4:3, 1:1, 16:9 or 9:16. Empty keeps the current fit.
zoomNoZoom factor, 1 to 4. 1 means no zoom, e.g. 1.3.
clip_idYesClip or photo id from list_clips (kind photo for photos).
backgroundNoBackground around the picture: blur, or a color name or hex, e.g. black or #FFCC00. Empty keeps the current one.
position_xNoWhere the frame sits over the picture, left to right, 0 to 100. 50 is the center, 0 the far left.
position_yNoWhere the frame sits over the picture, top to bottom, 0 to 100. 50 is the center, 0 the top.
blur_amountNoStrength of the blurred background, 1 to 120. Setting it turns the blur background on.
custom_widthNoCustom frame width in pixels, 240 to 4096, e.g. 1200. Give it with custom_height.
custom_heightNoCustom frame height in pixels, 240 to 4096, e.g. 628. Give it with custom_width.
flip_verticalNoTrue flips upside down, false turns the flip off. Leave out to keep it.
flip_horizontalNoTrue mirrors left to right, false turns the mirror off. Leave out to keep it.

Output Schema

NameRequiredDescriptionDefault
nextYes
notesYes
job_idYes
statusYes
changedYes
clip_idYes
editor_urlYes
estimated_huNo
voiceover_job_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changed
    • removedInput schema / properties / background / default
      Removed value: -""
    • removedInput schema / properties / blur_amount / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / blur_amount / default
      Removed value: -null
    • addedInput schema / properties / blur_amount / type
      Added value: +"number"
    • removedInput schema / properties / custom_height / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / custom_height / default
      Removed value: -null
    • addedInput schema / properties / custom_height / type
      Added value: +"integer"
    • removedInput schema / properties / custom_width / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / custom_width / default
      Removed value: -null
    • addedInput schema / properties / custom_width / type
      Added value: +"integer"
    • removedInput schema / properties / fit / default
      Removed value: -""
    • removedInput schema / properties / flip_horizontal / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / flip_horizontal / default
      Removed value: -null
    • addedInput schema / properties / flip_horizontal / type
      Added value: +"boolean"
    • removedInput schema / properties / flip_vertical / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / flip_vertical / default
      Removed value: -null
    • addedInput schema / properties / flip_vertical / type
      Added value: +"boolean"
    • removedInput schema / properties / position_x / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / position_x / default
      Removed value: -null
    • addedInput schema / properties / position_x / type
      Added value: +"number"
    • removedInput schema / properties / position_y / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / position_y / default
      Removed value: -null
    • addedInput schema / properties / position_y / type
      Added value: +"number"
    • removedInput schema / properties / zoom / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / zoom / default
      Removed value: -null
    • addedInput schema / properties / zoom / type
      Added value: +"number"
  2. Changed23 schema fields changed
    • addedInput schema / properties / background / description
      Added value: +"Background around the picture: blur, or a color name or hex, e.g. black or #FFCC00. Empty keeps the current one."
    • removedInput schema / properties / background / title
      Removed value: -"Background"
    • addedInput schema / properties / blur_amount / description
      Added value: +"Strength of the blurred background, 1 to 120. Setting it turns the blur background on."
    • removedInput schema / properties / blur_amount / title
      Removed value: -"Blur Amount"
    • addedInput schema / properties / clip_id / description
      Added value: +"Clip or photo id from list_clips (kind photo for photos)."
    • removedInput schema / properties / clip_id / title
      Removed value: -"Clip Id"
    • addedInput schema / properties / custom_height / description
      Added value: +"Custom frame height in pixels, 240 to 4096, e.g. 628. Give it with custom_width."
    • removedInput schema / properties / custom_height / title
      Removed value: -"Custom Height"
    • addedInput schema / properties / custom_width / description
      Added value: +"Custom frame width in pixels, 240 to 4096, e.g. 1200. Give it with custom_height."
    • removedInput schema / properties / custom_width / title
      Removed value: -"Custom Width"
    • addedInput schema / properties / fit / description
      Added value: +"fill (picture fills the frame, edges cropped), whole (whole picture, background around it), or a band shape 4:3, 1:1, 16:9 or 9:16. Empty keeps the current fit."
    • removedInput schema / properties / fit / title
      Removed value: -"Fit"
    • addedInput schema / properties / flip_horizontal / description
      Added value: +"True mirrors left to right, false turns the mirror off. Leave out to keep it."
    • removedInput schema / properties / flip_horizontal / title
      Removed value: -"Flip Horizontal"
    • addedInput schema / properties / flip_vertical / description
      Added value: +"True flips upside down, false turns the flip off. Leave out to keep it."
    • removedInput schema / properties / flip_vertical / title
      Removed value: -"Flip Vertical"
    • addedInput schema / properties / position_x / description
      Added value: +"Where the frame sits over the picture, left to right, 0 to 100. 50 is the center, 0 the far left."
    • removedInput schema / properties / position_x / title
      Removed value: -"Position X"
    • addedInput schema / properties / position_y / description
      Added value: +"Where the frame sits over the picture, top to bottom, 0 to 100. 50 is the center, 0 the top."
    • removedInput schema / properties / position_y / title
      Removed value: -"Position Y"
    • addedInput schema / properties / zoom / description
      Added value: +"Zoom factor, 1 to 4. 1 means no zoom, e.g. 1.3."
    • removedInput schema / properties / zoom / title
      Removed value: -"Zoom"
    • removedInput schema / title
      Removed value: -"frame_clipArguments"
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations cover safety (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds behavior the annotations cannot express: the edit is undoable via undo_edit, it costs no Horizon Units, and it returns a job_id that job_status waits on. That is the async/mutation lifecycle an agent needs before committing to a call.

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?

Front-loaded trigger sentence followed by a compact exclusion list, then two short lines on undoability and the job_id handoff. Every clause carries information; nothing repeats the schema or the annotations.

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?

With 11 parameters, a 100%-covered schema and an existing output schema, the description supplies exactly the missing pieces: when to choose it, which siblings cover the excluded cases, reversibility, cost, and the async job handoff. Nothing an agent needs to call it correctly is absent.

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 earns extra credit by mapping natural-language requests to specific parameters ('make it 1200 by 628' to custom_width/custom_height, 'mirror it' to flip_horizontal, 'zoom in a bit' to zoom). It does not restate ranges or defaults, which the schema already handles.

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 and resource ('frame the picture ... in a clip or photo') and anchors it with three concrete user phrasings ('zoom in a bit', 'mirror it', 'make it 1200 by 628') that map directly to the tool's capabilities. An agent can distinguish it from style_clip, adjust_look and edit_clip without opening any 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?

Explicit positive trigger ('Use this when the user wants the picture framed differently'), plus an explicit 'Not for' list naming three sibling tools and the case each owns. It also resolves a likely ambiguity ('Rotation is done in the editor'), so the agent will not attempt a rotation via this tool.

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.

Resources