Skip to main content
Glama

set_volume

Idempotent

Set an iOS device's media volume to a specific level (0-1) by simulating volume button presses and verifying each step on the system volume indicator. Returns the final level.

Instructions

Set the device's media volume by pressing the volume buttons toward the level, verifying each step on the system volume indicator. iOS volume has 16 steps, so levels round to the nearest 1/16. Returns the final level.

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": {
      "level": "<level>"
    },
    "name": "set_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelYes0 (mute) to 1 (max)
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior, and the description adds real context beyond that: the change is performed by physically pressing volume buttons and each step is verified against the system volume indicator. It also discloses quantization (rounding to the nearest 1/16) and that the final level is returned. It stops short of covering failure modes, such as what happens if the indicator is not visible.

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?

Three short sentences ordered from action, to mechanism/quantization, to return value, with no filler. Slightly efficient rather than maximally tight; the per-step verification detail is useful but borders on implementation trivia.

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 two-parameter tool with full schema coverage and annotations, the description supplies the mechanism, precision limit, and return value. Missing only edge-case behavior (unreachable indicator, timeouts), which is a minor gap for a simple setter.

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 earns extra credit by explaining that requested levels are not honored exactly on iOS and round to the nearest 1/16, which the schema's '0 to 1' range does not convey. The 'device' parameter is left entirely to the schema, which already documents its fallback chain.

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 gives a specific verb and resource ('Set the device's media volume') and even explains the mechanism (volume buttons) and verification method. No sibling tool deals with volume, so there is no ambiguity to resolve, and an agent can tell immediately what this does.

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 implied by the purpose rather than stated: nothing says when to prefer this versus, say, muting or leaving volume alone, and there are no prerequisites or exclusions. The note about iOS's 16 steps gives practical context for choosing a level, but that is not routing guidance.

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