Skip to main content
Glama

Create an audio clip (speech from text, or upload a recording)

create_audio_clip

Generates the audio track a video model needs from text plus a chosen or cloned voice, or from an uploaded recording, and returns a clip id to poll for completion.

Instructions

The soundtrack every video model takes as input. Either text (up to 2000 characters) plus exactly one voice (voice_id from list_voices, or voice_user_id for a cloned voice), or file_path to upload a local WAV/MP3/M4A recording. Returns the clip id; it is ready when wait_for_job(model='audio-clip') reports done (usually seconds). Longer scripts: create several clips and pass all ids to create_craftstory2_video in order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoScript to synthesize (<= 2000 chars)
voice_idNoLibrary voice id (from list_voices)
file_pathNoLocal path of a recording to upload instead of text
voice_user_idNoCloned voice id (from list_voices with include_cloned)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover the safety profile (mutating, open-world, non-idempotent), so the description's job is to add operational context, which it does: it discloses the async nature, that the returned id is only usable once wait_for_job(model='audio-clip') reports done, and the typical latency. It does not mention auth requirements or failure modes, keeping it short of a 5.

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?

Three dense sentences with no filler; the input constraint is stated before the async/returns detail. Slightly information-heavy for one paragraph but each clause carries a distinct constraint or pointer, so little is wasted.

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?

With no output schema, the description supplies the missing return contract (clip id) and the completion protocol (poll wait_for_job with the audio-clip model). Together with the covered parameters and annotations, an agent has everything needed to call and consume this tool 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%, establishing a baseline of 3, but the description adds real semantic value beyond the schema: it states that exactly one voice must accompany text, that the voice sources are mutually exclusive alternatives to file_path, and where each id comes from. This mutual-exclusivity constraint is not expressed in the schema.

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+resource and explicitly frames the two modes: synthesize speech from text with a voice, or upload a local recording via file_path. The opening line ('The soundtrack every video model takes as input') immediately situates it relative to the video-creation siblings.

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?

Gives concrete selection rules between the two modes (text + exactly one voice, or file_path), names the prerequisite tools (voice_id from list_voices, voice_user_id for cloned voices), and routes longer scripts to multiple clips composed into create_craftstory2_video. Explicit when-to-use with named alternatives.

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