Skip to main content
Glama

chrome_emulate_device

Sets viewport width, height, device pixel ratio, and mobile mode for a Chrome tab to test responsive layouts and device emulation.

Instructions

Set device viewport, scale, and mobile mode

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "chrome_emulate_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNo
widthYesViewport width
heightYesViewport height
mobileNoEnable mobile mode
deviceScaleFactorNoDevice pixel ratio (default: 1)

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?

No annotations are supplied, so the description carries the full burden, and it discloses almost nothing: it does not say emulation is applied per-tab, whether the setting persists across navigations, whether it affects subsequent tool calls, or that chrome_reset_device is needed to restore defaults. Only the bare 'what it sets' is conveyed.

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 front-loaded sentence with no filler or redundancy. It is efficient, though its brevity borders on under-specification rather than tight writing.

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-mutating tool with no annotations, no output schema, and an undocumented tabId, yet the description explains none of the targeting, persistence, or reset behavior an agent needs to use it safely. Adequate only in the narrowest sense that the agent knows it configures viewport emulation.

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 80%, so the schema already documents width, height, mobile, and deviceScaleFactor. The description restates those same fields and adds no format, range, or default details, and it never mentions the tabId parameter that controls which tab is affected. Baseline 3 is appropriate.

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?

States a specific verb ('Set') plus the three things controlled: viewport, scale, and mobile mode. An agent can tell this configures device emulation rather than, say, resolving the current device. It does not explicitly name what distinguishes it from chrome_reset_device, so it stops short of 5.

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?

No when-to-use or when-not-to-use guidance. Nothing tells the agent to pair this with chrome_reset_device to undo emulation, or that it must precede navigation/screenshot work to take effect. Usage must be inferred entirely from the name.

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