Skip to main content
Glama

Créer ou reprendre une ambiance

create_ambience
Destructive

Generate continuous, loopable 16-bit WAV ambiences from catalog presets or prior renders for game environments and background beds.

Instructions

Rend un fond sonore continu en WAV 16 bits bouclable. Pour un son ponctuel, utilise create_sfx. Pour créer une ambiance, choisis kind dans list_catalog(category=ambiences), par exemple rain. Le même couple kind et seed dans le même output_dir écrase le WAV précédent, même si la durée change. Pour une variante, remplace kind par source_file_id. Reprends le file_id du WAV et son dossier dans source_output_dir. Passe duration_seconds=20 pour obtenir une boucle de 20 secondes en conservant les autres réglages. Le nouveau WAV est écrit dans un sous-dossier et la source est conservée. Un identifiant inconnu dans ce dossier ou dépourvu de réglages compatibles renvoie une erreur.

Input Schema

NameRequiredDescriptionDefault
kindNoIdentifiant d’ambiance issu de list_catalog(category=ambiences) 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.
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.
duration_secondsNoDurée de la boucle en secondes. À défaut, reprend la durée source pour une variante ou celle de l’ambiance choisie.
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
kindYes
loopYes
pathYesChemin du fichier WAV généré.
seedYes
bytesYes
durationSecondsYes
managed_outputsNo
render_settingsYes
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. Changed18 schema fields changedv2.1.0
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "kind"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "source_file_id"
      +    ]
      +  }
      +]
    • changedInput schema / properties / duration_seconds / description
      Previous value: -"Durée de la boucle en secondes (5 à 600). Par défaut : 45-60 s selon l'ambiance. Une boucle plus longue = événements moins répétitifs."New value: +"Durée de la boucle en secondes. À défaut, reprend la durée source pour une variante ou celle de l’ambiance choisie."
    • changedInput schema / properties / kind / description
      Previous value: -"Type d'ambiance."New value: +"Identifiant d’ambiance issu de list_catalog(category=ambiences) 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 recommandé pour les fonds d'ambiance (taille moitié, qualité largement suffisante)."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 ambiance."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": {
      +    "duration_seconds": {
      +      "type": "number"
      +    },
      +    "kind": {
      +      "type": "string"
      +    },
      +    "mono": {
      +      "type": "boolean"
      +    },
      +    "sampling_rate": {
      +      "type": "integer"
      +    },
      +    "seed": {
      +      "type": "integer"
      +    },
      +    "volume": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "seed",
      +    "volume",
      +    "sampling_rate",
      +    "mono",
      +    "duration_seconds"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "path",
      -  "kind",
      -  "seed",
      -  "durationSeconds",
      -  "bytes",
      -  "loop"
      -]New value: +[
      +  "path",
      +  "kind",
      +  "seed",
      +  "durationSeconds",
      +  "bytes",
      +  "loop",
      +  "render_settings"
      +]
  3. Changed1 schema field changedv2.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bytes": {
      +      "type": "integer"
      +    },
      +    "durationSeconds": {
      +      "type": "number"
      +    },
      +    "kind": {
      +      "type": "string"
      +    },
      +    "loop": {
      +      "type": "boolean"
      +    },
      +    "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",
      +    "loop"
      +  ],
      +  "type": "object"
      +}
  4. 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 destructiveHint=true and readOnlyHint=false, and the description earns that by stating exactly what is destroyed: the same kind+seed in the same output_dir overwrites the prior WAV even if the duration differs. It further discloses that variation writes into a subfolder while preserving the source, and that unknown/incompatible source ids raise an error. Minor gap: it doesn't say how a differing seed (as opposed to overwriting) is named or what happens when only output_dir changes.

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?

It is front-loaded with the output format, then organized one paragraph per mode (creation, variation, error), and nearly every sentence carries a rule. The duration_seconds=20 example is illustrative rather than essential, and the overwrite rule is slightly buried mid-paragraph.

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 9-parameter destructive write with a schema-level oneOf and an output schema, the description covers the two call modes, defaults inheritance, overwrite risk, output location, and failure behavior. An agent has everything needed to choose a mode and call it safely.

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 the per-parameter meanings are already documented; the baseline is 3. The description adds genuine cross-tool semantics the schema cannot: kind values must come from list_catalog, source_file_id from managed_outputs, source_output_dir from managed_outputs.output_dir, and duration_seconds can be reset alone while other settings inherit from the source.

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 first sentence gives a specific verb and artifact — produces a continuous, loopable 16-bit WAV background — and immediately names the sibling it is not (create_sfx for one-off sounds). An agent can distinguish create_ambience from create_sfx/create_music 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?

It spells out the two mutually exclusive modes: creation via kind taken from list_catalog(category=ambiences), and variation via source_file_id with source_output_dir. It also states the negative case (one-off sound → create_sfx), so the agent has an explicit routing rule rather than an inference.

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