Skip to main content
Glama

clear-line-ops

Trim or cut

trim_media

Cut a section out of a video or audio file. Lossless mode copies the data without re-encoding, so it is instant and keeps full quality (the cut snaps to the nearest keyframe). Cost: 1 credit per minute of output. Long jobs return a job_id; poll it with get_job. Result links expire in 1 hour.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesSource file: public http(s) link
formatNoOutput format when not lossless. Defaults to mp4 or mp3
qualityNoQuality. Lower quality gives smaller filesmedium
losslessNoCopy without re-encoding (instant, keeps quality)
end_secondsNoWhere the cut ends, in seconds
start_secondsYesWhere the cut starts, in seconds
duration_secondsNoLength of the result in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.