Skip to main content
Glama

fill_region

Paint a rectangle or polygon region with a terrain slot in woxel coordinates, optionally assigning an asset and paint strength. Use it for localized fills instead of whole-level changes.

Instructions

Fill only a region with a terrain slot (e.g. floor a single room), in woxel coords.

Unlike fill_terrain (whole level), this paints inside a shape. Provide ONE of:
  rect: [x, y, w, h] axis-aligned rectangle, or
  points: [[x,y], ...] a polygon (3 to 2000 points). Split a larger outline
    into polygons that share edges; a shared edge paints each pixel once.
asset: optional Terrain asset to assign to the slot first.
rate: paint strength 0..1 (1 = fully replace). Undoable via undo().

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fill_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNo
rectNo
slotNo
assetNo
pointsNo

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 disclose meaningful behavior: the operation is undoable via undo(), rate is a 0..1 paint strength where 1 fully replaces, and a shared edge paints each pixel once. It omits what happens when both rect and points are supplied or neither is, and says nothing about failure modes or resulting state, leaving some mutation semantics unstated.

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 the sibling contrast, then a compact indented enumeration of the two mutually exclusive shape inputs. Every sentence carries information an agent needs; nothing is redundant or padded.

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 5-parameter mutation tool with zero annotation and zero schema coverage, the description covers shape inputs, rate, asset, undoability, and the polygon-splitting strategy well. The remaining gap is slot semantics and the ambiguity between the schema's "no required parameters" and the description's "Provide ONE of" requirement.

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 description coverage is 0%, so the description must compensate, and it does for most parameters: rect is [x,y,w,h] axis-aligned, points is a polygon of 3 to 2000 points (adding a minItems of 3 not present in the schema), asset assigns a terrain before filling, rate is 0..1. The critical "Provide ONE of" exclusivity rule is pure added value. However, slot is never explained beyond being the target of the fill, and its default of 0 is left unaddressed.

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?

"Fill only a region with a terrain slot ... in woxel coords" gives a specific verb, resource, and coordinate convention. It then explicitly contrasts itself with the sibling fill_terrain ("Unlike fill_terrain (whole level)"), so an agent can separate the two without opening either schema.

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?

The description names the alternative tool and the exact condition that selects this one: whole level vs. inside a shape. It also gives practical usage guidance for the harder case (split a larger outline into edge-sharing polygons), which tells the agent how to drive the tool successfully rather than just when to pick it.

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