Skip to main content
Glama

add_light

Adds a light at a woxel position with color, energy, range, shadows, and optional asset; batch up to 100 lights in one undo step and returns their IDs.

Instructions

Add a light at a woxel position. Returns the new element id.

color: '#rrggbb' (default warm). energy: brightness.
range: the Range Dungeondraft's own Light tool shows, which its saved map
  and a VTT export record too. get_element and list_elements report it
  in the same units.
asset: optional Lights gradient/cookie texture path.
snap: 'none', 'grid' or 'auto'; see get_snap_settings.

lights: up to 100 {x, y, color, energy, range, shadows, asset} entries,
  added as ONE undo step and all-or-nothing; the other arguments are then
  ignored. Returns `ids`. A light for an object: place_object(light=...).
  modify_object changes a placed light's color, energy, range and shadows.

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
snapNo
assetNo
colorNo
rangeNo
energyNo
lightsNo
shadowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses the important traits: batch mode is one undo step and all-or-nothing, other arguments are ignored when 'lights' is used, the cap is 100 entries, and the return shape differs ('ids' vs a single id). It stops short of stating failure modes or what happens when required positioning is omitted.

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-loaded with the core action and return value, then per-parameter notes in a compact list. Every line adds information, though the range explanation ('the Range Dungeondraft's own Light tool shows, which its saved map and a VTT export record too') is wordier than it needs to be.

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 9-parameter tool with no annotations and no output schema, the description covers the batch/undo semantics, the single-vs-batch return difference, and most parameter meanings. Gaps remain around shadows semantics and coordinate behavior when x/y are null, but nothing essential to calling it correctly 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?

With 0% schema coverage and 9 parameters, the description does substantial work: it gives the color format and default, defines energy and range (including that get_element/list_elements report the same units), explains the asset path, and enumerates the snap values with a pointer to get_snap_settings. It leaves x/y and shadows unexplained at the top level, so it does not fully compensate for the coverage 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 opening sentence gives a specific verb and resource ('Add a light at a woxel position') plus the return value ('the new element id'). It also distinguishes itself from place_object by noting that object-attached lights belong there instead.

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?

It routes the agent explicitly: use place_object(light=...) for a light on an object, and modify_object to change a placed light's color/energy/range/shadows. That is a clear when-to-use-this-vs-alternatives statement, not just implied context.

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