Skip to main content
Glama

Set a clip's source in/out points

set_item_in_out
Idempotent

Set a project item’s source in and out points in seconds to define the media range used for later edits. Specify video, audio, or both; this does not trim clips already on the timeline.

Instructions

Set the source in point and/or out point of a project item, in seconds from the media start. Pass at least one of in_point and out_point. media_type "all" (default) sets video and audio together. This marks the source range for later edits; it does not trim clips already on a timeline. Returns the resulting video and audio in/out points.

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

Input Schema

NameRequiredDescriptionDefault
item_idNoStable project item id (from list_project_items). Preferred.
in_pointNoNew in point, in seconds from the media start.
item_nameNoItem name; the first match in the project is used.
item_pathNoPath in the Project panel, e.g. "Footage/Day 1/clip.mp4".
out_pointNoNew out point, in seconds from the media start.
media_typeNoWhich side of the clip: "all" (video and audio together), "video" or "audio".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the mutation profile is covered structurally. The description adds meaningful context beyond that — that it marks a source range for later edits rather than trimming timeline clips, and that it returns resulting video and audio points (valuable since there is no output schema). It does not cover permissions, error behavior, or how an item is resolved when several identifiers are supplied.

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?

Four short sentences, each earning its place: the operation, the required argument, the media_type default, the scope disclaimer, and the return value. The core verb and resource are front-loaded with no preamble.

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?

With six parameters, no required fields, and no output schema, the description does real work by supplying the return shape and the at-least-one-point rule. The remaining gap is item identification precedence — the schema notes item_id is 'preferred' but the description never explains what happens if item_name or item_path is also passed.

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 baseline is 3; the description goes further by stating the source-timestamp semantics and, critically, that media_type defaults to 'all' — a default the schema does not declare — plus the cross-parameter constraint that at least one of in_point/out_point is required. It says nothing about how item_id, item_name, and item_path interact when multiple are passed.

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 and resource ('Set the source in point and/or out point of a project item') with explicit units. It also scopes the operation against timeline editing, though it never names the close sibling set_clip_in_out, so the boundary against that tool is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Pass at least one of in_point and out_point' gives a concrete calling precondition, and 'it does not trim clips already on a timeline' is an explicit non-use case. It stops short of routing the agent to alternatives such as set_clip_in_out, clear_item_in_out, or set_sequence_in_out for the sequence-level equivalent.

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