Skip to main content
Glama

make_loop

Converts an existing sound file into a seamless loop by blending the ending into the start to eliminate clicks; optionally trims fade-ins or fade-outs first.

Instructions

Turn an existing sound file into a seamless loop, saving a new file.

The last crossfade_s seconds are blended into the start so it repeats with no click. Use trim_s to cut that many seconds off both ends first (to drop a fade-in or fade-out). The result is shorter than the original by the crossfade plus the trims, and the sound should be at least three times the crossfade long. Works best on ambience such as wind, rain or hums. format defaults to the source file's format; WAV loops carry loop points.

Input Schema

NameRequiredDescriptionDefault
nameNo
pathYes
formatNo
trim_sNo
loudnessNo
output_dirNo
crossfade_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it states that a new file is saved rather than the original being overwritten, explains how crossfade and trim affect result length, gives a minimum source length, and notes format defaults and WAV loop points. It still omits details such as output naming, loudness handling, and failure behavior.

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?

The description is front-loaded with the core action, then gives operational details in a compact sequence. Each sentence adds useful information about the transformation or its constraints.

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 core looping behavior is well covered, but for a 7-parameter tool with no annotations or output schema, the description should do more to document output location/naming and the meaning of loudness. It is adequate but incomplete.

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 0%, so the description must compensate. It meaningfully explains crossfade_s, trim_s, format, and the role of the source path, but leaves name, loudness, and output_dir undocumented, so compensation is only partial.

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?

The description states a specific verb and resource: turning an existing sound file into a seamless loop and saving a new file. This clearly distinguishes it from sibling tools like mix_sounds, create_sound, export_sound, and preview_sound.

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?

It provides clear usage context, including that it works best on ambience such as wind, rain, or hums, and explains when to use trim_s to remove fades. It does not explicitly name alternatives or state when not to use the tool, so it falls short of a 5.

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