Skip to main content
Glama

check_layout

Check layout geometry for interactive targets smaller than 24px and off-screen nodes, returning a structured report regardless of findings.

Instructions

Check layout geometry from the real frame: interactive targets below the 24px minimum hit size, and signal-bearing nodes that fall outside the window (clipped / off-screen). Returns a structured report — a normal result whether or not it finds problems.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo
themeNo
descriptionYesThe UI description: a `fenestra/1` JSON object.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
offscreenNoSignal-bearing nodes that extend outside the window bounds. Measured against the window — exact for the authored format (which has no scroll viewports); a builder-built frame with a scroll container would over-report content scrolled below the fold.
small_targetsNoInteractive targets smaller than the 24x24 minimum hit size (WCAG 2.5.8).
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool returns a structured report and that results are normal whether problems are found. However, it does not state that the tool is read-only, describe side effects (likely none), or detail the report structure beyond a vague 'structured report'.

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 sentences long, front-loads the purpose, and contains no redundant or irrelevant information. Every sentence adds value.

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?

Given the presence of an output schema and three parameters, the description is incomplete. It does not explain the output schema, provide parameter context, or offer usage guidance. The tool's purpose is clear but the description lacks necessary context for correct invocation.

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

Parameters1/5

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

Schema coverage is low (33%) with size and theme lacking descriptions. The tool description does not explain any parameters, failing to compensate for the schema gap. Users are left guessing the meaning and required format of size and theme.

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 checks layout geometry for two specific issues: interactive targets below 24px hit size and signal-bearing nodes outside the window. This verb+resource combination distinguishes it from sibling tools like check_a11y, which focuses on accessibility.

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?

The description provides no guidance on when to use this tool versus alternatives such as check_a11y, describe_schema, or match_screenshot. It does not mention prerequisites or when not to use it.

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/richer-richard/fenestra'

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