Skip to main content
Glama
threejs-devtools-mcp

threejs-devtools-mcp

by DmitriyGolub

set_light

Idempotent

Modify a Three.js light's color, intensity, position, shadow casting, or hemisphere ground color in the live browser preview; changes are tracked for undo and code edits.

Instructions

[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Change a light: color, intensity, position, castShadow, groundColor (HemisphereLight).

Input Schema

NameRequiredDescriptionDefault
nameNoLight name
uuidNoLight UUID
colorNo#RRGGBB
positionNo[x, y, z]
intensityNo
castShadowNo
groundColorNoHemisphereLight ground color, #RRGGBB

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.5.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / castShadow / description
      Removed value: -"Enable/disable shadows"
    • changedInput schema / properties / color / description
      Previous value: -"Light color (#RRGGBB)"New value: +"#RRGGBB"
    • changedInput schema / properties / groundColor / description
      Previous value: -"Ground color for HemisphereLight (#RRGGBB)"New value: +"HemisphereLight ground color, #RRGGBB"
    • removedInput schema / properties / intensity / description
      Removed value: -"Light intensity"
  2. First observedv0.4.1

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already declare that this is a non-read-only, idempotent, non-destructive mutation. The description adds crucial context beyond them: changes are browser-only, are not persisted to source code, are lost on reload, appear in pending_changes, and can be undone with revert_changes.

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

Conciseness5/5

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

The first sentence front-loads the critical live-preview and persistence warning, and the second sentence compactly enumerates the adjustable properties. Every sentence earns its place with no redundant restatement.

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 mutation tool with no output schema, the description covers the essential behavioral traits an agent needs: browser-only scope, persistence loss, pending-change recording, and undoability. The remaining parameter identification is adequately handled by the schema.

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 71%, leaving intensity and castShadow without schema descriptions. The description compensates by naming those fields, and it adds useful semantics for groundColor by noting it applies to HemisphereLight.

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 description states a precise verb and resource: it changes a light and lists the specific light properties that can be modified. This distinguishes it from siblings such as set_object_transform, set_material_property, or set_shadow, which target different scene entities.

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

Usage Guidelines3/5

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

It clearly frames the tool as a live-preview-only operation whose effects are not saved and are lost on reload, which implies when to use it. However, it does not explicitly compare this tool with alternatives or state when not to use it.

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