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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "product": "<product>",
      "version": "<version>",
      "page": "<page>",
      "view": "<view>"
    },
    "name": "get_spacing"
  }
}

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
pageYes
viewYes
limitYes
totalYes
offsetYes
hasMoreYes
idSpaceYes
productYes
summaryYes
versionYes
contextsYes
componentYes
truncatedYes
componentsYes
dimensionsYes
environmentYes
sampleLimitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • removedOutput schema / description
      Removed value: -"Structured result. Existing text or image content remains available in content."
    • addedOutput schema / properties / component
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / components
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / contexts
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "component": {
      +        "type": "string"
      +      },
      +      "count": {
      +        "type": "integer"
      +      },
      +      "property": {
      +        "type": "string"
      +      },
      +      "samples": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "childCount": {
      +              "type": "integer"
      +            },
      +            "children": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "type": "integer"
      +                  },
      +                  "label": {
      +                    "type": "string"
      +                  },
      +                  "tag": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "tag",
      +                  "label"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "element": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "id": {
      +                  "type": "integer"
      +                },
      +                "label": {
      +                  "type": "string"
      +                },
      +                "tag": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "tag",
      +                "label"
      +              ],
      +              "type": "object"
      +            },
      +            "page": {
      +              "type": "string"
      +            },
      +            "parent": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "id": {
      +                  "type": "integer"
      +                },
      +                "label": {
      +                  "type": "string"
      +                },
      +                "tag": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "tag",
      +                "label"
      +              ],
      +              "type": "object"
      +            },
      +            "path": {
      +              "type": "string"
      +            },
      +            "view": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "page",
      +            "view",
      +            "path",
      +            "element",
      +            "children",
      +            "childCount"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "component",
      +      "property",
      +      "value",
      +      "count",
      +      "samples"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / dimensions
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "columnGap": {
      +        "type": "integer"
      +      },
      +      "margin": {
      +        "type": "integer"
      +      },
      +      "padding": {
      +        "type": "integer"
      +      },
      +      "radius": {
      +        "type": "integer"
      +      },
      +      "rowGap": {
      +        "type": "integer"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "padding",
      +      "margin",
      +      "rowGap",
      +      "columnGap",
      +      "radius"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / environment
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / hasMore
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / idSpace
      Added value: +{
      +  "const": "capture",
      +  "type": "string"
      +}
    • addedOutput schema / properties / limit
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / page
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / product
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "component": {
      -      "type": "string"
      -    },
      -    "components": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "contexts": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "component": {
      -            "type": "string"
      -          },
      -          "count": {
      -            "type": "integer"
      -          },
      -          "property": {
      -            "type": "string"
      -          },
      -          "samples": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "childCount": {
      -                  "type": "integer"
      -                },
      -                "children": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "id": {
      -                        "type": "integer"
      -                      },
      -                      "label": {
      -                        "type": "string"
      -                      },
      -                      "tag": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "id",
      -                      "tag",
      -                      "label"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "element": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "id": {
      -                      "type": "integer"
      -                    },
      -                    "label": {
      -                      "type": "string"
      -                    },
      -                    "tag": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "id",
      -                    "tag",
      -                    "label"
      -                  ],
      -                  "type": "object"
      -                },
      -                "page": {
      -                  "type": "string"
      -                },
      -                "parent": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "id": {
      -                      "type": "integer"
      -                    },
      -                    "label": {
      -                      "type": "string"
      -                    },
      -                    "tag": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "id",
      -                    "tag",
      -                    "label"
      -                  ],
      -                  "type": "object"
      -                },
      -                "path": {
      -                  "type": "string"
      -                },
      -                "view": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "page",
      -                "view",
      -                "path",
      -                "element",
      -                "children",
      -                "childCount"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "value": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "component",
      -          "property",
      -          "value",
      -          "count",
      -          "samples"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "dimensions": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "columnGap": {
      -            "type": "integer"
      -          },
      -          "margin": {
      -            "type": "integer"
      -          },
      -          "padding": {
      -            "type": "integer"
      -          },
      -          "radius": {
      -            "type": "integer"
      -          },
      -          "rowGap": {
      -            "type": "integer"
      -          },
      -          "value": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "value",
      -          "padding",
      -          "margin",
      -          "rowGap",
      -          "columnGap",
      -          "radius"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "environment": {
      -      "type": "string"
      -    },
      -    "hasMore": {
      -      "type": "boolean"
      -    },
      -    "idSpace": {
      -      "const": "capture",
      -      "type": "string"
      -    },
      -    "limit": {
      -      "type": "integer"
      -    },
      -    "offset": {
      -      "type": "integer"
      -    },
      -    "page": {
      -      "type": "string"
      -    },
      -    "product": {
      -      "type": "string"
      -    },
      -    "sampleLimit": {
      -      "type": "integer"
      -    },
      -    "summary": {
      -      "type": "boolean"
      -    },
      -    "total": {
      -      "type": "integer"
      -    },
      -    "truncated": {
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "type": "string"
      -    },
      -    "view": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "product",
      -    "version",
      -    "page",
      -    "view",
      -    "environment",
      -    "truncated",
      -    "component",
      -    "summary",
      -    "total",
      -    "offset",
      -    "limit",
      -    "hasMore",
      -    "components",
      -    "dimensions",
      -    "contexts",
      -    "sampleLimit",
      -    "idSpace"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / sampleLimit
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / version
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / view
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "product",
      +  "version",
      +  "page",
      +  "view",
      +  "environment",
      +  "truncated",
      +  "component",
      +  "summary",
      +  "total",
      +  "offset",
      +  "limit",
      +  "hasMore",
      +  "components",
      +  "dimensions",
      +  "contexts",
      +  "sampleLimit",
      +  "idSpace"
      +]
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare a safe read-only, idempotent operation, and the description adds substantial behavioral context on top: the default response shape (component/property/value counts with element, parent and child examples) versus the summary matrix, the ID space caveat that IDs refer to the raw capture rather than enriched MCP layers, and the hasMore/offset pagination contract. It also pre-empts a likely misinterpretation by clarifying that margin is not a measured neighbor distance and that gap is container CSS.

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?

Purpose is front-loaded in the first sentence, and each subsequent sentence carries distinct information: response shapes, semantic caveats, ID space, pagination. The telegraphic style (e.g. 'idSpace=capture', 'Margin is not a measured distance to a neighbor') is dense but no sentence is redundant.

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 9-parameter tool inside a layered capture/ID system, the description covers the pitfalls an agent would otherwise hit: wrong ID space, summary mode, pagination, and misreading margin versus gap. An output schema exists, so return values need not be re-explained, though the optional component and environment filters are only covered by the schema.

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 schema baseline is 3, but the description goes further by explaining what summary actually changes in the response and how offset ties to hasMore. It adds nothing about component or environment beyond what the schema already says, keeping it just short of full marks.

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 first sentence states a specific resource and scope: observed padding, margin, row/column gaps and corner radii for one page/view. It clearly separates this from style/typography tools by naming the exact CSS properties observed. It never names the nearest sibling (get_sizing) or any other alternative, so differentiation is left partly to inference.

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?

It gives concrete operational guidance: set summary=true for the value-frequency matrix, use find_elements by label to resolve layer IDs, and follow hasMore with offset. Missing are any exclusions or pointing to alternatives such as get_sizing or get_component_styles when the agent actually wants raw style declarations rather than observed spacing.

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