Skip to main content
Glama

Generate Music

beatra.music.generate
Idempotent

Generate songs or instrumentals from a prompt, lyrics, or reference audio; optionally set a target length in seconds, reuse a saved persona, or score from reference images, a video, or audio. Make lyric timing, cover art, a visualizer MP4, or a WAV for a chosen track afterwards with beatra.music.edit. This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.

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": {
      "prompt": "<prompt>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.music.generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOmit unless the user requests a model.auto
titleNo
lyricsNoOptional lyrics text. Must be omitted for instrumental music.
promptYesStyle, mood, genre, and instrumentation. When lyrics are supplied (or Suno custom mode is on) this maps to the provider's style-conditioning field; otherwise it is the song description the model writes the song from. Either way it is not an instruction field: execution directives written here (for example "do not omit anything", "sing it verbatim", "make chapter three differ from chapter one") are not read as instructions and will not be obeyed. Put the words to be sung in `lyrics`, or set `instrumental` to true for a track with no vocals.
persona_idNoA singer from beatra.music.personas.list (saved from a song or created from the user's own voice); the new song keeps that singer's voice and style.
referencesNoScore from images (up to 5), one video (up to 241 seconds), or audio clips. Not combinable with duration_seconds, persona_id, lyrics, or reference_audio.
duration_fitNoapprox keeps the generated length; exact trims to the target with a short fade-out. Only with duration_seconds.
instrumentalNoWhen true, generate instrumental music without vocals.
model_optionsNoOptions grouped by public music model family.
reference_audioNo
duration_secondsNoTarget length in seconds (10–360). Results of 30 seconds or longer land within about 10%; shorter targets are generated at 30 seconds and trimmed. Not combinable with references or reference_audio.
client_request_idYes

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / persona_id / description
      Previous value: -"A persona saved with beatra.music.edit operation=create_persona; the new song keeps that singer's voice and style."New value: +"A singer from beatra.music.personas.list (saved from a song or created from the user's own voice); the new song keeps that singer's voice and style."
  2. Changed4 schema fields changed
    • removedInput schema / $defs / McpMusicReferences
      Removed value: -{
      -  "properties": {
      -    "audio": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "discriminator": {
      -              "mapping": {
      -                "artifact": "#/$defs/MediaInputArtifact",
      -                "data_uri": "#/$defs/MediaInputDataUri",
      -                "url": "#/$defs/MediaInputUrl"
      -              },
      -              "propertyName": "type"
      -            },
      -            "oneOf": [
      -              {
      -                "$ref": "#/$defs/MediaInputUrl"
      -              },
      -              {
      -                "$ref": "#/$defs/MediaInputArtifact"
      -              },
      -              {
      -                "$ref": "#/$defs/MediaInputDataUri"
      -              }
      -            ]
      -          },
      -          "maxItems": 4,
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Up to 4 audio clips, 6 seconds to 30 minutes each.",
      -      "title": "Audio"
      -    },
      -    "images": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "discriminator": {
      -              "mapping": {
      -                "artifact": "#/$defs/MediaInputArtifact",
      -                "data_uri": "#/$defs/MediaInputDataUri",
      -                "url": "#/$defs/MediaInputUrl"
      -              },
      -              "propertyName": "type"
      -            },
      -            "oneOf": [
      -              {
      -                "$ref": "#/$defs/MediaInputUrl"
      -              },
      -              {
      -                "$ref": "#/$defs/MediaInputArtifact"
      -              },
      -              {
      -                "$ref": "#/$defs/MediaInputDataUri"
      -              }
      -            ]
      -          },
      -          "maxItems": 5,
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Up to 5 images, 10 MB each.",
      -      "title": "Images"
      -    },
      -    "video": {
      -      "anyOf": [
      -        {
      -          "discriminator": {
      -            "mapping": {
      -              "artifact": "#/$defs/MediaInputArtifact",
      -              "data_uri": "#/$defs/MediaInputDataUri",
      -              "url": "#/$defs/MediaInputUrl"
      -            },
      -            "propertyName": "type"
      -          },
      -          "oneOf": [
      -            {
      -              "$ref": "#/$defs/MediaInputUrl"
      -            },
      -            {
      -              "$ref": "#/$defs/MediaInputArtifact"
      -            },
      -            {
      -              "$ref": "#/$defs/MediaInputDataUri"
      -            }
      -          ]
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "One video, up to 100 MB and 241 seconds.",
      -      "title": "Video"
      -    }
      -  },
      -  "title": "McpMusicReferences",
      -  "type": "object"
      -}
    • addedInput schema / $defs / MusicReferences
      Added value: +{
      +  "properties": {
      +    "audio": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "discriminator": {
      +              "mapping": {
      +                "artifact": "#/$defs/MediaInputArtifact",
      +                "data_uri": "#/$defs/MediaInputDataUri",
      +                "url": "#/$defs/MediaInputUrl"
      +              },
      +              "propertyName": "type"
      +            },
      +            "oneOf": [
      +              {
      +                "$ref": "#/$defs/MediaInputUrl"
      +              },
      +              {
      +                "$ref": "#/$defs/MediaInputArtifact"
      +              },
      +              {
      +                "$ref": "#/$defs/MediaInputDataUri"
      +              }
      +            ]
      +          },
      +          "maxItems": 4,
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Up to 4 audio clips, 6 seconds to 30 minutes each.",
      +      "title": "Audio"
      +    },
      +    "images": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "discriminator": {
      +              "mapping": {
      +                "artifact": "#/$defs/MediaInputArtifact",
      +                "data_uri": "#/$defs/MediaInputDataUri",
      +                "url": "#/$defs/MediaInputUrl"
      +              },
      +              "propertyName": "type"
      +            },
      +            "oneOf": [
      +              {
      +                "$ref": "#/$defs/MediaInputUrl"
      +              },
      +              {
      +                "$ref": "#/$defs/MediaInputArtifact"
      +              },
      +              {
      +                "$ref": "#/$defs/MediaInputDataUri"
      +              }
      +            ]
      +          },
      +          "maxItems": 5,
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Up to 5 images, 10 MB each.",
      +      "title": "Images"
      +    },
      +    "video": {
      +      "anyOf": [
      +        {
      +          "discriminator": {
      +            "mapping": {
      +              "artifact": "#/$defs/MediaInputArtifact",
      +              "data_uri": "#/$defs/MediaInputDataUri",
      +              "url": "#/$defs/MediaInputUrl"
      +            },
      +            "propertyName": "type"
      +          },
      +          "oneOf": [
      +            {
      +              "$ref": "#/$defs/MediaInputUrl"
      +            },
      +            {
      +              "$ref": "#/$defs/MediaInputArtifact"
      +            },
      +            {
      +              "$ref": "#/$defs/MediaInputDataUri"
      +            }
      +          ]
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "One video, up to 100 MB and 241 seconds.",
      +      "title": "Video"
      +    }
      +  },
      +  "title": "MusicReferences",
      +  "type": "object"
      +}
    • changedInput schema / properties / references / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/McpMusicReferences"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/MusicReferences"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / references / description
      Previous value: -"Score from images (up to 5), one video (up to 241 seconds), or audio clips. Not combinable with duration_seconds, persona_id, or lyrics."New value: +"Score from images (up to 5), one video (up to 241 seconds), or audio clips. Not combinable with duration_seconds, persona_id, lyrics, or reference_audio."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only declare readOnly=false, openWorld=true, idempotent=true, destructive=false. The description adds substantive, non-derivable behavior: this call is billable and consumes Beatra credits, it creates an asynchronous task rather than returning finished audio, it must be submitted exactly once and then polled, and the client_request_id may only be reused for a byte-identical retry. That is exactly the operational context an agent needs to avoid double-billing.

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 sentences, front-loaded with capability, then routing, then billing and lifecycle. The first sentence is a long compound enumeration that is dense but every clause carries distinct capability information. Little could be cut without losing routing or billing guidance.

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 12-parameter, billable, asynchronous generation tool with an output schema and full annotations, the description covers the creation scope, the follow-up tools, the credit cost, the submit-once-then-poll lifecycle, and the idempotency contract. Return values are covered by the output schema, so no further detail is required.

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 description coverage is 75%, so most parameters are already documented, and the description does not repeat them. It does add meaning the schema lacks, notably that client_request_id must be reused only for an identical retry, and it surfaces the mutually exclusive paths (prompt, lyrics, reference audio, persona, references, duration) as a coherent set of generation modes rather than a flat parameter list.

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 names a specific verb (generate) and resources (songs or instrumentals) and enumerates the input modalities: prompt, lyrics, reference audio, images, video. It explicitly separates this tool from beatra.music.edit, which handles follow-up artifacts like lyric timing, cover art, visualizers, and WAVs, so an agent can distinguish creation from post-processing without opening either schema.

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?

It gives clear routing: create here, then use beatra.music.edit for renders and beatra.tasks.get for polling. It also states the retry rule for client_request_id. It stops short of excluding adjacent generators such as beatra.audio.generate_sfx or beatra.videos.generate, so a user wanting a short sound effect or video still relies on the sibling names rather than an explicit 'do not use this for X'.

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