Skip to main content
Glama

tool_action

Presses a button control on a Dungeondraft tool, including batch actions like Copy, Paste, Mirror, Delete, and Merge Walls that act on the current selection.

Instructions

Press a button control on a Dungeondraft tool.

This is the escape hatch for capabilities with no dedicated tool. Notably
SelectTool's batch operations, which act on the current selection (use
select_elements first): 'Copy', 'Paste', 'Mirror', 'Lock', 'Separate',
'Merge Walls', 'Make Prefab', 'Delete'.

Prefer a purpose-built tool where one exists — they validate input and
return ids. Call list_tool_controls to see what a tool offers.

Buttons that need a selection will report being disabled rather than
silently doing nothing.

Merge Walls can join compatible manual walls (draw_wall type=1). Walls
with mounted doors/windows are refused because native merging deletes
portals on absorbed walls. Generic actions do not enter bridge undo history.

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>",
      "control": "<control>"
    },
    "name": "tool_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYes
controlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that selection-dependent buttons report disabled instead of failing silently, that Merge Walls refuses walls with mounted doors/windows because native merging deletes portals, and that generic actions bypass bridge undo history. It stops short of saying what the call returns or how success is confirmed when no ids come back.

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?

The purpose is front-loaded in one line, then context, then alternatives, then caveats in descending priority. The control enumeration is dense but each item is a usable value, so no sentence is wasted.

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 mutation-capable, unannotated two-parameter tool, it covers preconditions, failure modes, and undo side effects well. Return behavior is the remaining gap, though deferring to list_tool_controls for the control catalog keeps the definition from bloating.

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 0%, so the description must compensate, and it largely does by enumerating concrete 'control' values ('Copy', 'Paste', 'Mirror', 'Lock', 'Separate', 'Merge Walls', 'Make Prefab', 'Delete') and naming SelectTool as a 'tool' value. It does not describe the expected format of the 'tool' string beyond the example, leaving part of the first parameter implicit.

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 gives a specific verb and resource: pressing a button control on a Dungeondraft tool. The follow-up frames it precisely as the escape hatch for capabilities with no dedicated tool, which separates it from purpose-built siblings like draw_wall or select_elements.

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?

It states when to reach for this tool (capabilities with no dedicated tool, notably SelectTool batch operations), when not to ('Prefer a purpose-built tool where one exists'), and the prerequisite chain ('use select_elements first', 'Call list_tool_controls to see what a tool offers').

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