Skip to main content
Glama

setEnvironment

Configure 3D scene environment settings including background, lighting, fog, shadows, and post-processing effects for realistic or stylized rendering.

Instructions

Configure the scene environment: background, fog, tone mapping, shadows, and post-processing effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backgroundNoCSS color or HDRI URL for the background
hdriUrlNoURL to a .hdr or .exr HDRI file for image-based lighting. This sets both the environment map (for reflections) and optionally the background. Use with skyType:"hdri".
fogNoFog settings. Pass null to disable.
shadowsNoEnable/disable shadow rendering
toneMappingNoTone mapping algorithm
exposureNoRenderer exposure (default 1.0)
bloomNoBloom (glow) post-processing. Controls how bright/emissive surfaces bleed light.
chromaticAberrationNoChromatic aberration: splits RGB channels for a lens distortion look.
vignetteNoVignette: darkens screen edges for a cinematic look.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a mutation ('Configure') but doesn't specify if changes are reversible, require permissions, or affect performance. It mentions post-processing effects but omits details like default values, side effects, or error handling, leaving significant gaps for a tool with 9 parameters.

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?

The description is a single, efficient sentence that front-loads the purpose and enumerates key aspects without unnecessary words. However, it could be slightly more structured by grouping related parameters or adding brief context, but it avoids redundancy and stays focused.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (9 parameters, nested objects, no output schema, and no annotations), the description is inadequate. It doesn't explain return values, error conditions, or how changes persist (e.g., across scene saves). For a configuration tool with rich parameters, more context on behavior and integration with other tools is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, providing detailed documentation for all parameters, including nested objects. The description adds minimal value by listing categories like 'background' and 'post-processing effects', but doesn't explain interactions (e.g., hdriUrl overriding background) or provide usage examples beyond what the schema already covers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Configure') and the target ('scene environment'), listing specific aspects like background, fog, tone mapping, shadows, and post-processing effects. It distinguishes from siblings like setCamera or updateObject by focusing on environmental settings rather than camera or object properties, though it doesn't explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, such as setCamera for camera settings or updateObject for object properties. It lacks context about prerequisites, like whether a scene must be loaded first, or exclusions, such as not applying to specific object types.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/m-ai-geXR/mcp-webgpu'

If you have feedback or need assistance with the MCP directory API, please join our Discord server