Skip to main content
Glama

Cut clip from library item

media_library_clip
DestructiveIdempotent

Cut a frame-accurate H.264/AAC clip (max 180 s, location metadata removed) from a library item and, by default, save it to your private upload library for up to 30 days. Saving a clip may delete the oldest uploads that unfinished plans no longer need to make room. The returned upload asset_id can be used directly in Video uploads or as a Movie clip (service=upload). Only for reuse_policy=reusable items unless the user confirms they hold the rights.

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": {
      "item_id": "<item_id>",
      "start_seconds": "<start_seconds>",
      "end_seconds": "<end_seconds>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "media_library_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYesUUID of the media library item.
renditionNoSelect the master or proxy as the source, or let the server choose.
max_heightNoMaximum height in pixels for the clipped output.
end_secondsYesClip end offset in seconds from the beginning of the source.
include_audioNoInclude the source audio in the clip when available.
save_as_assetNoSave the clip to the private upload library for reuse in subsequent jobs.
start_secondsYesClip start offset in seconds from the beginning of the source.
idempotency_keyYesUnique key for the intended operation. Reuse it on network retries.
confirm_reference_rightsNoRequired true to cut a reference_only item; the user must state they hold permission.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description earns real credit by explaining WHAT is destroyed ('Saving a clip may delete the oldest uploads that unfinished plans no longer need to make room') and the 30-day retention of the saved upload. It does not disclose failure modes (e.g., what happens if end_seconds exceeds source length or the 180 s cap), and the idempotency guarantee is only implied via the schema field rather than restated as behavior, so it adds context but not a complete behavioral picture.

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 sentences, zero preamble, with the operation and its limits front-loaded before the side-effect warning and the rights caveat. The sentences are clause-dense (parenthetical limits, retention window, downstream usage all packed in), which costs a little scannability but no content is wasted.

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?

For a 9-parameter destructive mutation with no output schema, the description covers output identity (asset_id and its downstream use), retention, side effects, hard limits, and access conditions. An agent has enough to decide whether to call it and how to use the result without further reference.

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 every parameter including the two enums is already documented; baseline is 3. The description adds only two pieces of parameter meaning beyond the schema – that save_as_asset defaults to true and that a rights confirmation gates reference_only items – leaving rendition, max_height, include_audio, and the 180 s relationship to start/end_seconds entirely to the schema.

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 ('Cut a frame-accurate H.264/AAC clip ... from a library item') plus the exact output artifact and where it lands. The scope lines (max 180 s, location metadata removed, private upload library) make it unmistakably distinct from media_library_get/list/search or media_create.

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?

Gives a hard eligibility rule ('Only for reuse_policy=reusable items unless the user confirms they hold the rights') and names downstream consumers of the result (Video uploads, Movie clip with service=upload). It stops short of naming the sibling to use instead when the user only wants metadata or a non-clipped asset, so it is strong but not a full when/when-not/alternative map.

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