Skip to main content
Glama

clip_stretch

Grow or shrink a clip's left or right edge to change its duration. Positive values trim inward; negative values reveal previously removed audio.

Instructions

Grow or shrink a clip's left or right edge, revealing previously- trimmed audio when growing (or time-stretching if none remains).

CONFIRMED LIVE: same delta_sec sign convention as clip_trim, despite the name suggesting the opposite - positive delta_sec SHRINKS the clip inward from the given edge, negative GROWS it outward. e.g. to restore 1 second previously trimmed off the right edge, call with side="right", delta_sec=-1.0, not +1.0.

Args: key: The clip's key, in "trackId:itemId" format. side: "left" or "right". delta_sec: Positive shrinks inward, negative grows/reveals outward. min_clip_duration: Minimum duration the clip must retain, in seconds. Default: 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
sideYes
delta_secYes
min_clip_durationNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden. It richly explains the non-obvious delta_sec sign convention, the growing vs. shrinking behavior, and the time-stretching fallback. It does not explicitly state whether shrinking is destructive or undoable, but the provided behavioral detail is substantial.

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 behavior, followed by the critical sign-convention warning and then parameter explanations. Every sentence adds necessary information, and the example is compact yet highly clarifying.

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?

The tool has four parameters and a counterintuitive sign convention, but the description covers all of them, offers a real example, and explains the underlying audio behavior. Even without an output schema, the agent has enough to invoke the tool correctly.

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

Parameters5/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 explain all parameters, and it does. It documents key format, side values, delta_sec sign semantics with a concrete example, and min_clip_duration's default and purpose.

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 ('grow or shrink') and resource ('a clip's left or right edge'), making the operation immediately clear. It also distinguishes itself from sibling tools by explaining the sign convention relative to clip_trim and the behavior when no trimmed audio remains.

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?

The description gives clear context for when this tool is appropriate: growing reveals previously-trimmed audio, and shrinking reduces the clip inward. It references clip_trim's sign convention but does not explicitly state when to choose clip_stretch over clip_trim or other editing tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xDarkzx/Audacity4-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server