Skip to main content
Glama

Get spacing

get_spacing
Read-onlyIdempotent

Observed padding, margin, row/column gaps and corner radii for one page/view. Default returns component/property/value counts with element, parent and child examples. Margin is not a measured distance to a neighbor; gap is CSS on the container. Set summary=true for the value-frequency matrix. IDs refer to the raw capture (idSpace=capture), not enriched MCP layers; use find_elements by label to resolve layer IDs. Follow hasMore with offset.

Input Schema

NameRequiredDescriptionDefault
pageYesCaptured page key returned by list_pages or get_application_manifest, not a URL or filesystem path.
viewYesExact stored profile key from list_pages.views (desktop, mobile, numbered profiles or a device label); do not pass the operating system here.
limitNoMaximum rows; default 20, clamped to 1–100.
offsetNoZero-based result offset for pagination. Negative values are treated as zero; default is 0.
productYesProduct key, for example finance-ozon-ru
summaryNoReturn the aggregate value matrix instead of ownership examples.
versionYesExact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias.
componentNoOptional component kind, such as button or container. Empty selects all kinds.
environmentNoEnvironment ID from the selected backend platform type in list_platforms.options.platforms[].environments[].id (backend implementation). Omit only when the version has one captured environment. Use captured pairs from list_platforms/list_versions for actual availability.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety bar is covered. The description still adds real behavioral context absent from the annotations: the default return shape (component/property/value counts with element/parent/child examples), the summary=true mode switch, the idSpace=capture caveat, and the hasMore/offset pagination contract.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but every sentence carries information: scope first, then default output, then the two semantic clarifications, then the ID caveat, then pagination. It is slightly packed into one paragraph, but nothing is redundant filler.

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?

With 9 parameters, an output schema present, and 100% schema coverage, the description supplies what structured fields cannot: the margin/gap distinction, ID-space caveat, and pagination follow-through. It is essentially complete for calling the tool, with only sibling-differentiation against get_sizing left implicit.

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?

Schema coverage is 100%, so the baseline is 3. The description earns above baseline by explaining semantics the schema does not: 'Margin is not a measured distance to a neighbor; gap is CSS on the container', and by clarifying that summary flips the output to a value-frequency matrix and that IDs refer to the raw capture rather than enriched layers.

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?

States a specific verb+resource with scope: 'Observed padding, margin, row/column gaps and corner radii for one page/view.' It's clear which measurement family this covers, though it doesn't explicitly differentiate itself from the sibling get_sizing, leaving the agent to infer the padding/margin vs sizing boundary.

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?

Gives concrete routing cues: 'Set summary=true for the value-frequency matrix' and 'use find_elements by label to resolve layer IDs', plus 'Follow hasMore with offset' for pagination. It lacks an explicit statement of when to reach for this versus get_sizing or get_component_styles, so it falls short of a full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources