Skip to main content
Glama

set_world

Set a Blender scene's background and ambient lighting to a plain colour, preset, or HDRI image; control strength, rotation, camera visibility, and transparent renders.

Instructions

Set the background and ambient light: a plain colour or an HDRI image. color is '#rrggbb' or [r, g, b] (0-1). An explicit color wins over the preset colour. strength multiplies the light (1 is normal). With neither colour, preset nor hdri only the strength changes. hdri lights the scene with an image and gives metal and glass something to reflect. It is a path to an .hdr or .exr file, or the name of a studio light shipped with Blender: city, courtyard, forest, interior, night, studio, sunrise, sunset (the answer lists them in builtin_hdris; an unknown name gives the list in the error). rotation_deg turns it about Z. visible_to_camera=false keeps the HDRI for light and reflections, and the camera sees the plain color or preset colour instead (without them: the colour the world had). Works in eevee and cycles. A later call without hdri and with a colour or preset makes the world a plain colour again. transparent=true makes the render background transparent (alpha 0) and the world only lights the scene. The flag stays on until set_world is called again with transparent=false.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hdriNo
colorNo
presetNo
strengthNo
transparentNo
rotation_degNo
visible_to_cameraNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.7/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 well: it discloses error behaviour for unknown HDRI names, renderer support (eevee and cycles), the persistence of the transparent flag across calls, and that visible_to_camera=false keeps HDRI for lighting/reflection while the camera sees the plain colour. This is exactly the kind of state and side-effect disclosure a mutation tool needs.

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?

Dense but front-loaded: it opens with the core operation and then explains precedence, HDRI specifics, and flags in order of importance. Every sentence carries information, though the multi-clause final lines about transparent and visible_to_camera could be tightened slightly.

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?

For a 7-parameter tool with no annotations, no param descriptions and no output schema, the description supplies everything an agent needs: value formats, precedence, state persistence, error behaviour and renderer compatibility. Nothing material is missing.

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%, so the description must compensate, and it documents every parameter: color's '#rrggbb' or [r,g,b] (0-1) form, preset, strength as a multiplier, hdri as path or builtin name, rotation_deg as a Z turn, visible_to_camera, and transparent. No parameter is left ambiguous.

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 background and ambient light') with the two concrete modes (plain colour vs HDRI image), which cleanly separates it from sibling lighting tools like add_light, set_material and setup_lighting. An agent can tell what this mutates without opening the 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 clear precedence rules ('An explicit color wins over the preset colour'; 'With neither colour, preset nor hdri only the strength changes') and reset semantics ('A later call without hdri and with a colour or preset makes the world a plain colour again'). It does not explicitly route the agent away from alternatives such as add_light or setup_lighting, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.