Skip to main content
Glama

producer_replace_section

Replace a specific time range in a song with newly generated audio, keeping the rest unchanged. Ideal for fixing weak sections, changing lyrics, or swapping a verse or chorus with new content.

Instructions

Replace a specific time range in a song with new generated content.

Re-generates a portion of a song between the specified start and end times,
keeping the rest of the song unchanged. Great for fixing sections you don't
like.

Use this when:
- A specific section of a song needs improvement
- You want to change lyrics in the middle of a song
- You want to replace a verse or chorus with something different

Returns:
    Task ID and the updated audio information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asyncNoWhether to process the request asynchronously.
lyricNoNew lyrics for the replaced section. Use section markers like [Verse], [Chorus].
modelNoModel version to use.FUZZ-2.0
styleNoMusic style for the replaced section.
audio_idYesID of the audio to replace a section in.
callback_urlNoWebhook callback URL for asynchronous notifications.
replace_section_endYesEnd time in seconds of the section to replace.
replace_section_startYesStart time in seconds of the section to replace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries full behavioral disclosure burden. It clearly states the core effect (re-generates a portion, keeps the rest unchanged) and the return value (Task ID and updated audio info). However, it does not clarify whether the original audio is overwritten or a new version is created, nor does it mention async behavior or other side effects despite having async and callback_url parameters.

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?

The description is well-structured with a clear opening statement, a brief elaboration, a bulleted 'Use this when' list, and a 'Returns' section. It is compact and each sentence contributes to understanding, though the three bullets are somewhat repetitive and could be condensed.

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?

Given the complexity of 8 parameters and an output schema, the description covers the core operation and return value well. It provides sufficient context for selection among siblings. However, it omits guidance on async behavior and the interplay of parameters like style and model, which would be useful for effective invocation.

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%, so all parameters already have descriptive text. The tool description adds little beyond restating the 'start and end times' concept and the idea of 'new generated content,' which is already implied in the schema. It does not elaborate on how lyric, style, or model parameters influence the generated section.

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 uses a specific verb 'Replace' and clearly identifies the resource as 'a specific time range in a song.' It distinguishes itself from sibling tools like extend_music (adds to the end) and variation_music (varies the whole track) by emphasizing section-level regeneration while keeping the rest unchanged.

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?

The 'Use this when' list provides three explicit scenarios: improving a specific section, changing lyrics in the middle, and replacing a verse/chorus. This gives clear context for when to use the tool, but it lacks explicit 'when not to use' or direct alternatives, so it doesn't reach the highest bar.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceDataCloud/ProducerMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server