Skip to main content
Glama

video_trim

Read-onlyIdempotent

Trim a video to a time range -- stream-copy, cuts snap to the nearest keyframe

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": {
      "fileBase64": "<fileBase64>",
      "startSeconds": "<startSeconds>",
      "endSeconds": "<endSeconds>"
    },
    "name": "video_trim"
  }
}

Input Schema

NameRequiredDescriptionDefault
endSecondsYesEnd time in seconds from the beginning, for example: 45.
fileBase64YesThe input file as a base64 string, without a data: prefix.
startSecondsYesStart time in seconds from the beginning, for example: 12.5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / endSeconds / description
      Added value: +"End time in seconds from the beginning, for example: 45."
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • addedInput schema / properties / startSeconds / description
      Added value: +"Start time in seconds from the beginning, for example: 12.5."
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds genuinely useful context beyond that: it uses stream-copy and cuts will snap to the nearest keyframe, which materially affects precision and performance expectations.

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?

A single front-loaded sentence with no wasted wording. It conveys the operation and the most important tradeoff in one compact statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter tool with full schema coverage and annotations, the description covers the key trimming behavior. However, it does not explain what the tool returns, whether the output is a new file or base64 payload, or any size limits for fileBase64.

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 the input schema already explains fileBase64, startSeconds, and endSeconds in detail. The description adds no parameter-specific meaning beyond the time-range concept, matching the baseline when the schema does the heavy lifting.

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?

The description states a clear verb and resource: "Trim a video to a time range." That distinguishes it from audio_trim and video_compress, though it does not explicitly name or contrast with sibling tools.

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

Usage Guidelines2/5

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

It describes what the tool does but gives no explicit guidance on when to choose it over alternatives such as video_convert or video_compress. The only implied usage comes from the word "Trim" and the time-range scope.

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