Skip to main content
Glama

environment.color_scheme

Force prefers-color-scheme to dark, light, or no-preference on a page to test how sites render under different color modes.

Instructions

Force prefers-color-scheme to dark, light or no-preference.

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": {
      "scheme": "<scheme>"
    },
    "name": "environment.color_scheme"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemeYes
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, and "Force" is consistent with a mutating override, so there is no contradiction. However, the description omits the behavior an agent most needs: whether the override persists across navigations, which page/browser it applies to, and how to revert it. With only title-level annotations, the description carries most of the burden and does not meet it.

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?

A single front-loaded sentence with zero filler, which is the right shape for a low-complexity setter. Its terseness verges on under-specification, but that is penalized elsewhere rather than here.

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

Completeness3/5

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

For a three-parameter emulation setter with no output schema and minimal annotations, the description covers the core action adequately. It is still incomplete on revert path (environment.reset), override lifetime, and the target/browser scoping that the parameters expose.

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 description coverage is 67%, so target_id and browser_id are already documented in the schema; the description only restates the enum values that the schema also defines. It adds no meaning about scoping or what omitting target_id/browser_id implies beyond what the schema already says, so the baseline of 3 applies.

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?

"Force prefers-color-scheme to dark, light or no-preference" names a specific verb (Force) and a specific resource (the prefers-color-scheme media feature), and the enum spellings make the effect unambiguous. It is clearly separable from sibling emulation tools like environment.locale or environment.reduced_motion, though it never explicitly contrasts itself with them.

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?

There is no guidance on when to use this tool versus alternatives, and no mention of the closely related environment.reset sibling that presumably undoes the override. An agent must infer from the name that this is a browser-emulation control rather than a real user setting.

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