Skip to main content
Glama

set_mode

Controls Music playback by toggling shuffle or repeat modes on or off, then returns the resulting now-playing state.

Instructions

Set Music shuffle or repeat: mode in shuffle|repeat, on=true/false (repeat on→all, off→off). Additive, reversible; needs Automation access for Music. Returns the resulting now-playing state.

Input Schema

NameRequiredDescriptionDefault
onYes
modeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only but non-destructive operation. The description adds useful context beyond that: the change is additive and reversible, it requires Automation access for Music, and it returns the resulting now-playing state.

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, stating the tool's purpose and parameter behavior in two efficient sentences with no wasted text.

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?

Although an output schema exists, the description still summarizes the return state. It also covers both required parameters, authentication needs, and reversibility, leaving no critical gap for an agent invoking this tool.

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 description coverage is 0%, so the description must carry parameter meaning. It specifies the allowed mode values (shuffle|repeat), defines on as true/false, and clarifies that repeat on means all while off means off.

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 states a specific verb and resource: setting Music shuffle or repeat mode. It is clearly distinguishable from broader sibling tools like music_control or set_volume because it names the exact Music feature and mode values.

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?

The description implies when the tool applies by naming shuffle and repeat modes, but it does not say when to use this instead of alternatives such as music_control. It gives no explicit exclusions or routing guidance.

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