Skip to main content
Glama

fit_to_comp

Scales selected layers to fit a composition using cover, contain, or fill modes, so content matches the comp frame without manual resizing.

Instructions

Scale layers to fit the comp. mode: cover (fills, may crop), contain (fits inside, may letterbox), fill (stretches non-uniformly).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fit_to_comp"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
modeNocover
layersNoOne or many layers (each: name, 1-based index, or { id: N }). If omitted, uses currently selected layers.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does meaningful work: it discloses the consequence of each mode, including the two risky outcomes (cropping and non-uniform stretching via "fill"). It does not say whether the operation is undoable, whether it changes keyframed scale values, or what happens to layers not belonging to the comp, so it is strong but not complete.

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 with zero waste; the action is front-loaded and the mode glossary follows in a compact parenthetical structure. No restatement of the tool name and no filler.

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?

All four parameters are optional and documented in the schema, and there is no output schema to explain, so the description's scope is appropriate. It covers purpose and mode effects well; the only gap is that nothing is said about how the operation interacts with existing keyframes or unsupported layer types.

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 description coverage is 75%, so comp/layers/instance semantics are already documented. The description adds genuine value beyond the schema by explaining what each enum value actually means geometrically (cover fills and may crop, contain fits inside and may letterbox, fill stretches non-uniformly), which the enum list alone does not convey.

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?

Specific verb plus resource plus target: "Scale layers to fit the comp." An agent immediately knows this is a geometric resize-to-comp operation, and the name/description pairing makes it distinguishable from fit_box_to_text on subject matter alone. It stops short of explicitly naming the sibling it is not.

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 purpose statement (fit layers to comp bounds) and the mode list hints at intent-based selection, but there is no explicit when-to-use versus alternatives guidance, no note about when to prefer fit_box_to_text, and no preconditions or exclusions stated.

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