Skip to main content
Glama

Trace emitted sounds

sound_trace
Read-only

Records sounds the game emits in a chosen realm for a set duration or call limit, then removes the recorder without altering game behavior and returns captured sound events.

Instructions

Records the sounds the game emits through the EntityEmitSound hook during duration_s (or until max_calls), then removes its recorder: game behaviour is unchanged. Waits the whole duration (progress reported; can run as an MCP task). Result: {event, calls: [{t (s since start), sound: {name, original_name, level, pitch, volume, dsp, channel, flags, sound_time, pos, entity}}], recorded, total_calls, capped, duration_s, tracer_removed}. Checked live: realm server sees Entity:EmitSound and sound.Play run on the server; realm client sees the client's Entity:EmitSound and the server's sound.Play; surface.PlaySound (UI sounds) is seen by neither. Also not seen: sounds that a hook running before the recorder suppressed (returned a value). Example: {"duration_s": 3, "realm": "server"}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sound_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmNoRealm (default server).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.
max_callsNoStop after this many sounds (default 100).
duration_sNoRecording length in seconds (default 5).

Output Schema

NameRequiredDescriptionDefault
nextNo
noteNo
callsYes
eventYes
cappedNo
warningNo
recordedYes
next_callNo
duration_sNo
answered_byNo
total_callsYes
tracer_removedNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's main added value is the 'game behaviour is unchanged' guarantee plus the recorder's lifecycle: it installs a hook and removes it when finished. It also discloses that the call blocks for the full duration with progress reporting and MCP-task support, and gives the exact result shape. Minor gap: no mention of failure modes if the hook cannot be installed.

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, then prerequisites, then caveats, then the result shape, then an example. Dense but well ordered. The enumeration of every sound field is somewhat verbose given an output schema exists, which keeps it from a 5.

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?

An output schema exists, yet the description still clarifies the return shape and adds the empirically checked realm-by-realm visibility matrix, which no structured field conveys. For a behaviorally subtle recorder, this covers what an agent needs to call it correctly and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real semantics: duration_s is the wait length, max_calls is an early-stop cap, and the worked example shows a valid combination. It also ties realm to the observed behavior differences between server and client, which the schema only labels as an enum.

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?

Specific verb+resource ('Records the sounds the game emits through the EntityEmitSound hook') with scoping detail that separates it from sound_emit, hook_trace, and trace. The agent can tell this is a passive recorder, not a sound generator, without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

States the prerequisite explicitly: needs a loaded map via map_load, since server and client realms do not exist at the main menu. It also lists what will not be captured (surface.PlaySound and sounds suppressed by earlier hooks), which effectively defines the limits of when this tool is useful. No explicit alternative tool is named for those cases, keeping it below a 5.

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