Skip to main content
Glama
threejs-devtools-mcp

threejs-devtools-mcp

by DmitriyGolub

set_renderer

Idempotent

Adjust live Three.js renderer settings such as tone mapping, exposure, color space, pixel ratio, and shadows; changes are tracked for undo and code edits but not saved on reload.

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 renderer settings: tone mapping, exposure, color space, pixel ratio, shadows.

Input Schema

NameRequiredDescriptionDefault
pixelRatioNo
sortObjectsNo
toneMappingNo0=None 1=Linear 2=Reinhard 3=Cineon 4=ACESFilmic 6=AgX 7=Neutral
shadowMapTypeNo0=Basic 1=PCF 2=PCFSoft 3=VSM
outputColorSpaceNosrgb, srgb-linear
shadowMapEnabledNo
toneMappingExposureNo
localClippingEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.5.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / localClippingEnabled / description
      Removed value: -"Enable local clipping planes"
    • changedInput schema / properties / outputColorSpace / description
      Previous value: -"Output color space (srgb, srgb-linear)"New value: +"srgb, srgb-linear"
    • removedInput schema / properties / pixelRatio / description
      Removed value: -"Device pixel ratio"
    • removedInput schema / properties / shadowMapEnabled / description
      Removed value: -"Enable shadow mapping"
    • changedInput schema / properties / shadowMapType / description
      Previous value: -"Shadow map type (0=Basic, 1=PCF, 2=PCFSoft, 3=VSM)"New value: +"0=Basic 1=PCF 2=PCFSoft 3=VSM"
    • removedInput schema / properties / sortObjects / description
      Removed value: -"Sort objects before rendering"
    • changedInput schema / properties / toneMapping / description
      Previous value: -"Tone mapping algorithm (0-7)"New value: +"0=None 1=Linear 2=Reinhard 3=Cineon 4=ACESFilmic 6=AgX 7=Neutral"
    • removedInput schema / properties / toneMappingExposure / description
      Removed value: -"Exposure level"
  2. First observedv0.4.1

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare it is a non-read-only, idempotent, non-destructive mutation, and the description adds genuinely new behavior: changes live only in the browser, are lost on reload, do not edit source, are recorded in pending_changes (which feeds code edits), and can be reverted. This is rich disclosure beyond the structured fields.

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?

Two sentences, tightly front-loaded: the critical persistence caveat and recovery path come first, followed by a compact list of adjustable settings. No filler.

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 mutation tool whose safety profile is covered by annotations and which has no output schema, the description supplies the key non-obvious facts (non-persistence, pending_changes, revertability). The remaining gap is documentation of the less obvious parameters like sortObjects and localClippingEnabled.

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?

Schema coverage is 38% (only toneMapping, shadowMapType, outputColorSpace are documented). The description names the setting categories (tone mapping, exposure, color space, pixel ratio, shadows), which recovers some of the five undocumented parameters, but adds no value mappings or formats beyond the schema's own descriptions.

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?

States a specific verb ('Change') and resource ('renderer settings') and enumerates the covered sub-fields (tone mapping, exposure, color space, pixel ratio, shadows). It is distinguishable from the read-only sibling renderer_info, though it does not explicitly contrast with renderer_settings or set_shadow, which also touch these domains.

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 operational context: this is a live-preview-only change, not persisted, recorded in pending_changes and undoable with revert_changes. It does not state explicit when-not conditions versus alternatives like set_shadow or renderer_settings, so it falls 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.