Skip to main content
Glama
shotluma-design-mcp

shotluma-design-mcp

by Aana11

Validate design

validate_design

Run a quality gate on a design project: checks schema, asset integrity, protected content, text overflow, fonts, empty zones and contrast, grading issues as errors that block export, warnings, suggestions or info.

Instructions

Quality gate: schema and references, asset existence and SHA-256 integrity, protected content (stretch, crop, rotation, occlusion, opacity — including a pixel comparison against an isolated reference render), text clipping/overflow/overlap, font availability, empty zones and contrast. Issues are graded error (blocks export) / warning / suggestion / info. Intentional decorative bleed is not an error.

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": "validate_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdsNo
projectYesProject id returned by create_project/open_project in this session, or the project directory path.
pixelCheckNoRun the protected-pixel comparison (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it discloses the four-level severity taxonomy (error/warning/suggestion/info), that errors block export, and that intentional decorative bleed is deliberately not treated as an error — an important false-positive suppressor. It does not state that the tool is read-only/non-mutating, nor what the pixel comparison costs in time, which are the remaining gaps.

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?

The gate concept is front-loaded and the check list and grading rule follow in a logical order with no filler. The middle sentence is a dense run-on of parenthetical checks, which is efficient but slightly harder to scan than a short list would be.

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?

There is no output schema, and while the severity taxonomy hints at what comes back, the description never says what an issue record contains (location, page, remediation) or whether a pass/fail summary is returned. For a validation tool with three parameters and no annotations, an agent can decide to call it but cannot anticipate the response shape.

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 coverage is 67%, with project and pixelCheck documented in the schema. The description adds meaning only for pixelCheck, clarifying that the pixel comparison is against an isolated reference render, and never mentions pageIds, so the scope of which pages get validated is undocumented in both places. Baseline 3 is appropriate given the partial coverage.

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?

The description names the operation as a 'Quality gate' and then enumerates the concrete domains checked: schema and references, asset existence and SHA-256 integrity, protected content, text clipping, font availability, contrast. That enumeration makes the boundary against siblings like inspect_design, render_preview and export_design unmistakable without needing to open a schema.

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?

The 'error (blocks export)' grading tells the agent this is the pre-export gate, which is a clear usage context. It stops short of explicitly naming export_design as the follow-on step or saying when validation can be skipped, so it is context without exclusions rather than a full routing rule.

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