Skip to main content
Glama

adventure_apply_layout

Idempotent

Apply a full area layout atomically, painting terrain zones, crosser paths, and multi-tile feature groups in one call from layout data.

Instructions

Apply a complete area layout atomically. Takes the full output of adventure_generate_layout (zones, crossers, suggestedFeatures) and paints everything in one call — terrain zones via the zone solver, crosser paths, and multi-tile feature groups.

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": {
      "area": "<area>",
      "layout": "<layout>"
    },
    "name": "adventure_apply_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYesArea resref
layoutYesJSON LayoutResult from adventure_generate_layout. Must contain zones, crossers, and suggestedFeatures arrays.
autoRepackNoIf 'true', automatically repacks the module after painting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4/5.0
Behavior3/5

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

Only idempotentHint is supplied, so the description carries most of the behavioral burden; it does add that application is atomic and names the three painting stages. It does not disclose overwrite semantics (does this replace existing terrain/features in the area?), failure/rollback behavior if the solver rejects part of the layout, or permission requirements, which are exactly the traits an agent needs before invoking a bulk mutation.

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?

Two sentences, front-loaded with the atomic-apply action and followed by the concrete coverage list. No filler, no restatement of the tool name, and the source tool is named in the first sentence where it matters most.

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 three-parameter mutation with full schema coverage and no output schema, the description is nearly sufficient: action, input provenance, and scope of effect are all present. The remaining gap is what the call yields or what state the area is left in, which matters slightly more here because no output schema documents the return.

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 coverage is 100% and the schema already describes area as an area resref, layout as the JSON LayoutResult containing zones/crossers/suggestedFeatures, and autoRepack's 'true' semantics. The description restates the same provenance and contents but adds no format, sizing, or validation detail beyond the schema, so the baseline of 3 applies.

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?

Uses a specific verb-plus-resource ("Apply a complete area layout") and enumerates exactly what gets painted: terrain zones via the zone solver, crosser paths, and multi-tile feature groups. It also names its counterpart (adventure_generate_layout) as the producer of the input, so the agent can distinguish this write-side tool from the generation-side sibling immediately.

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?

Clear context: it is used with the full output of adventure_generate_layout, ideally straight after generating, and it does everything in one call. It implies the alternative of not doing this piecemeal, but never states explicit exclusions or what to do if only part of a layout should be applied, so it stops short of the top band.

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