Skip to main content
Glama

Wait for a track to finish

wait_for_track
Read-onlyIdempotent

Keep waiting for a generation that had not finished yet.

Call this when a generation tool came back with status: pending. It costs no quota — the track is already paid for. Never start a second generation for the same brief instead of calling this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_idYesId returned by a generation tool.
wait_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bpmNo
keyNo
urlNoDownload link once done.
modeNo
formatNo
promptNo
statusYesdone, failed or pending.
bitrateNo
durationNo
track_idNo
importantNo
expires_atNoAfter this the audio is deleted and the URL stops working.
session_idNo
edited_fromNoThe track this one was derived from. Edits and variations never modify the original — they mint a new track, and this is the link back.
playlist_indexNo
how_it_was_servedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world safety, so the bar is lower; the description adds genuinely new context by noting it costs no quota because the track is already paid for. It does not describe what happens if the track is still pending when the wait elapses, so it falls just short of full behavioral disclosure.

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, zero filler, with the triggering condition stated first and the anti-pattern warning last. Every sentence earns its place.

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?

An output schema exists, so return values need not be explained, and annotations carry the safety profile. However, the undefined wait_seconds behavior and the unstated outcome when the wait expires leave a real gap for a long-polling tool.

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

Parameters2/5

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

Schema description coverage is only 50%: track_id is documented in the schema, but wait_seconds has no description in either place. The description never mentions wait_seconds, its default of 120, or the 600 upper bound, so it fails to compensate for the coverage gap on a parameter whose semantics (blocking duration/timeout) matter to correct invocation.

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 action (keep waiting on a generation) and the exact triggering state (a generation tool returned status: pending). It also explicitly disambiguates from the sibling generation tools by warning against starting a second generation for the same brief.

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?

It gives an explicit when-to-use condition ('Call this when a generation tool came back with status: pending') and an explicit when-not ('Never start a second generation for the same brief instead of calling this'), the latter directly naming the alternative behavior an agent might otherwise choose.

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