Skip to main content
Glama

resize_window

Emulate a browser tab's viewport size with mobile, tablet, desktop presets or custom dimensions, and set a light or dark color scheme for responsive layout testing.

Instructions

Emulate a viewport size (presets: mobile 375x812, tablet 768x1024, desktop = reset) and/or a color scheme.

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab ID to target. Omit to act on the current tab.
widthNoCustom width.
heightNoCustom height.
presetNo
colorSchemeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/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 of explaining behavior. It does disclose useful behavior: the tool emulates a viewport rather than resizing a real window, and 'desktop' resets the viewport. It leaves out key behavioral context, though: whether the emulation is per-tab or global, whether it survives navigation, whether it affects screenshots and rendering, and what (if anything) the tool returns.

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 a single front-loaded sentence, and the parenthetical carries only high-value enumerations (preset dimensions and reset semantics). There is no filler, and the wording can be skimmed quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given five optional parameters, no annotations, and no output schema, the description covers what is being changed and the meaning of the preset values well enough to call the tool correctly. The remaining gaps—precedence between width/height and preset, persistence of the emulation, and any return value—are meaningful but secondary for a simple settings tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 60%, and the description fills the most important gap: the meanings of the 'preset' enum values (375x812, 768x1024, and desktop as a reset), which the schema only lists as bare names. The 'and/or' wording also clarifies that the viewport and colorScheme parameters can be combined in one call. It adds no detail about width/height precedence when both a preset and custom dimensions are supplied.

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 states a specific action and object: emulate a viewport size and/or a color scheme. It also resolves the ambiguity in the name 'resize_window' by explaining that this is emulation, not a real window resize, and it gives the concrete preset dimensions. It does not explicitly contrast itself with sibling tools, but none of the listed siblings (navigate, computer, tabs_*) overlaps with viewport emulation, so no differentiation is really needed.

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 purpose makes it clear that you call this tool to change the viewport or color scheme, and the 'and/or' phrasing implies that either aspect can be set alone. However, there is no explicit statement about when to use this tool rather than alternatives (for example, when to use the tool instead of passing a device in navigate), no note on prerequisites, and no note on whether the setting persists across navigation.

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