Skip to main content
Glama

ACTION_VOLUME

Control Android audio volume: set by percentage, read current level, adjust by one step, or mute/unmute chosen audio streams.

Instructions

音量:设置、读取、增减、静音。输出:volume_success, volume_current, volume_max。value 是百分比,而 volume_current/volume_max 是系统档位(如 0-15),两者不能直接比较。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
valueNo音量百分比 0-100(超出截断),action=set 时必填
actionYesset=按百分比设置;get=读取;up/down=调一档;mute/unmute=静音/取消
streamNo音频流;call 与 voice_call 相同,无法识别的值按 music(默认 music)
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it names the return fields (volume_success/volume_current/volume_max), warns that value is a percentage while volume_current/volume_max are system steps (e.g. 0-15) and thus not directly comparable, and explains that string arguments support ${var} interpolation with results returned as a variable-snapshot JSON. It omits any mention of permissions, whether mute is per-stream, or failure modes, which keeps it short of a 5.

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 compact and front-loads the operations before the output contract and the percentage caveat, so the most important information comes first. Minor noise: a doubled punctuation mark and a slightly clipped telegraphic style, but no sentence is wasted.

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 6-parameter tool with no output schema and no annotations, the description supplies the output field names, the key unit-mismatch warning, and the interpolation convention. Gaps remain around per-stream mute behavior, error handling for the require/on_error parameters, and the default time out, but nothing essential to a correct first call is missing.

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 baseline is 3, but the description adds real meaning beyond the schema by explaining the percentage-vs-system-step distinction that the schema only hints at, and by framing string parameters as ${var}-interpolatable. The stream and on_error semantics are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb set and resource: "音量:设置、读取、增厉、输出" (read, set, increment/decrement, mute), which maps directly onto what the tool does. It does not, however, differentiate itself from sibling audio tools like get_audio_info or ACTION_GET_AUDIO_STATE, so an agent must infer the boundary itself.

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

Usage Guidelines3/5

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

Usage is only implicit: the enumeration of operations implies when each mode applies, but there is no explicit statement of when to choose this tool over ACTION_GET_AUDIO_STATE or ACTION_MEDIA_CONTROL, and no exclusions are given.

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