Skip to main content
Glama

Plan a music video

music_video_director

Free for the first songs each day; then 3¢ a song. Pass confirm_cents: 3 to allow the charge; with 0 it answers price_changed and charges nothing. Plans the video for a read song in plain words ("neon city at night"); nothing is rendered. It waits up to 20 s for the plan; if it is not ready the answer says poll_again: call music_video_turn(turn_id). To use only part of the song or change how many pictures are made, edit the plan yourself: set music_plan.track.start_s / end_s (seconds; 10 s to 8 min) and music_plan.picture_count, then call music_video_estimate — it answers the re-cut plan and its price. Ignore any mention of on-screen buttons in reply. Captions on a song are always whole lines (never word sync). Idempotency is keyed on (this token, this tool, idempotency_key).

Args: song_id: a song already read with song_analyze. message: what the user wants, 1-4000 chars, any language. history: the history from the last answer (optional, max 40 turns). music_plan: the last music_plan, to revise it. confirm_cents: the most the user agreed to pay, in cents (3 allows the paid-song charge). idempotency_key: unique per turn (recommended).

Returns: {ok, turn_id, status: done|running, reply, music_plan, chips:[label], dropped, history, cents} or {poll_again, next_tool}. Next: music_video_estimate, then music_video_create.

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": {
      "song_id": "<song_id>",
      "message": "<message>",
      "confirm_cents": "<confirm_cents>"
    },
    "name": "music_video_director"
  }
}

Input Schema

NameRequiredDescriptionDefault
historyNoThe conversation so far: pass back the `history` the last answer gave you.
messageYes
song_idYesA song id from song_from_library.
music_planNoThe `music_plan` from music_video_director.
confirm_centsYesThe most the user agreed to pay, in whole cents: pass 3 to allow the 3-cent song charge; with 0 a paid song answers price_changed and charges nothing.
idempotency_keyNoAny unique string (1-200 printable chars) so a retry never buys twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries the real behavioral load and does it well: pricing tiers, the confirm_cents gate with the price_changed outcome and no charge, a 20 s wait with a poll_again fallback, and idempotency keyed on (token, tool, idempotency_key). The one gap is that it never says what dropped or cents in the response mean, though the return shape is at least listed.

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?

Every sentence carries operational content, but the definition opens with pricing rather than purpose, so the core "what it does" is pushed to the third clause. The button-mention and caption notes are useful guardrails yet add to an already dense block.

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 six-parameter tool with a nested plan object and no output schema, the definition covers the inputs, the return shape, the polling escape hatch, the cost gate, and the handoff to sibling tools. An agent can complete a correct call without opening the schema.

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 already 83%, but the description still adds real meaning: confirm_cents 3 authorizes the charge while 0 yields price_changed with no charge, message accepts 1-4000 chars in any language, history is capped at 40 turns, and idempotency_key must be unique per turn. It also explains what music_plan and the editable track.start_s / end_s (10 s to 8 min) and picture_count fields are for, which the schema leaves as an open object.

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: it "plans the video for a read song" in plain words and explicitly notes that "nothing is rendered", which cleanly separates it from music_video_create. It also distinguishes the revision path by pointing to music_video_estimate for re-cuts and music_video_turn for polling.

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 sequencing: call this first, then music_video_estimate, then music_video_create, and call music_video_turn when the answer says poll_again. The prerequisite ("a song already read with song_analyze") and the paid-charge condition are stated outright, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources