Skip to main content
Glama

Inspect Rendered Spacing

inspect-spacing
Read-onlyIdempotent

Analyzes rendered DOM rectangles and computed styles to find spacing issues, and returns capture instructions when states are omitted so you can fix critical findings.

Instructions

Check supplied rendered DOM rectangles/computed styles. Omit states to obtain capture instructions. Fix critical/serious findings; source alone is insufficient.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "inspect-spacing"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNosummary
statesNo
contextNo
densityNo
toleranceNo
nativeStatesNo
spacingScaleNo

Output Schema

NameRequiredDescriptionDefault
scoreNo
rubricNo
statesNo
statusYes
densityNo
summaryNo
findingsNo
nextStepNo
rubricStatusNo
captureScriptNo
missingWidthsNo
capturedWidthsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuine behavior beyond that: a two-mode operation (no states returns capture instructions vs. with states returns analysis) and a finding-severity model ('critical/serious') that implies prioritized output. It says nothing about limits, partial-data handling, or how findings are graded, which keeps it at a middling score.

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?

Three short sentences, roughly twenty words, with the purpose front-loaded and each clause carrying a distinct instruction (what it checks, how to invoke it without data, what to do with results). There is no filler or repetition.

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 tool with a very large nested input schema, seven parameters and zero schema descriptions, this definition is far too thin — it never explains the tolerance, spacing scale, density presets, or native state trees that clearly drive the analysis. The existing output schema offsets the need to describe return values, but the input side remains materially under-explained.

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% across 7 parameters, so the description carries the full burden, yet it only touches on 'states' via the omission hint. Six parameters — detail, context, density, tolerance, nativeStates, spacingScale — plus the deeply nested element/style fields are given no meaning anywhere in the description, leaving the agent to reverse-engineer them from the schema alone.

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 names a specific verb and resource: checking supplied rendered DOM rectangles and computed styles, which combined with the title 'Inspect Rendered Spacing' makes the intent clear. It does not, however, contrast itself against any sibling tool, so an agent must infer on its own that this is the rendered-spacing check rather than a design-system or rules lookup.

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?

'Omit states to obtain capture instructions' gives a concrete invocation pattern, and 'source alone is insufficient' tells the agent when this tool is required rather than reading code. What is missing is any explicit exclusion or named alternative — there is no statement of when not to use it or what to do if the state data cannot be captured.

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