Skip to main content
Glama

One sound for each entity in the folder

sounds_for_folder

Creates the event event_name on EACH entity in a folder (and subfolders) and generates each one's sound, with its own prompt: {entity} and {description} in the prompt become each entity's name and description. WITHOUT max_credits it only plans: returns the entities, the total cost and the balance, without spending anything. Show the user and, with their OK, call again with max_credits equal to the cost. An entity that already has an event with that name uses the existing one. An event with no chosen sound gets ALL the new variations chosen, so the game picks one at random (auto_choose=false turns this off). For ONE sound that applies to the whole folder, use create_event with folder_id. Always say whether it is a loop. LOOP OR ONE-SHOT, decided from what the sound is in the game: a LOOP is anything that lasts while something keeps happening and the game plays on repeat: ambience and weather, music, engines and machines, fire burning, flowing water, AND movement cycles: footsteps, walking, running, crawling, galloping, sustained wing flapping, rolling. Footsteps are a walk cycle with several steps (6-10 s), never a single step. A ONE-SHOT is one discrete action: hit, swing, click, cry, death, explosion, door, item, sting. DURATION: one-shots at least 2 s even for a tiny click, since shorter clips come out thin (hits, clicks and swings 2 s; cries, deaths, collapses and stings 3-5 s); movement loops 6-10 s; ambience, engine and fire loops 10-16 s. A music TRACK (Music folder) is not a sound effect: it is generated with generate_music and lasts up to the user's plan limit (generate_music duration_sec says it), usually 1-3 min for a theme and 30-60 s for a short loop. The server refuses one-shots under 2 s and loops under 6 s. COST = seconds rounded up × the account price per second (creditsPerSecond in list_games) × variations.

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": {
      "folder_id": "<folder_id>",
      "event_name": "<event_name>",
      "prompt": "<prompt>",
      "loop": "<loop>"
    },
    "name": "sounds_for_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
loopYesRequired. true for a continuous sound the game repeats (footsteps, running, flapping, engine); false for one discrete action.
promptYesHow it sounds; {entity} and {description} become each entity's name and description. Up to 400 characters.
channelsNoAudio channels. auto (default): mono for everything the game positions (footsteps, hits, creatures, interface), stereo for Ambience backgrounds and for music in any folder. stereo: for a sound that does not come from a spot on the map (a sting, a screen whoosh). The choice is saved on the event.
folder_idYesThe folder whose entities each get the sound (from list_folders).
event_nameYesThe event created on each entity, in the game's language (Attack, Die). Up to 60 characters.
variationsNoVersions per entity, 1 to 4 (default 1). The cost grows with it.
auto_chooseNotrue (default): an event with no chosen sound gets all its new variations chosen. false leaves the choice to the user.
max_creditsNoOmit it to only plan (entities, total cost, balance) without spending. To generate, pass the total the user approved; the cost must fit in it.
duration_secNoOne-shot at least 2 s; movement loops 6-10 s. Omitted: loop 12 s, one-shot 2 s.
include_subfoldersNoAlso the entities in subfolders (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / auto_choose / description
      Added value: +"true (default): an event with no chosen sound gets all its new variations chosen. false leaves the choice to the user."
    • addedInput schema / properties / event_name / description
      Added value: +"The event created on each entity, in the game's language (Attack, Die). Up to 60 characters."
    • addedInput schema / properties / folder_id / description
      Added value: +"The folder whose entities each get the sound (from list_folders)."
    • addedInput schema / properties / include_subfolders / description
      Added value: +"Also the entities in subfolders (default true)."
    • addedInput schema / properties / max_credits / description
      Added value: +"Omit it to only plan (entities, total cost, balance) without spending. To generate, pass the total the user approved; the cost must fit in it."
    • addedInput schema / properties / prompt / description
      Added value: +"How it sounds; {entity} and {description} become each entity's name and description. Up to 400 characters."
    • addedInput schema / properties / variations / description
      Added value: +"Versions per entity, 1 to 4 (default 1). The cost grows with it."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the sparse annotations (readOnlyHint false, destructiveHint false). It discloses the plan-only no-spend mode, reuse of existing events, auto_choose behavior and how to disable it, the cost formula, server-side refusals under 2 s / 6 s, and the full loop versus one-shot taxonomy. These are the behavioral details an agent needs before spending credits.

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-loads the plan-then-approve workflow, then organizes supporting rules under LOOP OR ONE-SHOT, DURATION, and COST headings. It is dense and long, but nearly every sentence carries decision-relevant content for a 10-parameter creative tool; the taxonomy section is the only part that could be tightened.

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?

For a complex 10-parameter tool with no output schema, it covers the planning return (entities, total cost, balance), spending rules, and generation constraints. It does not say what the generation call returns (job id, status, per-entity results), which is the main remaining gap.

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 schema already documents each parameter. The description still adds meaning: the {entity}/{description} placeholder substitution, the max_credits approval workflow, the cost formula combining duration and variations, and the loop taxonomy that drives the loop and duration_sec choices. This is beyond the schema's field-level text.

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: 'Creates the event event_name on EACH entity in a folder (and subfolders) and generates each one's sound'. It explicitly distinguishes itself from create_event with folder_id for a single folder-wide sound, so an agent can route correctly 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?

Gives an explicit two-step workflow: call without max_credits to plan, show the user, then call again with max_credits equal to the cost. It also names alternatives and their conditions: create_event with folder_id for one folder sound, and generate_music for music tracks in the Music folder.

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