Skip to main content
Glama

Resize viewport

browser_resize

Set a tab's viewport width and height to test responsive layouts across screen sizes.

Instructions

Set the viewport size of a tab (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>"
    },
    "name": "browser_resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthYes
heightYes
pageIdNo
sessionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is partly covered. Beyond that, the description says nothing about whether resizing reloads the page, whether the size persists across navigation, or how it interacts with screenshots – meaningful behavioral gaps for a tool that mutates browser state.

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 sentence with the core action front-loaded and no wasted wording. It is efficient, though its brevity edges into under-specification rather than disciplined concision.

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?

For a four-parameter mutation tool with no output schema, the definition should at least address units, the meaning of pageId/session, and whether the resize applies immediately and persistently. None of that is present, so an agent must guess at calling conventions despite the adequate annotation coverage.

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%, so the description carries the full burden and adds almost nothing. It never states that width/height are in pixels, nor explains what 'pageId' and 'session' mean or when they must be supplied, leaving two of four parameters entirely undocumented anywhere.

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 verb and resource ('Set the viewport size of a tab'), so an agent can immediately tell this is a viewport-mutation tool rather than navigation, screenshot, or tab management. It is not confused with any sibling, but it doesn't explicitly differentiate itself from siblings like browser_screenshot, which may also implicitly depend on viewport.

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 parenthetical '(responsive testing)' hints at the intended use case, which is more than nothing. However, there is no guidance on when to prefer this over other tools, no prerequisites, and no statement about whether it targets the active tab or a specific one.

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