Skip to main content
Glama

Resize the window

resize_window

Resizes the Chrome window for a specified tab to custom width and height, enabling responsive design testing at target viewport sizes.

Instructions

Resize the window containing the given tab. Useful for responsive testing.

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

Input Schema

NameRequiredDescriptionDefault
tabIdYesTab ID whose window to resize (MCP group)
widthYesTarget window width in pixels
heightYesTarget window height in pixels

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A3.5/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 burden. It implies a mutating, side-effecting operation on a real window but does not say whether the resize affects the window chrome versus the page viewport, whether the size persists after the tab closes, whether there are min/max bounds, or whether it requires a foreground/attached browser session.

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?

Two short sentences, action first, rationale second, with no filler or repetition of the tool title.

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 simple three-parameter tool with a fully documented schema and no output schema, the description is minimally sufficient. However, since no annotations exist, it leaves the mutation semantics and the resize-versus-emulate distinction unaddressed, which is the main thing an agent would still need.

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 100% and each of tabId, width, and height is documented as pixels or tab identity, so the baseline is 3. The description adds no unit or constraint detail beyond the schema (e.g., whether width/height are DIPs, outer window vs inner content size).

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 and resource: resizing the OS/browser window that hosts the given tab, which is distinct from resizing a viewport or emulating a device. It does not distinguish itself from siblings like emulate_device, which a reader might conflate with 'responsive testing', so it stops short of a 5.

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?

'Useful for responsive testing' implies a use case but gives no explicit when-to-use/when-not-to-use guidance or alternatives. It never says whether to prefer emulate_device for device-viewport testing versus this tool for physical window sizing, which is the most likely routing confusion.

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