Skip to main content
Glama

Trim Video

trim_video

Cut one continuous time range from a video or an audio file. Pass exactly one of video_url or audio_url. Costs 2 credits. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.

Set start_time and either end_time or duration; end_time wins when both are given. With only start_time, 2 seconds are cut from that point; the default start is 1 second. An end past the source is cut at the source's end and check_job returns a warning. A start at or beyond the source is refused. Audio output supports mp3 (default), m4a and wav.

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_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
durationNoSeconds from start_time. Default: 2. Ignored if end_time is given.
end_timeNoEnd in seconds. Takes precedence over duration.
audio_urlNoAudio to trim, or a video whose soundtrack should be cut. Returns audio only. Pass this or video_url, not both.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
video_urlNoVideo to trim. Pass this or audio_url, not both.
start_timeNoStart in seconds. Default: 1.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
audio_formatNoAudio output format when audio_url is given. Default: mp3.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic mutation profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true); the description adds substantial specifics beyond it: a 2-credit cost, an async job model with check_job polling, automatic refund on failure, out-of-range end truncation with a warning, and outright refusal for a start beyond the source.

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 tight paragraphs, front-loaded with the core action, then constraints, then cost/async behavior, then edge cases. Every sentence carries operational weight with no filler or restated title.

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?

With 9 parameters and no output schema, the description still tells the agent what comes back (a job, then a permanent URL via check_job) and how failures and out-of-range inputs behave. The ancillary parameters (force_new, skills_used, budget_project) are fully documented in the schema, so the description does not need to repeat them.

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%, and the description mostly restates what the schema already documents (default start of 1 second, 2-second fallback cut, end_time winning over duration, mp3 default). Its only genuine additions are the boundary behaviors at the source's end and start, which the schema does not cover.

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?

Opens with a specific verb and resource plus a scope limitation: 'Cut one continuous time range from a video or an audio file.' An agent can immediately tell this apart from cut_and_reframe_video or add_audio_to_video, and the phrase 'one continuous time range' rules out multi-segment edits.

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 strong operational context: exactly one of video_url or audio_url, the start_time/end_time/duration precedence, and the follow-up step via check_job. It does not explicitly name a sibling alternative for related tasks (e.g., reframing or scaling), so guidance on when NOT to use it is implied rather than stated.

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.