Skip to main content
Glama

Trim a video

trim_video

Use to cut a video down to the part between start and end (seconds). 2 credits. Takes a media_id, a library asset or a link; saves the result to the library.

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": {
      "video": "<video>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "trim_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
videoYesA media_id, a library asset id or url, or a video link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: a concrete cost of '2 credits' and the side effect that output is written into the library, which tells the agent this is a billable, state-changing call. It does not say whether the source video is preserved or replaced, which keeps it below a 5.

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 action and immediately followed by cost, accepted input forms, and destination. No filler and nothing repeated from the title or schema.

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 three-parameter mutation tool with no output schema, the description covers input forms, units, cost, and where the result lands. It leaves unstated what the call returns (a media id or a job handle) and whether a job must be polled via check_job, which is the main remaining gap for an agent chaining calls.

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 coverage is only 33% — start and end are bare numbers with no schema description. The description compensates for the most important ambiguity by declaring the units '(seconds)' for both, but says nothing about valid ranges, whether start must precede end, or behavior when the range exceeds the clip length.

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 ('cut a video down to the part between start and end') plus the outcome ('saves the result to the library'), which is enough to distinguish it from neighbors like merge_media or reframe_video. It does not explicitly name a sibling it contrasts with, so it falls short of the top mark.

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?

'Use to cut a video down to the part between start and end' implies the usage context, but there is no explicit when-not guidance and no named alternative for cases like joining clips or reframing. The agent must infer that this is the extraction tool rather than a composition tool.

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.