Skip to main content
Glama

set_tool_layer

Set the drawing layer a Dungeondraft tool uses for all subsequent placements, such as rugs under furniture or bridges over water; check applied to confirm the layer took effect.

Instructions

Set which layer a tool draws on, for everything it places afterwards.

Use it to put a rug under furniture, a bridge over water, or roots below
the ground. Call get_tool_layer first to see the current layer and the
range.

Check `applied` in the response: Dungeondraft silently keeps its current
layer if it will not accept the one you asked for, and the response reports
what the tool actually holds rather than what you requested.

tool: e.g. "ObjectTool", "PathTool", "PatternShapeTool".
layer: layer VALUE, a multiple of 100 from -500 to 900 — not a menu index —
  or 1100 when the Unofficial Patch is loaded.

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": {
      "tool": "<tool>",
      "layer": "<layer>"
    },
    "name": "set_tool_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYes
layerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are supplied, and the description carries the full burden well: it discloses the silent-failure behavior of the host app (Dungeondraft keeps its current layer if the requested one is rejected) and tells the agent to verify `applied` rather than trusting the request. That is exactly the kind of non-obvious behavior an agent cannot get from structured fields.

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?

Front-loaded with the core action and its persistent scope, then usage examples, then the critical failure caveat, then compact parameter notes. Every line adds information; nothing is padding.

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?

With two required params, no output schema, and no annotations, the description covers action, range, persistence, failure mode, and the one response field that matters (`applied`). Only minor gaps remain, such as what happens when `tool` is not a valid tool name.

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?

Schema coverage is 0%, so the description must compensate, and it does: `tool` is illustrated with concrete values (ObjectTool, PathTool, PatternShapeTool), and `layer` is defined as a multiples-of-100 value in [-500, 900], explicitly not a menu index, with the 1100 extension when the Unofficial Patch is loaded.

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?

States a specific verb and object ("Set which layer a tool draws on") plus the crucial scope qualifier "for everything it places afterwards," which distinguishes it from a one-shot placement parameter. The sibling get_tool_layer is implicitly paired as the read counterpart.

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?

Gives concrete usage scenarios (rug under furniture, bridge over water, roots below ground) and an explicit prerequisite: call get_tool_layer first to see the current layer and the range. It lacks any explicit when-not-to-use condition or reference to other setters such as set_tool_option, which keeps it from a 5.

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