Skip to main content
Glama

audio

Manage Godot audio playback: play, stop, adjust volume, pitch, or bus, and query playback status.

Instructions

音频操作。play: 播放(支持 AudioStreamPlayer/2D/3D)。stop: 停止。set_param: 设置参数(volume_db/pitch_scale/bus)。query: 查询播放状态。运行时操作,仅影响当前执行上下文。如需持久化,请编辑 .tscn 文件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
busNoplay/set_param: 音频总线名称
paramNoset_param: 参数名
valueNoset_param: 参数值(number for volume_db/pitch_scale, string for bus)
actionYes操作类型
node_pathNo音频节点路径
volume_dbNoplay: 音量(dB,-80 到 24)
pitch_scaleNoplay: 音调缩放(0.01 到 100)
stream_pathNoplay: 音频资源路径(res://...),不传则播放已配置的
project_pathNoGodot 项目目录路径(可选,默认使用 GODOT_PROJECT_PATH 环境变量或当前目录)
from_positionNoplay: 从指定位置开始播放(秒)
load_autoloadsNo是否加载 Autoload 上下文(默认 true)
Behavior4/5

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

The description adds behavioral context beyond annotations: it states that operations are runtime-only and do not persist, which is useful for the agent. While annotations indicate the tool is mutable and non-idempotent, the description enhances this with the temporary-scope trait. It doesn't fully detail side effects, but the annotation coverage lowers the bar.

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

Conciseness5/5

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

The description is compact and front-loaded with the action list using a clean, consistent format. Each sentence earns its place, and there is no wasted text. The structure makes scanning easy.

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 tool with 11 parameters and 4 actions, the description covers the action semantics and runtime scope, which is sufficient given the absence of an output schema. It doesn't elaborate on generic parameters (project_path, load_autoloads) but these are common across sibling tools and not critical to the audio-specific behavior.

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?

The input schema already has 100% parameter coverage, so the baseline is 3. The description adds value by grouping parameters with actions (e.g., 'set_param: volume_db/pitch_scale/bus' and 'play: volume_db/pitch_scale') which helps the agent map parameters to the intended action. This goes slightly beyond the schema but remains consistent with it.

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 description clearly states '音频操作' (audio operations) and lists four specific actions (play, stop, set_param, query) with their target resources (AudioStreamPlayer/2D/3D). This is a specific verb+resource structure that distinguishes it from sibling tools like animation or physics.

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 explicitly states that these are runtime operations affecting only the current execution context, and advises editing the .tscn file for persistence. This provides clear when-to-use and when-not-to-use guidance, effectively serving as an alternative to sibling tools for persistent changes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wgt19861219/godot-mcp-enhanced'

If you have feedback or need assistance with the MCP directory API, please join our Discord server