Skip to main content
Glama

audio_trim

Read-onlyIdempotent

Trim audio to a time range

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": "audio_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

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds nothing beyond that: it does not say whether the original is preserved, how the output is returned (base64?), what happens if endSeconds exceeds the file duration, or whether re-encoding occurs. For a media-transform tool, that is a real gap.

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?

A single front-loaded clause with zero filler. It is efficiently structured, though the terseness leaves no room for any of the behavioral context that would help.

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?

The tool is simple (3 required scalar parameters, fully documented, annotations present, no output schema), so a short description is defensible. Still, nothing is said about the return value or edge cases like out-of-range timestamps, which an agent would need before calling.

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%, with each parameter documented including units and examples ("Start time in seconds from the beginning, for example: 12.5"). The description adds no meaning beyond the schema, so the baseline 3 applies.

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?

"Trim audio to a time range" gives a specific verb (trim) and resource (audio) plus the scoping concept (time range), so it is distinguishable from audio_compress or audio_convert. It stops short of naming any sibling or stating the output form, so it is clear but not differentiating.

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?

There is no when-to-use guidance, no exclusion conditions, and no mention of alternatives such as video_trim or audio_remove_silence. The agent must infer the use case entirely from the tool name.

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