Skip to main content
Glama

set_ambient_light

Sets the map-wide ambient light color to control overall mood, such as night, lamplight, or neutral tone. Use it to decide baseline lighting instead of leaving flat white glare.

Instructions

Set the map's ambient light colour — the single biggest lever on mood.

A cold blue-grey reads as night or a dungeon; warm amber reads as lamplight
or dusk; a neutral grey lets the placed sources carry the colour. A fresh
map's white is flat glare rather than daylight, so decide rather than leave
it. Whatever you pick, look at a render afterwards: the mood is yours, but
every zone that hosts play has to read at the table. This is map-wide, not
a placed light source (use add_light for those).

It is also functional, not just cosmetic: Universal VTT exports carry
lighting into Foundry and similar tools, so this affects the map at its
destination.

    color: '#rrggbb'.

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": {
      "color": "<color>"
    },
    "name": "set_ambient_light"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load and does add real behavioral context: the setting is map-wide, it propagates into Universal VTT exports consumed by Foundry, and the author should verify a render afterwards. It stops short of stating whether the previous colour is overwritten or undoable, which for a mutation tool with zero annotation coverage is a remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core statement is front-loaded and the add_light disambiguation earns its place, but the middle is padded with aesthetic coaching ('the mood is yours, but every zone that hosts play has to read at the table') that repeats the preceding colour examples. The format spec is also buried in a trailing, oddly indented line rather than stated alongside the parameter.

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 one-parameter tool with no output schema and no annotations, the description covers purpose, scope, alternative, parameter format, and downstream export effects — enough for correct invocation. Only the overwrite/undo behavior is absent.

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 coverage is 0% and the single parameter is typed only as 'string' with no title or pattern, so the trailing "color: '#rrggbb'" is genuinely load-bearing — it supplies the accepted format the schema omits. No further semantics (valid range, alpha, named palettes) are offered, keeping it at 4 rather than 5.

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 ('Set the map's ambient light colour') and immediately bounds the scope ('This is map-wide, not a placed light source'). The contrast with add_light lets an agent distinguish the two lighting tools 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?

Gives concrete when-to-use guidance ('A fresh map's white is flat glare rather than daylight, so decide rather than leave it') and an explicit alternative with its selection condition ('use add_light for those' placed sources). Nothing about routing is left to inference.

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