Skip to main content
Glama

chrome_emulate_media

Emulates CSS media types and features—such as print or dark mode—in a Chrome tab so you can test responsive styles and reset emulation when done.

Instructions

Set media type and features (e.g., dark mode, print)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chrome_emulate_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaNoMedia type: screen, print, or empty to reset
tabIdNo
featuresNoMedia features, e.g. [{name:'prefers-color-scheme', value:'dark'}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and does not meet it. It says nothing about scope (per-tab vs. global), whether the emulation persists until reset or the tab closes, whether it affects subsequent navigation, or what happens if features are omitted.

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 short sentence with zero filler, and the core capability is front-loaded. Its brevity is efficient rather than padded, though the parenthetical examples are the only elaboration offered.

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?

For a state-changing emulation tool with no annotations and no output schema, the description is too thin. It omits reset behavior, scope/persistence, and the relationship to the other emulation tools, leaving the agent to infer all of that from the schema.

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%: media (including reset semantics) and features are documented in the schema, while tabId is undocumented in both places. The description's examples add a little interpretive value by mapping 'dark mode' to a concrete feature usage and 'print' to a media type, but it adds no syntax or format detail beyond the schema.

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 gives a specific verb ('Set') and resource ('media type and features'), plus concrete examples ('dark mode, print') that make the effect on rendering mode immediately understandable. It does not explicitly contrast with sibling emulation tools such as chrome_emulate_device or chrome_emulate_network, so an agent must rely on the subject matter alone to tell them apart.

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 the device or network emulation siblings, nor on prerequisites such as needing an attached/active tab. The reset behavior (empty media) exists only in the schema, not in the description, so the agent gets no usage framing from the prose.

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