Skip to main content
Glama

list_elements

Retrieve the IDs, positions, rotation, scale, and asset of objects, walls, lights, paths, portals, roofs, or texts on a Dungeondraft map so you can move, modify, select, or delete them.

Instructions

List elements currently on the map with their ids, positions, rotation, scale and asset.

kind: one of 'objects', 'walls', 'lights', 'paths', 'portals', 'roofs', 'texts'.
Use the returned ids with move_element / modify_object / delete_element / select_elements.

include_points: also return each wall's and path's polyline. Walls and paths
  are shapes, not points — without this they report a meaningless single
  position (a real hand-built map lists every wall at [0, 0]). Off by
  default because a map can hold hundreds of paths and the coordinates
  swamp the listing; get_element always includes them for one element.
offset: skip this many before returning, for paging through a large map.
include_bounds: give objects `opaque_bounds` too, as get_element does. It
  reads every texture's pixels once, so ask only when fitting something.

Objects carry `bounds`, [x0, y0, x1, y1] in woxels after scale and
rotation: where the canvas reaches.

`total` is how many elements of this kind exist, `count` how many came back,
and `truncated` says plainly that there are more. Read `total`, not `count`,
before concluding anything about the whole map.

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": "list_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoobjects
limitNo
offsetNo
include_boundsNo
include_pointsNo

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: it warns that walls and paths report a meaningless single position such as [0, 0] without include_points, discloses the pixel-reading cost of include_bounds, and explains the total/count/truncated contract so an agent does not mistake a page for the whole map. That is exactly the kind of trap-avoidance detail annotations would normally supply.

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?

Front-loads the purpose in one line, then treats each parameter in its own short block, so it scans well. It is on the long side and a few parenthetical asides ("a real hand-built map lists every wall at [0, 0]") could be trimmed, but they carry real signal rather than filler.

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?

There is no output schema, so the description supplies the return shape itself: the per-element fields, the bounds tuple format and its units, and the total/count/truncated triple. For a five-parameter read tool with zero annotation coverage, nothing an agent needs to call it correctly and interpret the result is missing.

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 kind (enumerating the seven legal values, which the schema does not), include_points, offset and include_bounds. Only limit is left undocumented — its default of 200 and its interaction with total/truncated are never explained, which is the one real gap in an otherwise strong parameter account.

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?

States a specific verb and resource plus exactly what each element carries: "ids, positions, rotation, scale and asset". It also implicitly separates itself from get_element by noting get_element always includes polyline points for a single element, so an agent can pick the right one 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?

Gives concrete conditional guidance: use include_points when shapes matter, use include_bounds "only when fitting something" because it is expensive, use offset to page a large map. It also routes the returned ids to move_element / modify_object / delete_element / select_elements. It never explicitly says when to prefer a sibling lister or what to do for a single element beyond the passing get_element mention, so it stops short of full when/when-not guidance.

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