Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

resize_window

Resize the Chrome window containing a target tab to exact pixel dimensions for responsive testing across mobile and desktop viewports.

Instructions

Resize the Chrome window containing the target tab to specific pixel dimensions for responsive testing (e.g., 375x812 mobile or 1440x900 desktop).

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoTarget tab ID (defaults to active managed tab).
widthYesTarget window width in pixels.
heightYesTarget window height in pixels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 burden, and it does disclose one important behavioral fact: the resize applies to the entire Chrome window, not the tab's viewport. It says nothing about failure modes (dimensions exceeding screen bounds), effects on maximized/minimized state, or whether window position changes.

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 that front-loads the action and scope, then supplies the motivating use case and examples. Nothing is redundant or padded.

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 mutation with no output schema, the description covers what it does, on what target, and why. It falls short on behavior an agent would want before calling it blind: the tabId default is only in the schema, and there is no hint about return values or what happens if the resize cannot be applied.

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 100%, so the schema already documents width, height, and tabId, making 3 the baseline. The description adds modest value by giving concrete pixel examples (375x812, 1440x900) that signal realistic value ranges, but it adds no syntax or constraint details beyond that.

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 uses a specific verb and resource ('Resize the Chrome window containing the target tab') and names the concrete purpose (responsive testing). It is unambiguous even against siblings like switch_tab or tabs_create_mcp, though it never explicitly contrasts itself with them.

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 phrase 'for responsive testing' implies when to reach for this tool, and the mobile/desktop examples further anchor the intent. However, there is no when-not guidance, no mention of prerequisites (e.g., an active managed tab), and no alternative suggested when the goal is viewport emulation rather than window resizing.

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