Skip to main content
Glama

set_viewport

Reproduce mobile or tablet layout issues by changing the viewport size on the connected tab. Then re-inspect to see which CSS rules apply.

Instructions

Emulate a viewport size (and optional deviceScaleFactor) on the connected tab, then re-inspect. Use for responsive bugs — 'it breaks on mobile', 'the menu is wrong at tablet width', anything behind a media query — since resizing can change which @media rule wins. Follow with a fresh page_snapshot / explain_styles at the new size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthYesViewport width in CSS px
heightYesViewport height in CSS px
deviceScaleFactorNoDefault 1
Behavior2/5

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

No annotations are provided, so the description must disclose all behaviors. It mentions re-inspecting after setting the viewport but does not explain side effects (e.g., whether the page reloads, if other state is affected) or any constraints like permissions or rate limits.

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?

The description is concise and front-loaded with the main action. Every sentence adds value: the action, use cases, and follow-up steps. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description logically explains the tool's purpose and suggests next steps. It covers the key aspects for an agent to use the tool effectively, though more detail on return behavior would be beneficial.

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 describes the parameters. The description only mentions the optional 'deviceScaleFactor' and does not add meaning beyond the schema's default value of 1. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool emulates a viewport size and re-inspects, with specific verb 'Emulate' and resource 'viewport on the connected tab'. It provides concrete examples of responsive bugs, distinguishing it from sibling tools that focus on elements or styling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'Use for responsive bugs' and gives examples like 'it breaks on mobile'. It suggests following with page_snapshot or explain_styles, providing clear context. However, it does not list alternatives or cases where this tool should not be used.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mi60dev/visionaire-engine'

If you have feedback or need assistance with the MCP directory API, please join our Discord server