Skip to main content
Glama

Kalpana Designer

Check a design's layout

check_layout
Read-onlyIdempotent

Find layout problems in a design after layout: text over other text, layers cut off by a clipping frame or running off the canvas, text too small for the size the design is seen at, and text with too little contrast on what is behind it. Returns every issue at once, each naming its layers with a severity (error, or info that is often on purpose), and ok when none is an error (cut text is one). Read-only. Run it before finishing a design (edits already report the issues they cause), and confirm an issue with render_design before changing anything; to size text before placing it use measure_text. craft: true adds opt-in craft checks; ignore, allow_bleed and display_width quiet what is intended. Guide topic: critique.

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

Input Schema

NameRequiredDescriptionDefault
skipNoIssue kinds that are on purpose, left out of the report so `ok` can be true (empty_first_frame for a reveal at the end, small_text for a fine print line).
craftNoRun every craft check (all "info", never blocking): orphan, near_touch, raw_hex, empty_frame, chrome_drift, sliver, empty_band.
checksNoCraft checks to run, by name (see `craft`).
ignoreNoPairs of layer ids whose overlap is on purpose (a stamp over a headline): not reported.
intentNoOptional: a few words on why.
marginNoContent margin in px (one number, or [left, top, right, bottom]): report layers whose painted extent (strokes included) crosses it.
page_idYesThe page to work on, as returned by create_design.
allow_bleedNoLayers (and their children) that bleed past the page or their clipping frame on purpose: not reported.
display_widthNoHow wide the design is seen on screen, px. Sets the smallest readable text and what counts as large text. Default: 400 for 1080-wide square or portrait social posts, 1280 for 1920x1080, else the page width.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / skip
      Added value: +{
      +  "description": "Issue kinds that are on purpose, left out of the report so `ok` can be true (empty_first_frame for a reveal at the end, small_text for a fine print line).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the read-only/idempotent/non-destructive profile, and the description adds the meaningful extras: it returns all issues in one pass, each issue names its layers with a severity, 'info' is often intentional, and 'ok' means no errors (cut text counts as one). It does not mention cost or runtime, which for a full-page analysis pass would be useful, so not 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.

Conciseness4/5

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

Front-loaded with what it finds before any meta-guidance, and every clause carries information. It is a dense run-on of semicolon-joined clauses, though, which costs a little scannability.

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

Completeness5/5

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

Nine parameters, no output schema, yet the description covers return shape (all issues at once, layer names, severities, 'ok'), the severity model, and how the quieting parameters interact with the report. Nothing an agent needs to call and interpret it correctly is missing.

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 parameters are already well documented and the baseline of 3 applies. The description's summary ('ignore, allow_bleed and display_width quiet what is intended') adds a little connective meaning but also slightly mischaracterizes display_width, which sets readability thresholds rather than suppressing findings.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb ('Find layout problems') plus the exact issue classes it detects: overlapping text, clipping/canvas overflow, undersized text, low contrast. It is clearly distinguishable from render_design (visual confirmation) and measure_text (sizing before placement), both named inline.

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

Usage Guidelines5/5

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

Explicit lifecycle guidance: run it before finishing a design, note that edits already report the issues they cause, confirm an issue with render_design before changing anything, and use measure_text for pre-placement sizing. Alternatives and their selecting conditions are stated directly.

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