Skip to main content
Glama

scatter_objects

Randomly scatters assets across a rectangular battlemap area with varied scale, rotation, spacing, and optional exclusion zones to furnish lived-in spaces without manual coordinate placement.

Instructions

Scatter objects randomly over a rectangular area, with jittered scale and rotation.

This is the tool to reach for when a space should look furnished or lived-in
rather than placed-at-coordinates: foliage, rubble, crates, clutter, debris.
Placing twenty objects individually reads as a grid; this does not.

assets: one or more Objects asset paths from list_assets(category='Objects').
  Each placement picks one at random, so pass a few related assets for variety.
rect: [x, y, w, h] in woxels. 256 woxels = 1 tile.
count: how many to place (1-500).
scale_min / scale_max: random scale range per object.
rotation_min / rotation_max: random rotation range in degrees.
min_gap: minimum woxel distance between placements. Use it to stop clumping;
  too large for the area and you get fewer than `count` (the response says so).
color: optional '#rrggbb' applied to every placement, baked at placement
  and never changeable afterwards. Only colourable assets respond — see
  place_object.
seed: fixes the arrangement so a run is reproducible. Pass one when you want
  to adjust a single parameter and compare, rather than reshuffling everything.
layer: layer VALUE for every placement (multiple of 100, -500..900, or 1100
  with the Unofficial Patch). Same
  meaning as in place_object; 100 is the default.

wall_margin: keep each object's drawn art at least this many woxels off
  every wall (0 = art may touch, never cross). The rect bounds only
  centres, so without it a tree's crown lands over a wall.
avoid_rects: up to 32 [x, y, w, h] areas no object's art may reach into:
  a path, a doorway, a building.
With either, the reply counts `kept_out` attempts.

Returns the ids placed, how many attempts it took, and a note if it could not
fit the requested count.

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": {
      "assets": "<assets>",
      "rect": "<rect>"
    },
    "name": "scatter_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
rectYes
seedNo
colorNo
countNo
layerNo
assetsYes
min_gapNo
sortingNo
scale_maxNo
scale_minNo
avoid_rectsNo
wall_marginNo
rotation_maxNo
rotation_minNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.8/5.0
Behavior5/5

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

With zero annotations, the description carries the full behavioral burden and does so: it discloses that color is "baked at placement and never changeable afterwards" (an irreversible mutation), that an oversized min_gap yields fewer than count with the response reporting it, that wall_margin/avoid_rects can cause kept_out attempts, and that seed makes a run reproducible. It also states the return payload (ids, attempt count, shortfall note) in the absence of an output schema.

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 and the scenario guidance are front-loaded, then parameters are listed one per line with a short gloss each — no preamble, no repetition. For a 14-parameter tool this length is proportionate, and the sentences that look long (wall_margin, min_gap) are the ones carrying non-obvious failure semantics.

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?

Given 14 parameters, no annotations, no output schema, and 0% schema coverage, the description supplies what the structured fields omit: units, ranges, interaction between min_gap and achieved count, artwork-versus-centre distinction, and the return shape. An agent has enough to call this correctly and to interpret a shortfall result without further reference.

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 description coverage is 0% across 14 parameters, yet the description documents 12 of them with genuine meaning beyond the schema: woxel units ("256 woxels = 1 tile"), the [x, y, w, h] rect form, count range 1-500, layer values (-500..900 multiples of 100, 1100 with patch), avoid_rects cap of 32, and crucially the fact that rect bounds only centres. Only `sorting` is left unexplained.

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 opening line names a specific verb and resource ("Scatter objects randomly over a rectangular area") plus the distinctive modifier of jittered scale and rotation. The follow-up contrasts it directly with coordinate-by-coordinate placement ("Placing twenty objects individually reads as a grid; this does not"), so an agent can distinguish it from place_object/place_objects 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?

It gives a clear when-to-use condition — spaces that should look "furnished or lived-in" such as foliage, rubble, crates, clutter, debris — and an implicit when-not (deterministic coordinate placement). It also routes the agent to list_assets(category='Objects') for the assets prerequisite. It stops short of naming specific sibling alternatives such as place_objects or arrange_objects, so the routing is inferred rather than explicit.

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