Skip to main content
Glama

Resize window

resize_window

Resize the browser window containing a specific tab by setting its outer width and height in pixels, so you can test responsive layouts and breakpoints in a real Firefox-based browser.

Instructions

Resize the Zen window containing a tab (outer size in pixels), e.g. to test responsive layouts.

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

Input Schema

NameRequiredDescriptionDefault
tabIdYesTab ID from tabs_context / tabs_create.
widthYes
heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/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 disclosure burden. It does add one genuinely useful behavioral detail — that the size is the OUTER window size, not the inner viewport, which matters for responsive testing — but says nothing about permissions, window-state side effects (e.g. un-maximizing), effect on other tabs in the same window, or what happens on failure.

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?

A single sentence with zero filler that front-loads the action and the resource, then adds the unit qualifier and a use case. Nothing is redundant or buried.

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 a 3-parameter tool with no output schema and no annotations, the description covers purpose and sizing semantics but leaves the agent without confirmation of success/failure reporting or side effects on the window. It is minimum viable rather than fully 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 coverage is only 33%: tabId is documented in the schema while width and height carry only min/max bounds. The description partially compensates by clarifying that the two undocumented values are outer pixel dimensions, but adds nothing about units edge cases, clamping behavior, or the tabId's role beyond what the schema states.

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 names a specific verb and resource (resize the window containing a given tab) and adds scope via 'outer size in pixels'. It does not need to distinguish itself from a sibling because none of the listed tools performs resizing, though it also makes no explicit sibling differentiation.

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?

'e.g. to test responsive layouts' implies the intended use case but is illustrative rather than directive. There is no statement of when not to use it, no prerequisites (e.g. tab must be attached/active), and no alternatives for cases where resizing is inappropriate.

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