Skip to main content
Glama
shotluma-design-mcp

shotluma-design-mcp

by Aana11

Inspect design

inspect_design

Reads and measures a design's canvas, layer tree, real bounds, text overflow, fonts, overlaps, screenshot scale, asset status, and validation issues to diagnose layout problems before export.

Instructions

Read the current design: canvas, layer tree in paint order, real (browser-measured) bounds, text line counts and overflow, font usage, overlaps, screenshot display scale and asset status, plus validation issues. Measures with a layout render that never includes protected pixels.

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": {
      "project": "<project>"
    },
    "name": "inspect_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNoOne page; default all pages.
measureNoMeasure in the renderer (default true). false = geometric estimates only.
projectYesProject id returned by create_project/open_project in this session, or the project directory path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose meaningful behavior: measurement happens through a real layout render and 'never includes protected pixels', which tells the agent it is a safe, non-destructive read. It does not mention cost/latency of the renderer pass, payload size for large designs, or failure modes, so it stops short of full disclosure.

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 the verb and resource, then a compact enumeration of returned data, followed by one clarifying sentence on measurement behavior. Dense but every clause maps to real output; slightly long single-sentence enumeration keeps it from a 5.

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?

No output schema exists, so the description must describe return values and it does so thoroughly, covering geometry, text metrics, fonts, overlaps, assets and validation. The main omission is operational context: renderer cost, result size, and how this differs from validate_design and render_preview.

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 schema already documents project, pageId and measure. The description reinforces the measure flag by contrasting 'real (browser-measured) bounds' against 'geometric estimates only', but adds no format or default information beyond the schema.

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?

States a specific verb ('Read') and resource ('the current design') and then enumerates exactly what is returned: canvas, layer tree in paint order, measured bounds, text overflow, font usage, overlaps, screenshot scale, asset status and validation issues. An agent can tell this apart from render_preview or export_design from the description alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and the overlap with validate_design (this tool also reports 'validation issues') and render_preview is never addressed. Usage is only implied by the phrase 'Read the current design'.

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