Skip to main content
Glama

scene-set-door-state

Idempotent

Open, close, or lock a door on the scene. Get wall IDs from scene-get → walls[] where door=1 (normal door) or door=2 (secret door). Door states: 0=closed, 1=open, 2=locked. To let a token walk through a locked door: scene-set-door-state(wallId, 0) to unlock, then token-move with canOpenDoors=true. Secret doors (door=2) cannot be opened by token-move even with canOpenDoors — use scene-set-door-state directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYesDoor state: 0=closed, 1=open, 2=locked
wallIdYesWall ID of the door (from scene-get → walls[].id where door >= 1)
sceneIdNoScene ID (uses active scene if omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark the tool as non-read-only, idempotent, and non-destructive. The description adds useful behavioral context: door state values, normal vs. secret door behavior, and the token-move interaction. No contradiction with annotations.

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?

The description is moderately detailed but well-structured: purpose, wallId source, state legend, and a concrete workflow caveat. It is front-loaded and scannable, though the state-value sentence partially duplicates the parameter schema.

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 3-parameter mutation tool with no output schema, the description provides all essential invocation context: where wallId comes from, what states exist, and when to use this tool over token-move. Return values and failure modes are not covered, but they are not critical here.

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

Parameters3/5

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

Schema description coverage is 100%, so the description need not compensate for missing parameter docs. It does add meaningful context for wallId (how to obtain it and the door=1/door=2 distinction), but most parameter details are already fully captured in the schema.

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 first sentence names exact actions (open, close, lock) and the exact resource (a door on the scene), which clearly distinguishes it from the many actor, token, combat, and scene-management siblings. It also connects wallId to scene-get, making the target unambiguous.

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

Usage Guidelines5/5

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

Provides explicit when/when-not guidance: unlock with scene-set-door-state before token-move with canOpenDoors=true, and warns that secret doors cannot be opened by token-move at all. This directly routes the agent to the correct tool in the right sequence.

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