Skip to main content
Glama

Get sizing

get_sizing
Read-onlyIdempotent

Observed width, height and min/max dimensions for one page/view, grouped by semantic component kind. Default returns component/property/value counts with source elements and parent context. Generic containers are excluded from context sizing. Set summary=true for the aggregate value matrix, including generic elements when component is empty. Values are captured CSS, not inferred tokens. 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_sizing"
  }
}

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 component examples.
versionYesExact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias.
componentNoOptional semantic component kind, such as button, input or card. 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": {
      +      "height": {
      +        "type": "integer"
      +      },
      +      "maxHeight": {
      +        "type": "integer"
      +      },
      +      "maxWidth": {
      +        "type": "integer"
      +      },
      +      "minHeight": {
      +        "type": "integer"
      +      },
      +      "minWidth": {
      +        "type": "integer"
      +      },
      +      "value": {
      +        "type": "string"
      +      },
      +      "width": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "width",
      +      "height",
      +      "minWidth",
      +      "maxWidth",
      +      "minHeight",
      +      "maxHeight"
      +    ],
      +    "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": {
      -          "height": {
      -            "type": "integer"
      -          },
      -          "maxHeight": {
      -            "type": "integer"
      -          },
      -          "maxWidth": {
      -            "type": "integer"
      -          },
      -          "minHeight": {
      -            "type": "integer"
      -          },
      -          "minWidth": {
      -            "type": "integer"
      -          },
      -          "value": {
      -            "type": "string"
      -          },
      -          "width": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "value",
      -          "width",
      -          "height",
      -          "minWidth",
      -          "maxWidth",
      -          "minHeight",
      -          "maxHeight"
      -        ],
      -        "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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly and idempotent, so the safety profile is covered. The description adds genuine context beyond that: values are captured CSS rather than inferred tokens, generic containers are excluded from context sizing, and IDs live in the raw capture space (idSpace=capture) rather than enriched layers. Those are useful disclosures, but nothing about volume, cost, or failure modes.

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?

Five dense sentences with the primary scope front-loaded and mode, exclusions, value provenance, ID caveat and pagination in a sensible order. Jargon-heavy but zero filler; slightly more compressed than ideal given how many distinct caveats are packed in.

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?

An output schema exists and the input schema is fully documented, so the description's job is to cover the non-obvious edges: it addresses the capture-vs-enriched ID space, the summary mode semantics, generic-container exclusion and pagination. An agent could call it correctly, with the only residual gap being no guidance on when to prefer a sibling sizing/style tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3; the schema already explains page, view, limit, offset, summary and environment thoroughly. The description contributes only the summary/component interaction (generic elements included only when component is empty), which is a small increment over the schema's own summary text.

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?

Opens with a specific verb+resource: observed width, height and min/max dimensions for one page/view, grouped by semantic component kind. It is distinguishable from neighbors like get_component_styles or get_spacing by naming dimensions and grouping, though it never explicitly contrasts itself with those siblings.

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 mode guidance (summary=true for the aggregate matrix, empty component to include generic elements) and a follow hasMore with offset instruction. It lacks explicit 'use this instead of X' routing against sibling tools such as get_spacing or get_page_components.

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