Skip to main content
Glama

Split audio

split_audio

Cuts MP3 or M4A audio into several new files at specified times without re-encoding and returns saved paths; the original file remains unchanged.

Instructions

Cut an MP3 or M4A into several new files at the given times, without re-encoding. Two cut points make three parts; points outside the track are ignored. Use trim_audio to keep a single clip. Returns the saved paths; the input is not changed.

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": {
      "file": "<file>",
      "at": "<at>"
    },
    "name": "split_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
atYesCut points, like ["1:30", "3:00"].
fileYesPath to the file (absolute, or relative to the working directory).
output_dirNoFolder for the parts. Defaults to the input’s folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, closed-world, so the bar is lower, and the description still adds real behavior: no re-encoding, the input is not changed, out-of-range cut points are silently ignored, and saved paths are returned. It is silent on what happens if files already exist in output_dir (overwrite vs. rename), which is the one behavioral gap for a tool that writes files.

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?

Three short sentences, front-loaded with the core action, then the semantics, then the sibling routing. Every sentence carries information; nothing is redundant with the title or schema.

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?

For a three-parameter tool with no output schema, the definition covers input immutability, output location, the cut-point-to-part relationship, and the return value ('saved paths'), which is everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema lacks: how cut points map to output count ('two cut points make three parts') and how out-of-range values are handled. The 'at' format is still only illustrated in the schema, not here.

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?

States a specific verb and resource ('Cut an MP3 or M4A into several new files') plus the supported formats and the key technique ('without re-encoding'), which immediately distinguishes it from the sibling trim_audio.

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

Usage Guidelines5/5

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

Explicitly routes the agent: 'Use trim_audio to keep a single clip,' giving both the alternative and the condition that selects it. It also states an edge-case rule ('points outside the track are ignored'), leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.