Skip to main content
Glama
Browser MCP Server

Browser MCP Server

emulate_device

Configure browser sessions to emulate device viewports, user agents, touch input, and scale with 50+ presets for responsive cross-device testing.

Instructions

Emulate a device (viewport, user-agent, touch, scale). Supports 50+ presets.

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": {
      "device": "<device>"
    },
    "name": "emulate_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYesDevice name (e.g. 'iPhone 15', 'Pixel 7', 'iPad Pro 11', 'Desktop Chrome')
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose that emulation covers viewport, user-agent, touch, and scale, plus the availability of 50+ presets. However, it does not explain persistence, whether existing pages are affected, how to undo emulation, or what happens when pageId is omitted.

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 description is two compact sentences with the core action and supported emulation facets front-loaded. No sentence is wasted, and the preset count adds useful scope information.

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?

This is a state-changing browser tool with no annotations and no output schema, so the description needs to clarify scope and side effects. It states the emulated facets but omits critical operational context such as page targeting, persistence, and reversibility.

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 coverage is 50%, with the device parameter explained and examples provided, while pageId has no description in the schema or the tool description. The description adds useful meaning for device by noting 50+ presets, but leaves the second parameter entirely undocumented.

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?

The description uses a specific verb and resource, "Emulate a device," and immediately scopes what emulation covers: viewport, user-agent, touch, and scale. This is clearly distinguishable from the sibling browser-automation tools, which do not perform device emulation.

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 explicit when-to-use guidance, no exclusions, and no named alternatives. The agent can infer that this is used for device emulation, but the description does not state whether it applies to the current page, a specified page, or future navigation.

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