Skip to main content
Glama

New sound event

create_event

Adds an event to an entity OR to a folder. The event name is WHAT happens (Move, Attack, Die, Land, Click, Undo, Level complete), never 'Sound' or 'Som'. A folder event applies to all entities inside it (e.g. 'Select' once for all units); an entity can have its own with the same name, which wins. Game actions with no owner (Undo, Victory, Level complete) go as events of the Interface folder. Ambience (wind, rain, forest) goes in the Ambience folder ("Ambiente" in Portuguese games). 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. Omit duration_sec and a loop is born at 12 s, a one-shot at 2 s. A TRACK in the Music folder follows the music limits instead (a longer prompt, duration up to the user's plan; see duration_sec; omitted: 1 min or the plan limit) and takes the same form as generate_music (genres, bpm, key_scale, time_signature...), saved on it so the site shows it before generating; the form is ignored for other sounds. Several tracks: create_tracks. Generate it with generate_music. On the site an event is a SOUND card (its variations are the versions): call it a sound when talking to the user. Creating an event spends no credits and generates nothing: generate it with generate_sounds (or generate_music). Returns the event id and its site page (url).

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

Input Schema

NameRequiredDescriptionDefault
bpmNoCompose ("Andamento"): tempo in beats per minute (60 to 180 sound best).
loopYesRequired. true for anything continuous the game repeats: ambience, music, engines, fire, water and movement cycles (footsteps, running, flapping). false for one discrete action (hit, click, cry, death).
modeNodescribe = only the prompt; compose = you also set the tempo, key and meter. Omitted: compose when bpm, key_scale, time_signature, genres or sung lyrics are sent, otherwise the track keeps its current mode.
nameYesWhat happens, in the game's language (Attack, Die, Click, Level complete). Up to 60 characters. If the owner already has an event with this name, that one is returned instead of a new one.
voiceNoSung tracks: who sings (gender), how deep (timbre) and up to 2 singing styles, written at the end of the prompt. Omitted: the model picks.
genresNoMusical style (the site's "Estilo musical"): ONE genre as a one-item list. Its words are written at the start of the prompt (empty = only your prompt).
lyricsNoThe lyrics, one line per row, parts marked with [Verse], [Chorus], [Bridge]... Only with instrumental=false.
promptYesWhat the sound should sound like, preferably in English, saved on the event for generating later. Up to 450 characters for a sound; up to 512 for a track in the Music folder.
qualityNodraft (fast and cheap, to test the idea), good, high (the approved default), max (large model; may be unavailable). The price per minute follows the level.
languageNoLanguage of the lyrics.
entity_idNoThe entity that owns the event (from get_game). Pass entity_id OR folder_id, never both.
folder_idNoThe folder that owns the event (from list_folders): every entity inside inherits it. Pass entity_id OR folder_id, never both.
key_scaleNoCompose ("Tom"): the key, e.g. "A minor".
vocal_levelNoSung tracks: the voice behind the band (back), even (balanced, default, adds nothing) or up front (front); written at the end of the prompt.
duration_secNoSounds (up to 30 s): one-shot at least 2 s (hits 2 s, cries and deaths 3-5 s); movement loops like footsteps 6-10 s; ambience 10-16 s. Omitted: loop 12 s, one-shot 2 s. A track in the Music folder: Whole seconds, 10 to 240 (4 min). The user's plan may allow less: the server refuses a longer track. Omitted: 1 min (or the plan limit, if lower).
instrumentalNofalse = sung, with the lyrics below.
time_signatureNoCompose ("Compasso"): beats per bar (2, 3 = waltz, 4 = most music, 6 = compound like 6/8).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / entity_id / description
      Added value: +"The entity that owns the event (from get_game). Pass entity_id OR folder_id, never both."
    • addedInput schema / properties / folder_id / description
      Added value: +"The folder that owns the event (from list_folders): every entity inside inherits it. Pass entity_id OR folder_id, never both."
    • addedInput schema / properties / name / description
      Added value: +"What happens, in the game's language (Attack, Die, Click, Level complete). Up to 60 characters. If the owner already has an event with this name, that one is returned instead of a new one."
    • changedInput schema / properties / prompt / description
      Previous value: -"Up to 450 characters for a sound; up to 512 for a track in the Music folder."New value: +"What the sound should sound like, preferably in English, saved on the event for generating later. Up to 450 characters for a sound; up to 512 for a track in the Music folder."
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, and the description goes well beyond them: it discloses the cost model, the server-side floors that will reject one-shots under 2 s and loops under 6 s, plan limits on track duration, and default durations when duration_sec is omitted. That is meaningful behavioral context. However it does not disclose what happens when name collides with an existing event (that behaviour lives only in the schema) and it never mentions permissions or whether the folder/entity must pre-exist, leaving some mutation consequences implicit.

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

Conciseness3/5

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

Front-loaded and information-dense with zero filler sentences, but it is a wall of capitals and parentheticals that is hard to scan, and the loop/duration rules are restated in both prose and schema descriptions. The Music-folder track section is long and partially duplicates guidance that belongs to generate_music and create_tracks, bloating a creation tool's definition.

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?

Given 17 parameters, a nested voice object and no output schema, the description covers the full lifecycle: naming convention, ownership, loop decision, duration, cost, and the required follow-up generation call, plus the return value (event id and site url). An agent could invoke this correctly without consulting anything else.

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 baseline is 3, but the description adds real semantic guidance the schema cannot: how to decide loop vs one-shot from the game action (footsteps are a walk cycle, a click is a one-shot), and concrete duration ranges by category (2 s hits, 3-5 s deaths, 6-10 s movement loops, 10-16 s ambience). It also explains that the music-track form fields are ignored for non-Music sounds, which is a non-obvious interaction between parameters.

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?

Opens with a specific verb and resource ("Adds an event to an entity OR to a folder") and immediately disambiguates what an event is: a sound card, named after what happens in the game. It also clearly distances itself from generate_sounds, generate_music and create_tracks, so an agent can route correctly without comparing schemas.

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?

Provides explicit routing rules: ownerless game actions go on the Interface folder, ambience goes in the Ambience folder, music tracks belong to create_tracks/generate_music rather than here. It also states the follow-up step ("Creating an event spends no credits and generates nothing: generate it with generate_sounds"), which is exactly the when-to-use-next guidance an agent needs.

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