Skip to main content
Glama

check_alignment

Audit a group of elements for alignment: detect misaligned edges, uneven gaps, size inconsistencies, and grid violations. Reports fractional pixel offsets and pixel-snap warnings.

Instructions

Pixel-perfect audit for a GROUP of elements (a selector's matches or a uid list): which edges/centers align and which element is off by how many px, gap rhythm with outliers ('gaps median 24px — e5→e6 is +7.5px'), size consistency, optional N-px grid conformance, and pixel-snap warnings (fractional device pixels render blurry). Reach for it on 'unevenly spaced', 'one card sits lower', 'the nav items look off', 'nothing lines up'. For ONE element's internal glyph centering use measure_element instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidsNoExplicit uids from a prior snapshot
gridUnitNoAlso check lefts/tops against an N-px grid (e.g. 8)
selectorNoCSS selector — audits ALL matches (2–40), e.g. ".nav li" or ".card"
toleranceNoPx within which values count as aligned (default 0.5)
Behavior4/5

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

The description fully discloses the tool's behavior: it checks alignment, gap rhythm, size consistency, grid conformance, and pixel-snap warnings. Since no annotations exist, the description carries the full burden; it is transparent but could explicitly state it is read-only and non-destructive.

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 a single well-structured paragraph that front-loads the main purpose, then lists capabilities, provides usage examples, and points to an alternative. Every sentence adds value; there is no wasted text.

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?

The description covers what the tool does, when to use it, and how it relates to siblings. Given the absence of an output schema, the description sets clear expectations about the audit results (alignment deviations, gap outliers, etc.). It stops short of specifying the exact output format, but the level of detail is sufficient for a 4-parameter tool.

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?

With 100% schema coverage, the baseline is 3. The description adds context beyond the schema by explaining the overall purpose and use cases for each parameter (e.g., 'audits ALL matches' for selector). It does not simply repeat schema descriptions, making it helpful for the agent.

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 uses specific verbs ('audit', 'align', 'checks') and identifies the resource as a GROUP of elements via selector or uids. It distinguishes from sibling tool 'measure_element' which handles single-element glyph centering.

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

Usage Guidelines5/5

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

Explicit when-to-use examples are provided ('unevenly spaced', 'one card sits lower', etc.), and an alternative is given: 'For ONE element's internal glyph centering use measure_element instead.'

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