Skip to main content
Glama

emulate

Emulate device presets or custom viewport sizes, dark/light color scheme, and offline mode in a browser tab to test responsive layouts and network conditions. Persists until reset or tab close.

Instructions

Emulate a device or conditions in a tab: device ("iphone-15", "pixel-8", "ipad", "laptop", "desktop") or width/height, dark/light color scheme, offline mode. reset=true undoes everything. Stays on until reset or the tab closes.

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

Input Schema

NameRequiredDescriptionDefault
resetNo
tabIdNoTab ID from tabs_list. Omit for the active tab.
widthNo
deviceNo
heightNo
mobileNo
offlineNo
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.
userAgentNo
colorSchemeNo
deviceScaleFactorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description still discloses important lifecycle behavior: emulation stays on until reset or the tab closes, and reset undoes everything. It does not explain precedence between device and width/height, whether emulation persists across navigations or reloads, or how mobile, userAgent, and deviceScaleFactor interact, leaving meaningful gaps for a stateful tool.

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?

The definition is front-loaded and compact: the first sentence states the core capability, and the next two cover reset and persistence with no filler. The dense parenthetical is justified by the need to enumerate device presets efficiently.

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, unannotated tool with no output schema, the description covers the primary emulation modes and lifecycle but omits several advanced parameters and precedence rules. An agent can invoke the common paths, but may need to guess on mobile, userAgent, deviceScaleFactor, or mixed device/dimension settings.

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 only 18% across 11 parameters, and the description adds useful meaning for device examples, width/height, colorScheme, offline, and reset. However, it leaves mobile, userAgent, deviceScaleFactor, and the device-versus-dimensions precedence undocumented, so it only partially compensates for the low structured coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb ('Emulate') and resource ('device or conditions in a tab'), and enumerates concrete device presets plus condition types such as width/height, color scheme, and offline mode. This clearly distinguishes it from navigation, clicking, or screenshot siblings without requiring the schema to be opened.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by listing the kinds of device and environment conditions that can be emulated, but it never explicitly states when an agent should choose emulation or when it should avoid it. No alternatives are named, though the sibling set has no obvious equivalent.

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