Skip to main content
Glama

Edit Music

beatra.music.edit
Idempotent

Revise a music track made by beatra.music.generate or an uploaded song: extend it, replace a time range, add vocals to an instrumental, or add accompaniment to a vocal; or make lyric timing (LRC and SRT), extra cover art, a visualizer MP4, or a WAV version of a chosen generated track. To save a track's singer as a persona, use beatra.music.personas.create_from_song. Every operation is a paid task; call beatra.models.list for its price. 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": {
      "operation": "<operation>",
      "source": "<source>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.music.edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNolyrics_timing (LRC and SRT), cover_image, video_mp4, or wav. One per call.
titleNoTitle for the result; generated when omitted.
end_msNoThe range to replace, at least 10 seconds and at most half of the track.
lyricsNoLyrics to sing. Required for add_vocals.
promptNoMusical style for the new part. Required for add_instrumental; otherwise defaults to the track's style.
sourceYesThe track to work on: an artifact from beatra.music.generate, an uploaded file, or a URL.
start_msNoThe range to replace, at least 10 seconds and at most half of the track.
operationYesextend, replace_section, add_vocals, add_instrumental, create_persona, or deliverable.
full_lyricsNoThe whole song's lyrics after the change; defaults to the track's lyrics.
instrumentalNoFor uploaded audio: continue without vocals.
persona_nameNoName for the persona.
vocal_end_msNoThe 10–30 second vocal window the persona learns from. Leave both out and Beatra picks the part where the singer is singing; send only one and the other is set 30 seconds away.
vocal_genderNom or f; raises the chance of that voice.
persona_styleNoOptional style notes, up to 200 characters.
video_optionsNoFor video_mp4: author and brand_text shown in the video, up to 50 characters each.
continue_at_msNoWhere the extension starts, in milliseconds; defaults to one second before the end of the track.
section_lyricsNoThe new lyrics for the replaced range.
vocal_start_msNoThe 10–30 second vocal window the persona learns from. Leave both out and Beatra picks the part where the singer is singing; send only one and the other is set 30 seconds away.
negative_promptNoStyles to avoid.
client_request_idYesStable retry identity for this billable operation. Reuse only for the exact same generation arguments.
persona_descriptionNoWhat the singer sounds like.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / vocal_end_ms / description
      Previous value: -"The 10–30 second vocal window the persona learns from; defaults to the first 30 seconds."New value: +"The 10–30 second vocal window the persona learns from. Leave both out and Beatra picks the part where the singer is singing; send only one and the other is set 30 seconds away."
    • changedInput schema / properties / vocal_start_ms / description
      Previous value: -"The 10–30 second vocal window the persona learns from; defaults to the first 30 seconds."New value: +"The 10–30 second vocal window the persona learns from. Leave both out and Beatra picks the part where the singer is singing; send only one and the other is set 30 seconds away."
  2. Changed3 schema fields changed
    • removedInput schema / $defs / McpMusicVideoOptions
      Removed value: -{
      -  "properties": {
      -    "author": {
      -      "anyOf": [
      -        {
      -          "maxLength": 50,
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Author name shown in the video, up to 50 characters.",
      -      "title": "Author"
      -    },
      -    "brand_text": {
      -      "anyOf": [
      -        {
      -          "maxLength": 50,
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Brand text shown in the video, up to 50 characters.",
      -      "title": "Brand Text"
      -    }
      -  },
      -  "title": "McpMusicVideoOptions",
      -  "type": "object"
      -}
    • addedInput schema / $defs / MusicVideoOptions
      Added value: +{
      +  "properties": {
      +    "author": {
      +      "anyOf": [
      +        {
      +          "maxLength": 50,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Author name shown in the video, up to 50 characters.",
      +      "title": "Author"
      +    },
      +    "brand_text": {
      +      "anyOf": [
      +        {
      +          "maxLength": 50,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Brand text shown in the video, up to 50 characters.",
      +      "title": "Brand Text"
      +    }
      +  },
      +  "title": "MusicVideoOptions",
      +  "type": "object"
      +}
    • changedInput schema / properties / video_options / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/McpMusicVideoOptions"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/MusicVideoOptions"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only give generic hints (not read-only, open-world, idempotent, non-destructive). The description adds the consequential facts an agent cannot get from them: every operation is a paid task consuming Beatra credits, it is asynchronous, it must be submitted exactly once and then polled via beatra.tasks.get, and client_request_id may only be reused for an identical retry. That is exactly the billing/idempotency context the annotations lack, and it is consistent with idempotentHint=true.

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?

Front-loaded with the operations, then the routing, pricing, and submission rules; every sentence carries information. The opening sentence is long and re-enumerates operations that also appear in the operation enum, which is mild redundancy but serves as a quick orientation.

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 21-parameter billable asynchronous tool with full schema descriptions and an output schema, the description covers the parts the schema cannot: cost, submit-once semantics, polling target, retry identity, and sibling routing for persona creation. Nothing an agent needs in order to call it correctly appears to be missing.

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 description coverage is 100% and the schema already documents nearly every field, including client_request_id's retry rule and the operation enum. The description adds only two small bits beyond that (kind is 'one per call', and the price is fetched elsewhere), so the baseline of 3 is appropriate — 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?

The description names specific verbs and a specific resource: revise a track from beatra.music.generate or an uploaded song, via extend, replace a time range, add vocals, or add accompaniment, plus deliverables (lyrics timing, cover art, visualizer MP4, WAV). It explicitly carves out persona creation to beatra.music.personas.create_from_song, so an agent can separate this from its closest sibling without reading 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states when to use this tool ('revise a music track made by ... generate or an uploaded song'), names an alternative for the excluded case, and gives the operational sequence: check price with beatra.models.list, submit once, then poll with beatra.tasks.get. Exclusions and alternatives are explicit rather than inferred.

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