Skip to main content
Glama

Créer ou reprendre un effet sonore

create_sfx
Destructive

Renders one-shot 16-bit WAV sound effects from a catalog kind or an existing render, letting you change volume, pitch, and seed or generate variant families for games.

Instructions

Rend un effet ponctuel en WAV 16 bits. Pour un fond sonore continu, utilise create_ambience. Pour créer un effet, choisis kind dans list_catalog(category=sfx), par exemple coin. Le même couple kind et seed dans le même output_dir écrase le WAV précédent. Pour une variante, remplace kind par source_file_id. Reprends le file_id du WAV et son dossier dans source_output_dir. Indique uniquement les réglages à changer, par exemple volume=0.4. Le nouveau WAV est écrit dans un sous-dossier et la source est conservée. Pour générer une famille, fournis variants avec count, par exemple {"count":6,"pitch_spread":0.8,"attack_spread_ms":12}. Chaque WAV numéroté a sa graine et ses réglages de reprise. Un identifiant inconnu dans ce dossier ou dépourvu de réglages compatibles renvoie une erreur.

Input Schema

NameRequiredDescriptionDefault
kindNoIdentifiant d’effet issu de list_catalog(category=sfx) pour une création.
monoNotrue produit un WAV mono, false un WAV stéréo. Par défaut, reprend la source ou produit un WAV stéréo.
seedNoGraine du rendu. Une variante reprend celle de la source par défaut.
volumeNoVolume relatif. Par défaut, reprend la valeur de la source ou utilise 1 pour une création.
variantsNoRend 2 à 12 prises d’un même effet dans un nouveau sous-dossier. La graine d’appel détermine les prises.
attack_msNoFondu d’attaque en millisecondes ajouté à l’effet. Par défaut, reprend la source ou utilise 0.
output_dirNoDossier parent du nouveau rendu. Pour une variante, source_output_dir sert de valeur par défaut.
sampling_rateNoFréquence du WAV en hertz. Par défaut, reprend celle de la source ou utilise 44100 pour une création.
source_file_idNoIdentifiant d’un rendu précédent du même outil, issu de managed_outputs ou de manage_outputs. Fournis source_file_id ou kind.
pitch_semitonesNoDécalage de hauteur en demi-tons. Par défaut, reprend la source ou utilise 0.
source_output_dirNoDossier de la sortie source, indiqué dans managed_outputs.output_dir. À défaut, utilise output_dir ou le dossier output de SoundMCP.

Output Schema

NameRequiredDescriptionDefault
managed_outputsNo
output_management_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.1
    • changedOutput schema / properties / managed_outputs / properties / files / items / properties / file_id / description
      Previous value: -"Identifiant de la sortie dans son output_dir. Pour reprendre un effet ou une ambiance, donne cet identifiant comme source_file_id au même outil de création."New value: +"Pour reprendre un effet ou une ambiance, passe file_id comme source_file_id et output_dir comme source_output_dir à l’outil qui a créé le WAV."
  2. Changed11 schema fields changedv2.2.0
    • addedInput schema / properties / attack_ms
      Added value: +{
      +  "description": "Fondu d’attaque en millisecondes ajouté à l’effet. Par défaut, reprend la source ou utilise 0.",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / pitch_semitones
      Added value: +{
      +  "description": "Décalage de hauteur en demi-tons. Par défaut, reprend la source ou utilise 0.",
      +  "maximum": 6,
      +  "minimum": -6,
      +  "type": "number"
      +}
    • addedInput schema / properties / variants
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Rend 2 à 12 prises d’un même effet dans un nouveau sous-dossier. La graine d’appel détermine les prises.",
      +  "properties": {
      +    "attack_spread_ms": {
      +      "default": 12,
      +      "description": "Variation maximale autour de attack_ms, en millisecondes. Le fondu appliqué reste positif ou nul.",
      +      "maximum": 35,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "count": {
      +      "description": "Nombre de WAV numérotés.",
      +      "maximum": 12,
      +      "minimum": 2,
      +      "type": "integer"
      +    },
      +    "pitch_spread": {
      +      "default": 0.8,
      +      "description": "Écart maximal autour de pitch_semitones, en demi-tons.",
      +      "maximum": 3,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "count"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "bytes": {
      +        "type": "integer"
      +      },
      +      "durationSeconds": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Chemin du fichier WAV généré.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "render_settings": {
      +        "properties": {
      +          "attack_ms": {
      +            "type": "number"
      +          },
      +          "kind": {
      +            "type": "string"
      +          },
      +          "mono": {
      +            "type": "boolean"
      +          },
      +          "pitch_semitones": {
      +            "type": "number"
      +          },
      +          "sampling_rate": {
      +            "type": "integer"
      +          },
      +          "seed": {
      +            "type": "integer"
      +          },
      +          "volume": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "kind",
      +          "seed",
      +          "volume",
      +          "sampling_rate",
      +          "mono"
      +        ],
      +        "type": "object"
      +      },
      +      "seed": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "kind",
      +      "seed",
      +      "durationSeconds",
      +      "bytes",
      +      "render_settings"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "directory": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "kind": {
      +        "type": "string"
      +      },
      +      "seed": {
      +        "type": "integer"
      +      },
      +      "variants": {
      +        "items": {
      +          "properties": {
      +            "bytes": {
      +              "type": "integer"
      +            },
      +            "durationSeconds": {
      +              "type": "number"
      +            },
      +            "index": {
      +              "type": "integer"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "path": {
      +              "description": "Chemin du fichier WAV généré.",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "render_settings": {
      +              "properties": {
      +                "attack_ms": {
      +                  "type": "number"
      +                },
      +                "kind": {
      +                  "type": "string"
      +                },
      +                "mono": {
      +                  "type": "boolean"
      +                },
      +                "pitch_semitones": {
      +                  "type": "number"
      +                },
      +                "sampling_rate": {
      +                  "type": "integer"
      +                },
      +                "seed": {
      +                  "type": "integer"
      +                },
      +                "volume": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "seed",
      +                "volume",
      +                "sampling_rate",
      +                "mono",
      +                "pitch_semitones",
      +                "attack_ms"
      +              ],
      +              "type": "object"
      +            },
      +            "seed": {
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "path",
      +            "kind",
      +            "seed",
      +            "durationSeconds",
      +            "bytes",
      +            "index",
      +            "render_settings"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 12,
      +        "minItems": 2,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "seed",
      +      "directory",
      +      "variants"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / bytes
      Removed value: -{
      -  "type": "integer"
      -}
    • removedOutput schema / properties / durationSeconds
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / kind
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / path
      Removed value: -{
      -  "description": "Chemin du fichier WAV généré.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / render_settings
      Removed value: -{
      -  "properties": {
      -    "kind": {
      -      "type": "string"
      -    },
      -    "mono": {
      -      "type": "boolean"
      -    },
      -    "sampling_rate": {
      -      "type": "integer"
      -    },
      -    "seed": {
      -      "type": "integer"
      -    },
      -    "volume": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "kind",
      -    "seed",
      -    "volume",
      -    "sampling_rate",
      -    "mono"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / seed
      Removed value: -{
      -  "type": "integer"
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "path",
      -  "kind",
      -  "seed",
      -  "durationSeconds",
      -  "bytes",
      -  "render_settings"
      -]
  3. Changed17 schema fields changedv2.1.0
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "kind"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "source_file_id"
      +    ]
      +  }
      +]
    • changedInput schema / properties / kind / description
      Previous value: -"Type d'effet sonore."New value: +"Identifiant d’effet issu de list_catalog(category=sfx) pour une création."
    • removedInput schema / properties / mono / default
      Removed value: -false
    • changedInput schema / properties / mono / description
      Previous value: -"Exporte en mono (taille moitié)."New value: +"true produit un WAV mono, false un WAV stéréo. Par défaut, reprend la source ou produit un WAV stéréo."
    • changedInput schema / properties / output_dir / description
      Previous value: -"Dossier de sortie. Par défaut : <projet>/output."New value: +"Dossier parent du nouveau rendu. Pour une variante, source_output_dir sert de valeur par défaut."
    • removedInput schema / properties / sampling_rate / default
      Removed value: -44100
    • changedInput schema / properties / sampling_rate / description
      Previous value: -"Fréquence d'échantillonnage du WAV en Hz (22050 = taille moitié, ok pour les UI/retro)."New value: +"Fréquence du WAV en hertz. Par défaut, reprend celle de la source ou utilise 44100 pour une création."
    • changedInput schema / properties / seed / description
      Previous value: -"Graine : même seed = même SFX (utile pour des variantes cohérentes)."New value: +"Graine du rendu. Une variante reprend celle de la source par défaut."
    • addedInput schema / properties / seed / maximum
      Added value: +4294967295
    • addedInput schema / properties / source_file_id
      Added value: +{
      +  "description": "Identifiant d’un rendu précédent du même outil, issu de managed_outputs ou de manage_outputs. Fournis source_file_id ou kind.",
      +  "type": "string"
      +}
    • addedInput schema / properties / source_output_dir
      Added value: +{
      +  "description": "Dossier de la sortie source, indiqué dans managed_outputs.output_dir. À défaut, utilise output_dir ou le dossier output de SoundMCP.",
      +  "type": "string"
      +}
    • removedInput schema / properties / volume / default
      Removed value: -1
    • changedInput schema / properties / volume / description
      Previous value: -"Volume relatif (0.05 à 1)."New value: +"Volume relatif. Par défaut, reprend la valeur de la source ou utilise 1 pour une création."
    • removedInput schema / required
      Removed value: -[
      -  "kind"
      -]
    • changedOutput schema / properties / managed_outputs / properties / files / items / properties / file_id / description
      Previous value: -"Identifiant à passer dans file_id de manage_outputs, avec le même output_dir."New value: +"Identifiant de la sortie dans son output_dir. Pour reprendre un effet ou une ambiance, donne cet identifiant comme source_file_id au même outil de création."
    • addedOutput schema / properties / render_settings
      Added value: +{
      +  "properties": {
      +    "kind": {
      +      "type": "string"
      +    },
      +    "mono": {
      +      "type": "boolean"
      +    },
      +    "sampling_rate": {
      +      "type": "integer"
      +    },
      +    "seed": {
      +      "type": "integer"
      +    },
      +    "volume": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "seed",
      +    "volume",
      +    "sampling_rate",
      +    "mono"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "path",
      -  "kind",
      -  "seed",
      -  "durationSeconds",
      -  "bytes"
      -]New value: +[
      +  "path",
      +  "kind",
      +  "seed",
      +  "durationSeconds",
      +  "bytes",
      +  "render_settings"
      +]
  4. Changed1 schema field changedv2.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bytes": {
      +      "type": "integer"
      +    },
      +    "durationSeconds": {
      +      "type": "number"
      +    },
      +    "kind": {
      +      "type": "string"
      +    },
      +    "managed_outputs": {
      +      "properties": {
      +        "files": {
      +          "items": {
      +            "properties": {
      +              "file_id": {
      +                "description": "Identifiant à passer dans file_id de manage_outputs, avec le même output_dir.",
      +                "type": "string"
      +              },
      +              "path": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "file_id",
      +              "path"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "output_dir": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "output_dir",
      +        "files"
      +      ],
      +      "type": "object"
      +    },
      +    "output_management_warning": {
      +      "type": "string"
      +    },
      +    "path": {
      +      "description": "Chemin du fichier WAV généré.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "seed": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "path",
      +    "kind",
      +    "seed",
      +    "durationSeconds",
      +    "bytes"
      +  ],
      +  "type": "object"
      +}
  5. First observedv1.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare non-read-only, destructive, and non-idempotent behavior, so the safety profile is covered. The description still adds real context beyond them: the same kind plus seed in the same output_dir overwrites the previous WAV, variant renders preserve the source and write into a subdirectory, and an unknown identifier or incompatible settings returns an error. The only tension is that deterministic overwrite is described while idempotentHint is false, but overwriting a file is not the same claim, so this is not a direct contradiction.

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?

Purpose and the alternative are front-loaded, then each subsequent sentence maps to one mode (creation, variant, family) plus an error note. It is dense with no filler, though five sentences for a five-line behaviour spec is close to the upper bound of what is needed.

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 an 11-parameter mutation tool with a nested variants object, the description covers mode selection, where to source valid kind values, default inheritance from the source, overwrite semantics, and error conditions. An output schema exists and annotations cover the safety profile, so nothing an agent needs to call this correctly is missing.

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 coverage is 100%, so each parameter already documents its default and range; the baseline would be a 3. The description earns above that by explaining cross-parameter semantics the schema cannot express: kind and source_file_id are alternative modes, source_output_dir should carry the source's folder, and for a variant only the settings to change should be supplied (e.g. volume=0.4).

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?

States a specific verb and resource ("Rend un effet ponctuel en WAV 16 bits") and immediately contrasts it with the sibling for the other case: "Pour un fond sonore continu, utilise create_ambience." That single sentence lets an agent distinguish this tool from create_ambience 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 Guidelines5/5

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

The description partitions usage into three explicit modes: creation via kind, variation via source_file_id, and batch via variants, with the condition selecting each one. It also directs the agent to list_catalog(category=sfx) for valid kind values and names create_ambience as the alternative when a continuous background is wanted. No inference is left to the agent.

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