Skip to main content
Glama

Check layout

check_layout
Read-only

Measure the rendered frame and list layout problems a screenshot hides: off-center icons/content, empty elements taking space in flex/grid, clipped text, content cut by the frame edge, unknown Lucide / Material icons, broken images, small touch targets, light text without antialiasing; and on the board, a frame that, drawn at its real size (height hug), covers a note, frame or section, with the move that frees it.

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": {
      "fileId": "<fileId>",
      "frameId": "<frameId>"
    },
    "name": "check_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYes
frameIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral value by enumerating exactly what it inspects (off-center content, empty flex/grid elements, clipped text, unknown icons, broken images, small touch targets, antialiasing) and by explaining the board-level check and the remediation it returns. It does not say whether the checks are exhaustive or configurable, which keeps it below a 5.

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

Conciseness2/5

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

The whole definition is a single semicolon-chained run-on sentence that mixes rendered-frame checks with board-level checks, making it hard to scan. The purpose is reasonably front-loaded, but the enumeration is unstructured and would read far better as a short intro plus a bulleted list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only audit tool with no output schema, the description covers the 'what' quite thoroughly, including the board-level case. It is incomplete on parameter meaning and on the shape of the result, which matters because there is no output schema to fall back on.

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% for two required parameters, and the description never explains that fileId identifies the document and frameId the frame to measure. The word 'frame' appears in the body, giving only the faintest hint that frameId selects the target, and fileId is entirely unaddressed.

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 opening clause gives a specific verb and resource: 'Measure the rendered frame and list layout problems.' The phrase 'problems a screenshot hides' implicitly distinguishes it from get_screenshot-style tools, so an agent can see why it would pick this over a plain render.

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

Usage Guidelines3/5

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

Usage is only implied: you run it on a rendered frame to audit layout. There is no explicit when-to-use versus alternatives, no statement of prerequisites (e.g. the frame must already be rendered), and no indication of cost or whether it should be run before or after editing.

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.