Skip to main content
Glama

Plan a song

plan_song

How Daydream would make a song, without making it or counting it: the description the model will hear, which of the five parts play, the length, tempo, key and loop, and the chord chart. Show it to the person, change the request if it isn't what they meant, then call create_song with the plan_id to make exactly this plan (it's kept an hour).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plan_song"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoTempo (40 to 200 BPM; for slower feels under 40, double the BPM with a half-time feel); left out, it's chosen from the prompt.
keyNoA note with sharps and major or minor, like "C major" or "F# minor".
loopNoA seamless loop, for a game level or a background.
chordsNoA chord chart the parts follow. Bars, one chord a bar: "| Am | F | C | G |" (or "Am F C G"), "%" to repeat a bar, "x2" at the end to play it twice. Or the progression in words: "a 12-bar blues in A", "a ii-V-I in C minor". It goes round to fill the song's length. Chords are kept as written; the parts play each in its nearest plain form (G7b9 as G7, G13 as G7), and the answer says which. A progression in the prompt's words is read too.
promptNoThe music in words, e.g. "a calm village theme with flute and harp", or a sound with no music in it for a sound effect, e.g. "footsteps on gravel". Optional with a picture.
pictureNoA picture to score: the music is made for what it shows (place, light, mood, pace). With no prompt, the picture alone is the brief; with one, the words win where they say something. ChatGPT hands an attached image this way; any other agent sends { download_url }.
durationNoLength in seconds (default 120). For a length in bars, send bpm too, and bars × 240 ÷ bpm here: 8 bars at 100 BPM is 19.2.
referenceNoA reference track: the song takes its tempo and key (measured from the audio) unless the request or its words name their own. It doesn't copy the track's sound, rhythm or melody, so send a prompt with it: the track gives the tempo and key, the words say what the music is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / bpm / description
      Previous value: -"Tempo; left out, it's chosen from the prompt."New value: +"Tempo (40 to 200 BPM; for slower feels under 40, double the BPM with a half-time feel); left out, it's chosen from the prompt."
    • changedInput schema / properties / bpm / minimum
      Previous value: -60New value: +40
  2. Changed2 schema fields changed
    • changedInput schema / properties / duration / description
      Previous value: -"Length in seconds (default 120)."New value: +"Length in seconds (default 120). For a length in bars, send bpm too, and bars × 240 ÷ bpm here: 8 bars at 100 BPM is 19.2."
    • changedInput schema / properties / reference / description
      Previous value: -"A reference track: the song takes its tempo and key (measured from the audio) unless the request or its words name their own. It doesn't copy the track's sound, rhythm or melody."New value: +"A reference track: the song takes its tempo and key (measured from the audio) unless the request or its words name their own. It doesn't copy the track's sound, rhythm or melody, so send a prompt with it: the track gives the tempo and key, the words say what the music is."
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds values the annotations don't carry: no song is made, no credit is counted, the plan_id is the handoff token, and the plan expires after an hour. Since there is no output schema, the enumeration of plan contents (spoken description, five-part selection, length, tempo, key, loop, chord chart) is genuinely useful. It stops short of stating failure modes or what happens if plan_id expires, which keeps it off 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?

Two sentences, front-loaded with the identity of the tool before the mechanics. The first sentence is long and packed with a nested parenthetical plus a colon list, but every clause carries information about scope or output.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, all-optional, nested-object tool with no output schema, the definition covers what the plan returns, the human review loop, and the plan's lifetime. Left unexplained: behavior when a plan_id has expired and what the response token looks like.

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 coverage is 100% and the per-parameter descriptions are already rich (BPM ranges, chord-chart syntax, duration math, picture/reference rules), so the description adds little parameter meaning beyond restating plan fields. Baseline 3 applies when the schema does the heavy lifting.

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?

'How Daydream would make a song, without making it or counting it' pins a specific verb (plan/dry-run) and resource, and immediately separates it from the sibling that actually produces audio. The colon list of what the plan contains makes the output concrete.

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 an explicit workflow: show the plan to the person, revise the request if wrong, then call create_song with the plan_id. The alternative (create_song) and the condition for escalating to it are named, and the one-hour retention tells the agent not to hoard plans.

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