Skip to main content
Glama

Capture at breakpoints

capture

Detect horizontal overflow across multiple viewport widths and pinpoint the single element causing it, so front-end layout issues can be fixed quickly.

Instructions

Load a page at several viewport widths and report which of them overflow sideways, naming the single element responsible. Returns text; pass screenshots:true only when an image is genuinely needed, as each one is expensive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe page to look at, e.g. http://localhost:5173/pricing
viewportsNoNames (mobile, tablet, laptop, desktop), sizes like 414x896, or widths like 414
screenshotsNoAttach a PNG per viewport. Off by default.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the disclosure burden and does well: it explains the tool loads pages, checks multiple viewports, reports overflow, returns text, and warns that screenshots are costly. It does not mention default viewport behavior or exact output formatting, but it discloses the most relevant operational traits.

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 two concise sentences. The first sentence front-loads the core purpose and expected output, and the second sentence delivers cost-aware guidance for a specific parameter. Every clause adds useful information without redundancy.

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?

For a tool with three parameters and no output schema, the description covers the main behavior, return type, and parameter nuance. It leaves a minor gap by not specifying what happens when the optional viewports parameter is omitted, but an agent can still use the tool effectively with the provided information.

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

Parameters4/5

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

The input schema already documents all three parameters at 100% coverage, so the baseline is 3. The description adds valuable meaning on top by warning that screenshots are expensive and should only be requested when genuinely needed, which helps agents avoid unnecessary resource use. The url and viewports parameters do not need additional explanation because the schema already covers them.

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 states a specific action: load a page at multiple viewport widths, check for sideways overflow, and name the single responsible element. It clearly distinguishes this tool from a generic 'capture' by explaining the analysis it performs and the text result it returns.

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 gives clear context for when to use the tool and practical guidance for the screenshots parameter, saying to pass screenshots:true only when an image is genuinely needed because each image is expensive. It does not explicitly compare to the sibling tool 'diagnose', but the intended use case is well implied.

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

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/GeoCodeCrafter/frontend-eyes'

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