Skip to main content
Glama

Set the music of a scene

update-scene-music
DestructiveIdempotent

Set or clear the music playlist and track for a scene. Omit a parameter to keep current value; pass null to clear it.

Instructions

Set or clear the playlist and the single track a scene plays when it is activated. A parameter left out keeps that field; null or an empty text clears it. playlist_sound alone picks a track of the playlist the scene already has. A new playlist keeps the track only when it belongs to it, otherwise the track is cleared and the result says so; the scene never points at a track outside its playlist. Scene, playlist and track are found by id or exact name (case ignored when unique). Needs the scene permission "create and change".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playlistNoId or name of the playlist; null or empty clears it. Leave out to keep it.
playlist_soundNoId or name of a track in that playlist; null or empty clears it.
scene_identifierYesId or name of the scene.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.8/5.0
Behavior5/5

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

The description goes well beyond annotations by disclosing idempotent-keep behavior (left-out parameters retain the field), destructive-clear behavior (null/empty clears), the ownership rule that a scene never points at a track outside its playlist, identifier resolution rules, the required permission, and that the result reports when a track is cleared.

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?

Every sentence earns its place: the main action is front-loaded, followed by precise behavioral rules, identifier resolution, and permission requirements. There is no redundancy or filler.

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?

For a mutation tool with only three parameters, no nested objects, and no output schema, the description is highly complete. It covers all parameter semantics, edge cases (null, empty, omitted, track ownership), identifier matching, and required permissions, leaving little for an agent to infer.

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?

Although schema coverage is 100%, the description adds crucial semantics: 'playlist_sound alone picks a track of the playlist the scene already has' and 'a new playlist keeps the track only when it belongs to it.' This explains the interdependency between playlist and playlist_sound beyond the schema's simple field descriptions.

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: 'Set or clear the playlist and the single track a scene plays when it is activated.' This clearly scopes the tool to per-scene music assignment and distinguishes it from siblings like set-scene-playlist or manage-playlists, which handle playlist-level operations.

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?

The description gives a clear context for use—configuring what music a scene plays upon activation—and explains the effect of omitted, null, or empty parameters. It does not explicitly name alternative tools or when-not-to-use conditions, but the intended context is unambiguous.

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

Deploy Server

Other Tools