Skip to main content
Glama

Light or dark

set_color_scheme
Idempotent

Preview a page in light or dark mode to catch dark-theme contrast issues, then use auto to return to the user's preference.

Instructions

Shows the page as if the user preferred light or dark, without them changing anything. Dark mode is where contrast regressions hide, because it is the theme nobody screenshots. Use "auto" to hand it back.

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": "set_color_scheme"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is already covered. The description adds genuinely new context: the change is scoped to page rendering rather than the user's real preference, and "auto" restores the prior state, implying the emulation persists until reset. It doesn't say whether the setting survives navigations or whether a reload is needed.

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?

Three short sentences, front-loaded with the effect and closed with the reset instruction. The middle sentence is motivational rather than operational, but it is brief and directly justifies the tool's existence, so it mostly earns its place.

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 one-enum-parameter tool with annotations and no output schema, the description covers purpose, the reason to use it, and how to revert. The only meaningful omission is persistence/lifetime behavior of the emulated scheme across captures or navigations.

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?

The schema is a bare three-value enum with 0% description coverage, so the description must carry meaning — and it does for "auto" ("hand it back"), which would otherwise be ambiguous. light and dark are left to be inferred from the opening sentence, which is a minor gap but reasonable for self-evident enum values.

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 states a concrete effect on a concrete resource: the page is rendered as if the user preferred light or dark, without altering the user's actual preference. That is far more than a restatement of the name, though it never names or contrasts a sibling (e.g. set_viewport) to help an agent pick between page-level emulation tools.

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?

It supplies a clear use case — dark mode is where contrast regressions hide — and tells the agent how to undo the state with "auto". It stops short of explicit when-not guidance or naming an alternative tool for theme-independent checks.

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