Skip to main content
Glama

generate_sound

Make an individual sound effect from a description when the library has nothing suitable (search_sounds has no full match and its closest sounds do not suit). Needs an SFXMint API key on an account with AI-made sounds left in a pack: each take uses one AI-made sound per started 5 seconds, charged when it starts, and failed takes are given back. Without a key or AI-made sounds it answers with buy_url; the user decides whether to buy, an agent never pays. Returns WAV files (16-bit stereo, 44.1 kHz or 48 kHz as sample_rate asks; signed links valid 15 minutes) with SHA-256, MP3 (128 kbps) through the same link with ?format=mp3, and ogg_url; if they are not ready within about 25 seconds, it returns the order id for get_generation. Not CC0: the user may use them in their own projects, commercially, but not redistribute them as standalone sound files or in a sound collection. AI-generated: the user should listen before use.

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>"
    },
    "name": "generate_sound"
  }
}

Input Schema

NameRequiredDescriptionDefault
loopNoMake it loop seamlessly (default false)
followNoHow closely the takes follow the words: variety (default, for a short description), balanced, or close (for a detailed one); same price
promptYesWhat should be heard, in plain English (other languages are translated), at most 400 characters: the source, the action, the material, how it starts and ends. Mention only sounds to be heard.
duration_sNoLength of each take in seconds; leave it out and SFXMint chooses from the description. Each started 5 seconds uses one AI-made sound a take.
variationsNoHow many takes (default 2); each is charged
sample_rateNoThe WAV's sample rate: 44100 (default) or 48000, the rate video and most game engines mix at; 16-bit stereo either way; same price

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / duration_s / description
      Previous value: -"Length of each take in seconds; leave it out and SFXMint chooses from the description. Each started 5 seconds costs 2 credits a take."New value: +"Length of each take in seconds; leave it out and SFXMint chooses from the description. Each started 5 seconds uses one AI-made sound a take."
  2. Changed1 schema field changed
    • addedInput schema / properties / sample_rate
      Added value: +{
      +  "description": "The WAV's sample rate: 44100 (default) or 48000, the rate video and most game engines mix at; 16-bit stereo either way; same price",
      +  "enum": [
      +    44100,
      +    48000
      +  ],
      +  "type": "number"
      +}
  3. Added
  4. Removed
  5. Changed1 schema field changed
    • addedInput schema / properties / variations_of / properties / order_id / description
      Added value: +"The generation, from generate_sound or get_generation"
  6. Changed2 schema fields changed
    • changedInput schema / properties / enhance / description
      Previous value: -"Recommended: SFXMint writes the prompt into the description the model gets, as the website's AI Enhance does, and the result gives that description. Default false: the prompt goes to the model exactly as written."New value: +"Default false. Prefer false when you can write the final English sound description using the prompt guidance: it skips the server AI rewrite. True asks SFXMint to expand or adapt a brief, as the website's AI Enhance does; the result includes enhanced_prompt. With false, non-Latin text may still trigger server translation, so write English to avoid that extra call. Neither setting guarantees audio quality; listen to the takes."
    • changedInput schema / properties / prompt / description
      Previous value: -"The sound the user needs, in plain words and any language: what it is for and what should be heard. With enhance (recommended), SFXMint writes the description the model gets. Leave out lengths (use duration_s)."New value: +"For enhance=false, write the final audible description in plain English, usually 1-3 sentences, at most 400 characters. Start with 'TrackType: SFX,'. Name the source, action and relevant material; preserve requested count, intensity, pace and how the sound starts, develops and ends. Translate a use such as 'success' into the intended audible event, e.g. 'TrackType: SFX, three bright electronic tones rise in pitch, each fading quickly.' Preserve an explicitly requested sound: a confirmation click stays a click. Mention only sounds to be heard; omit excluded sounds entirely instead of writing 'no music' or 'without speech'. Avoid brands, character names and metaphors that name unwanted sources. Add perspective, environment or timbre only when requested or established by context; do not invent extra events. Keep simple sounds short. Put total length in duration_s. For enhance=true, a plain-language brief in any language is enough; SFXMint writes the model description."
  7. Changed1 schema field changed
    • addedInput schema / properties / variations_of
      Added value: +{
      +  "description": "A variation set instead of a new sound: four takes started from one finished take of this account's generation, close to it, for a game to play at random so the sound does not repeat (footsteps, hits, shots). The result adds engine files (a Godot AudioStreamRandomizer .tres and a Unity script) to save beside the WAVs. Uses one generation; prompt then only names the set.",
      +  "properties": {
      +    "order_id": {
      +      "type": "string"
      +    },
      +    "take": {
      +      "description": "Which of its takes (1-4)",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "order_id",
      +    "take"
      +  ],
      +  "type": "object"
      +}
  8. Changed2 schema fields changed
    • changedInput schema / properties / enhance / description
      Previous value: -"Let SFXMint write the prompt into a full sound description first, as the website's AI Enhance does: a short idea ('coin', 'level complete'), another language, or words that leave something out. Default false: the prompt goes to the model exactly as written. The result gives the description it used."New value: +"Recommended: SFXMint writes the prompt into the description the model gets, as the website's AI Enhance does, and the result gives that description. Default false: the prompt goes to the model exactly as written."
    • changedInput schema / properties / prompt / description
      Previous value: -"One sound, in plain English: what makes it, what it does and how it develops, e.g. 'a heavy wooden door slams shut and rattles in its frame' or 'three bright notes rise quickly, then a soft sparkle'. Name what is heard, not what it is for. Write only what should be heard: the model reads 'no thunder' as thunder. Leave out lengths (use duration_s) and 'sound effect'; add a place (large hall, distant, outdoors) when it matters. For a one- or two-word idea, another language or words that exclude something, set enhance. The model's weak spots: small ringing things written as one dense mass: a burst, shower, spill, pile or overlapping rush of coins, bells, ice, glass or gems: the rings blur into a hiss with no clear tone; write for a game reward (coins, gems, loot), a quick rising jingle of bright dings; for real things, separate hits you could count, each with its ring (four ice cubes dropping into a glass one at a time, each a clear clink). the ambience of a busy indoor public place: a train or metro station, an airport hall, a shopping mall: a muddy rumble or a noisy wash with nothing recognisable in it; write the place by one steady source with few events, the way a plane cabin, an office or a fireplace ambience is written. clear spoken words, lyrics, a song or a music track: a voice with indistinct words, or a short musical sound rather than a track; write a voice whose words are indistinct, or the closest short sound (a chord, a sting, a drum hit) with no key, tempo or other song terms. a seamless loop, or a sound that keeps going without an end: one sound with a start and an end, not a loop; write the sound as one take of the longest length, without loop words."New value: +"The sound the user needs, in plain words and any language: what it is for and what should be heard. With enhance (recommended), SFXMint writes the description the model gets. Leave out lengths (use duration_s)."
  9. Changed1 schema field changed
    • changedInput schema / properties / prompt / description
      Previous value: -"One sound, in plain English: what makes it, what it does and how it develops, e.g. 'a heavy wooden door slams shut and rattles in its frame' or 'three bright notes rise quickly, then a soft sparkle'. Name what is heard, not what it is for. Write only what should be heard: the model reads 'no thunder' as thunder. Leave out lengths (use duration_s) and 'sound effect'; add a place (large hall, distant, outdoors) when it matters. For a one- or two-word idea, another language or words that exclude something, set enhance. The model's weak spots: ${weakSpotGuide()}."New value: +"One sound, in plain English: what makes it, what it does and how it develops, e.g. 'a heavy wooden door slams shut and rattles in its frame' or 'three bright notes rise quickly, then a soft sparkle'. Name what is heard, not what it is for. Write only what should be heard: the model reads 'no thunder' as thunder. Leave out lengths (use duration_s) and 'sound effect'; add a place (large hall, distant, outdoors) when it matters. For a one- or two-word idea, another language or words that exclude something, set enhance. The model's weak spots: small ringing things written as one dense mass: a burst, shower, spill, pile or overlapping rush of coins, bells, ice, glass or gems: the rings blur into a hiss with no clear tone; write for a game reward (coins, gems, loot), a quick rising jingle of bright dings; for real things, separate hits you could count, each with its ring (four ice cubes dropping into a glass one at a time, each a clear clink). the ambience of a busy indoor public place: a train or metro station, an airport hall, a shopping mall: a muddy rumble or a noisy wash with nothing recognisable in it; write the place by one steady source with few events, the way a plane cabin, an office or a fireplace ambience is written. clear spoken words, lyrics, a song or a music track: a voice with indistinct words, or a short musical sound rather than a track; write a voice whose words are indistinct, or the closest short sound (a chord, a sting, a drum hit) with no key, tempo or other song terms. a seamless loop, or a sound that keeps going without an end: one sound with a start and an end, not a loop; write the sound as one take of the longest length, without loop words."
  10. Changed1 schema field changed
    • changedInput schema / properties / prompt / description
      Previous value: -"One sound, in plain English: what makes it, what it does and how it develops, e.g. 'a heavy wooden door slams shut and rattles in its frame' or 'three bright notes rise quickly, then a soft sparkle'. Name what is heard, not what it is for. Write only what should be heard: the model reads 'no thunder' as thunder. Leave out lengths (use duration_s) and 'sound effect'; add a place (large hall, distant, outdoors) when it matters. For a one- or two-word idea, another language or words that exclude something, set enhance."New value: +"One sound, in plain English: what makes it, what it does and how it develops, e.g. 'a heavy wooden door slams shut and rattles in its frame' or 'three bright notes rise quickly, then a soft sparkle'. Name what is heard, not what it is for. Write only what should be heard: the model reads 'no thunder' as thunder. Leave out lengths (use duration_s) and 'sound effect'; add a place (large hall, distant, outdoors) when it matters. For a one- or two-word idea, another language or words that exclude something, set enhance. The model's weak spots: ${weakSpotGuide()}."
  11. Changed1 schema field changed
    • changedInput schema / properties / variations / description
      Previous value: -"How many takes to make (default 4; the price is the same)"New value: +"How many takes to make (default 4; one generation either way)"
  12. Changed1 schema field changed
    • changedInput schema / properties / enhance / description
      Previous value: -"Let SFXMint rewrite a short or unclear idea ('coin', 'level complete') into a full sound description first; a clear description still goes as written (default false: the prompt is used as written). The result gives the rewrite it used, if any."New value: +"Let SFXMint write the prompt into a full sound description first, as the website's AI Enhance does: a short idea ('coin', 'level complete'), another language, or words that leave something out. Default false: the prompt goes to the model exactly as written. The result gives the description it used."
  13. Changed1 schema field changed
    • changedInput schema / properties / prompt / description
      Previous value: -"One sound, in English: a short noun phrase that ends with the sound itself, e.g. 'heavy wooden door slam' or 'bright rising three-note chime'. Name what is heard, not what it is for; leave out no/not/without, lengths (use duration_s) and 'sound effect'. Add a place (large hall, distant, outdoors) only when it matters. For a one- or two-word idea, set enhance."New value: +"One sound, in plain English: what makes it, what it does and how it develops, e.g. 'a heavy wooden door slams shut and rattles in its frame' or 'three bright notes rise quickly, then a soft sparkle'. Name what is heard, not what it is for. Write only what should be heard: the model reads 'no thunder' as thunder. Leave out lengths (use duration_s) and 'sound effect'; add a place (large hall, distant, outdoors) when it matters. For a one- or two-word idea, another language or words that exclude something, set enhance."
  14. Added
  15. Removed
  16. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, non-destructive, closed-world mutation; the description supplies everything else that matters: API key requirement, per-take billing tied to started 5-second blocks, refunds on failed takes, buy_url fallback behavior, signed-link lifetime of 15 minutes, the ~25s latency threshold, and the non-CC0 redistribution restriction. This is well beyond what annotations convey.

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 purpose and the gating condition, and nearly every clause earns its place (cost, refund, buy_url, formats, timeout, license). It loses a point for density: long semicolon- and colon-chained sentences mixing pricing, output formats, and licensing in one paragraph rather than separable lines.

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?

There is no output schema, and the description compensates fully: WAV bit depth/rates, MP3 retrieval via ?format=mp3, ogg_url, SHA-256, 15-minute link expiry, and the asynchronous order-id path. For a 6-parameter generative tool with billing and licensing implications, nothing an agent needs to call it correctly is 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%, so the schema already carries the meaning of prompt, loop, follow, duration_s, variations, and sample_rate. The description adds only marginal connective context (billing tied to started 5-second blocks, sample_rate "as asked") that the parameter descriptions largely duplicate. Baseline 3 is appropriate 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?

"Make an individual sound effect from a description" gives a specific verb and resource, and the parenthetical immediately separates it from search_sounds by stating the exact condition (no full match and closest sounds unsuitable). An agent can distinguish this from search_sounds/get_sound without opening any 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?

Explicit when-to-use and when-not-to-use: only after search_sounds fails to produce a suitable match. It also names the follow-up alternative (get_generation) for the >25s case and states a hard policy ("an agent never pays") so the agent knows to hand buy_url to the user rather than acting.

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