Skip to main content
Glama

Open, close or lock doors

set-door-state
Idempotent

Change Foundry VTT doors to open, closed, or locked by wall ID, with instant player updates and optional dry-run validation.

Instructions

Set doors (walls with door "door" or "secret") to open, closed or locked. Every id must be a door of the scene, else nothing changes. Players see the change at once. Needs the level "change" for scenes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYesThe new state
dryRunNoOnly check and report what would happen, including a refusal; change nothing
wallIdsYesIds of the door walls, 1 to 200
sceneIdentifierNoScene id or name; default the scene that is active for everyone

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.7/5.0
Behavior5/5

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

The description goes beyond annotations by revealing that players see changes immediately, that invalid ids cause a no-op, and that a scene permission level ('change') is required. These behaviors are not encoded in the annotations or schema, providing substantial added context.

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 sentences, no filler, and the core action is stated first. The validity constraint and permission requirement are included without redundancy, and each sentence earns its place.

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 tool with 4 parameters, 2 required, and no output schema, the description covers the action, constraints, permission requirements, and immediate effects. The schema fully documents parameters, so nothing essential is missing for an agent to call it 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?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful clarification by defining which wallIds qualify as doors ('door' or 'secret' types), which is essential to avoid invalid calls. It also implicitly aligns with the state enum. This extra value warrants a 4.

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 clearly states a specific verb ('set'), a resource ('doors'), and the possible outcomes ('open, closed or locked'). It also adds precision by defining doors as 'walls with door "door" or "secret"', which distinguishes this tool from generic wall manipulation tools in the sibling list.

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 clear context for when to use the tool: every id must be a door, otherwise nothing changes, and permission level 'change' is required. While it does not explicitly list alternative tools, no direct door-state sibling exists, so the conditional guidance and prerequisites are sufficient.

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