Skip to main content
Glama

Trim to work area

trim_layers_to_work_area

Trim selected or specified layers' in/out points to the composition work area, using only their intersection. Layers fully outside the work area are skipped.

Instructions

Trim layers' in/out points to the comp work area (intersection). Layers fully outside the work area are skipped.

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": "trim_layers_to_work_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false with destructiveHint=false, so the agent knows it mutates but is labeled safe; the description usefully adds that layers fully outside the work area are skipped. It does not say whether keyframes are affected, whether the trim is reversible, or what happens when the work area spans the full comp.

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 short sentences, front-loaded with the operation and immediately followed by the one caveat that changes expected results. 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?

For a two-parameter, zero-required mutation with no output schema, the definition covers the core mechanism and the main edge case (layers entirely outside). Remaining gap is the full-comp / unset work area behavior and keyframe handling, which is minor but non-trivial for a timing-editing tool.

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%, so both comp and layers are already fully documented including the 'selected'/'all' enum and layer ref forms. The description adds nothing about parameter behavior beyond what the schema supplies, so the baseline of 3 is right.

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?

States a specific verb (trim) and resource (layers' in/out points) plus the target boundary (comp work area) and the intersection semantics in parentheses. That wording cleanly separates it from trim_comp_to_work_area, though the description never says so explicitly.

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?

The skip rule gives useful context about the outcome, but there is no explicit when-to-use guidance versus trim_comp_to_work_area or set_work_area, and no prerequisite noting that a work area must already be defined before this makes sense.

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