Skip to main content
Glama

browser_resize

Resize the browser viewport to specified width and height for responsive layout testing and consistent page rendering.

Instructions

Resize the browser viewport.

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

Input Schema

NameRequiredDescriptionDefault
widthYes
heightYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 behavioral burden and mostly fails to meet it. It does not say whether the change persists across navigation, whether it affects subsequent screenshots/snapshots, whether it triggers a responsive-mode reflow, or whether there are minimum/maximum bounds or permission requirements.

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 zero filler, which is appropriate in size. However, the terseness crosses into under-specification rather than disciplined conciseness.

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?

An output schema exists so return values need not be explained, but with no annotations and 0% parameter coverage the definition leaves unit semantics and side effects unknown. For a state-changing viewport operation in a large browser toolset, that is a meaningful gap.

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

Parameters2/5

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

Schema description coverage is 0% and the description adds nothing about width and height beyond the bare schema types. The critical missing semantic is the unit (CSS pixels vs. device pixels) and whether the values are absolute viewport size or deltas, leaving an agent to guess.

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 — resizing the browser viewport — which is unambiguous and clearly distinct from siblings like browser_navigate or browser_snapshot. It stops short of stating scope (tab-level vs. window-level, whether it persists across navigation), so it is clear but not fully differentiated.

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?

There is no when-to-use guidance at all: nothing says whether to call this before a screenshot, after navigation, or in response to a layout-dependent task. No prerequisites or exclusions are given relative to alternatives such as browser_take_screenshot or browser_configure.

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