Skip to main content
Glama

browser_emulate

Emulate network, CPU, viewport, mobile, user-agent, geolocation, CSS media, and HTTP-header conditions in a browser session to test how sites behave under varied constraints.

Instructions

Emulate network conditions, CPU throttling, viewport/mobile device metrics, userAgent, geolocation, CSS media features (colorScheme, reducedMotion, forcedColors, contrast), or extra HTTP headers on a session.

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

Input Schema

NameRequiredDescriptionDefault
contrastNoEmulate prefers-contrast media feature.
viewportNoDevice viewport override, or null to clear device metrics override.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).
userAgentNoUser-Agent override string, or empty string '' to reset (Chromium).
colorSchemeNoEmulate prefers-color-scheme.
geolocationNoGeolocation override, or null to clear.
forcedColorsNoEmulate forced-colors media feature.
reducedMotionNoEmulate prefers-reduced-motion.
extraHttpHeadersNoExtra HTTP headers sent on requests in this session's context (pass {} to clear).
cpuThrottlingRateNoCPU slowdown factor 1..20 (1 disables throttling; requires Chromium).
networkConditionsNoNetwork throttling preset ('none' clears throttling; requires Chromium).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.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. It lists what can be emulated and mentions 'on a session,' but does not explain persistence, reversibility, whether overrides apply until cleared, session auto-launch behavior, or Chromium requirements that appear only in the schema.

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?

The description is a single front-loaded sentence with no filler, and each listed capability maps to a parameter category. The dense enumeration is appropriate, though it could be slightly easier to scan with grouping.

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 an 11-parameter configuration tool with no annotations and no output schema, the description covers the capability surface but omits behavioral context such as persistence, clearing semantics, and session scoping details. The schema is rich, which offsets some of the gap, but the description alone is only minimally complete.

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 100%, so the baseline is 3. The description echoes the parameter categories but adds no reset syntax, constraints, or Chromium-requirement context beyond what the schema already fully documents.

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 uses the specific verb 'Emulate' and enumerates the resource categories: network conditions, CPU throttling, viewport/mobile metrics, userAgent, geolocation, CSS media features, and HTTP headers. It is clear what the tool does, though it does not explicitly distinguish it from siblings such as browser_resize for viewport changes.

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?

The description states the capabilities but gives no guidance on when to use this tool versus alternatives, when not to use it, or any prerequisites. An agent can infer it is for emulation/testing scenarios, but no explicit usage context or sibling routing is provided.

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