Skip to main content
Glama

Undo Last Change

undo_last

Reverts the most recent volume or grouping change made in this home within the last 10 minutes, restoring every room's prior volume and group layout. Each change can be undone once; repeated calls step back through earlier changes. Playback, favorites, alarms and other settings are not affected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses key behavioral nuances: the 10-minute time limit, that each change can be undone only once, that repeated calls step backward through older changes, and that only volume/grouping states are touched while other settings remain unaffected. This is substantial added context and does not contradict any annotation.

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?

Three tight sentences, each earning its place: the first states the core action and scope, the second explains repeated-call behavior, and the third clarifies exclusions. The most decision-relevant information is front-loaded in the opening sentence.

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 zero-parameter, no-output-schema tool, the description supplies all necessary operational context: what counts as an undoable change, the time window, repeat behavior, and what is unaffected. Combined with the annotations, an agent has enough to invoke and reason about the tool correctly.

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 is empty, so the 0-parameter baseline applies. The description adds meaning by reinforcing that no selection is needed: the tool automatically targets the most recent relevant change in the home. There are no parameter details to document, so this dimension is well-served.

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 uses a specific verb ('Reverts') and names the exact resource ('most recent volume or grouping change'), with the scope ('in this home within the last 10 minutes') and what is restored ('every room's prior volume and group layout'). This clearly distinguishes it from sibling tools like set_volume or group_rooms, which create or apply changes rather than undo them.

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 implies when to use the tool: after a volume or grouping change, and within a 10-minute window. It also clarifies what it does NOT affect (playback, favorites, alarms), which gives the agent useful exclusionary context. It stops short of explicitly naming alternatives or saying 'use this when...', so it misses the top bar for explicit routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources