Skip to main content
Glama

merge_walls

Join two matching open walls that share an endpoint into one wall in a single undoable step, preserving mounted doors and windows and their positions.

Instructions

Join two matching open walls sharing one endpoint, in ONE undo step.

The first ID survives; the second is removed. Mounted doors/windows retain
their IDs, appearance and positions. Returns id, removed_ids, portal_ids,
point_count. Supports automatic/manual wall runs and corners. Both walls
must be on the current level with matching styles. Rejects loops, cave walls,
T-junctions, overlaps and self-intersections before changing the map.
Each input wall may contain up to 512 points. Undo restores both original
walls and portal attachments; switch to their level before undo/redo.

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": {
      "ids": "<ids>"
    },
    "name": "merge_walls"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior5/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 so thoroughly: it discloses that only one undo step is recorded, that the first ID survives while the second is removed, that mounted doors/windows keep IDs, appearance and positions, that undo restores both walls plus portal attachments, and that the user must switch levels before undo/redo. The rejection list and the 512-point limit add further operational constraints an agent could not infer elsewhere.

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 key action and the one-undo-step guarantee are front-loaded, and subsequent sentences each carry a distinct constraint (ID survival, portal retention, return fields, rejection cases, point limit, undo caveat). It is dense and slightly long, but nearly every clause earns its place; only the return-field list is marginally expendable given no output schema exists to state it.

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 destructive geometry mutation with no annotations and no output schema, the definition supplies the safety profile (undo semantics, pre-validation rejections), the mutation model (which ID survives, what portals do), and even the return fields. An agent has everything needed to call it correctly and predict the outcome.

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% for the single `ids` parameter, so the description must compensate — and it does by revealing that the array is an ordered pair whose first element survives and second is removed, which is a semantically critical ordering rule absent from the schema. It stops short of stating that exactly two IDs are required or what happens with a different count, leaving a small gap.

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 opens with a specific verb and resource ("Join two matching open walls sharing one endpoint") and immediately names a distinguishing trait ("in ONE undo step"). That combination lets an agent separate this from draw_wall or add_portal without opening a schema.

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?

Preconditions are explicit and unusually actionable: both walls must be on the current level with matching styles, and loops, cave walls, T-junctions, overlaps and self-intersections are rejected before the map changes. What's missing is any routing to sibling tools for the cases this one refuses (e.g., how to join walls across levels), so there's clear context but no named alternatives.

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