Skip to main content
Glama

undo_scene

Revert a recent scene run to restore the prior smart home state; no action is taken if it cannot be undone.

Instructions

Undo a recent run of a scene. Has no effect if it can't be undone.

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": {
      "scene_id": "<scene_id>"
    },
    "name": "undo_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
scene_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare the operation is a non-read, non-idempotent, non-destructive write, and the description adds genuinely new behavior: a silent no-op when the run cannot be reversed. It stops short of saying what state is reverted, how far back 'recent' extends, or whether a failure is reported or swallowed.

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?

Two short sentences, front-loaded with the action and followed by the one caveat that matters. Nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema covers return values and the annotations cover the safety profile, so the main remaining holes are the undefined meaning of 'recent' and the undocumented scene_id. For a one-parameter mutation those gaps are notable but not disqualifying.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the only parameter, scene_id, is never mentioned in the description. The schema supplies just a UUID format with no hint that it identifies the scene whose latest run is rolled back, and the description does not fill that gap.

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?

States a specific verb (undo) and resource (a recent run of a scene), which lets an agent distinguish it from trigger_scene without opening the schema. It is slightly less precise than a 5 because 'recent' is never defined and no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus re-triggering the scene or doing nothing, and no prerequisites or permissions are given. The only guidance-like content is the failure caveat, which tells the agent what happens when it can't undo, not when it should undo.

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