Skip to main content
Glama

generate_music

Generate music tracks up to 8 minutes using Suno models. Supports game music, ambient, and jingles with custom styles and instrumental options.

Instructions

Generate music using Suno via kie.ai. Supports V5.5 (custom style), V5 (best quality), V4.5+, V4.5, V4. Up to 8 minutes. Great for game music stems, ambient tracks, and jingles. Polls until done and downloads to kie/assets/raw/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoSet false to submit and return immediately with the task_id (async mode) — then poll with check_task and fetch with download_result. Recommended for long generations to avoid client-side watchdog timeouts.
modelNoSuno model. V5_5=custom style, V5=best quality. Default: V5V5
styleNoStyle tags (e.g. "Celtic, orchestral, upbeat, fantasy, game music")
titleNoTrack title (optional)
promptYesMusic description (e.g. "upbeat Celtic fantasy adventure, flute and drums, heroic")
filenameNoOutput filename. Auto-generated if omitted.
download_dirNoAbsolute directory to save the file(s) into (created if missing). Defaults to the server's kie/assets/raw/. Must be absolute — the MCP server's working directory is not the caller's.
instrumentalNoNo vocals when true (recommended for game music)
max_wait_secondsNoOverride the blocking-mode polling budget in seconds (defaults: image 600, video 900, audio 300, speech 300). Ignored when wait=false.
Behavior3/5

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

No annotations are provided, so the description must carry behavioral disclosure. It discloses polling behavior and download path ('Polls until done and downloads to kie/assets/raw/'), which adds value. However, it does not mention authorization needs, rate limits, or potential costs (e.g., credit usage), leaving gaps for a generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three concise sentences with clear front-loading. The first sentence states the core purpose, the second lists supported models and duration, and the third gives use cases and behavior. No superfluous words.

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

Completeness3/5

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

No output schema exists, so the description should cover return values. It mentions polling and download path but does not describe what the tool returns (e.g., a result object, task_id for async, or downloaded file path). Given the tool's complexity (9 params, generation), this omission is notable.

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 baseline is 3. The description does not add significant meaning beyond the schema; it only restates model versions and duration. The schema already provides detailed parameter descriptions, so no additional value is needed.

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 clearly states the tool generates music using Suno via kie.ai, lists supported models (V5.5, V5, V4.5+, V4.5, V4) and duration (up to 8 minutes), and specifies use cases (game music stems, ambient tracks, jingles). This verb+resource combination effectively distinguishes it from sibling tools like generate_sfx or generate_video.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies usage for game music, ambient, and jingles but provides no explicit guidance on when to use this tool vs alternatives (e.g., generate_sfx for sound effects, generate_gemini_tts for speech). No when-not-to-use or alternative mentions are present.

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/elibarnett/kie-mcp'

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