Skip to main content
Glama

Design Drift

Check code against the design

check_design_drift
Read-onlyIdempotent

Check UI code (CSS, HTML, JSX/TSX, Tailwind classes) against the project's locked design. Lists every color, font, font size, corner radius and spacing value that is off the design, and anything that breaks the brand feel (drop shadows on a flat brand, gradients, rounded or pill shapes the brand never uses, bounce or slow motion), with the line and the value to use instead. Run it after writing or changing UI code.

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>",
      "files": "<files>"
    },
    "name": "check_design_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesThe files to check
projectYesThe project code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish that this is read-only, idempotent, closed-world, and non-destructive. The description adds valuable behavior beyond that: it lists every offending value with the line and the recommended replacement, and covers subjective brand-feel violations. It does not describe error cases or permissions, so it stops short of the highest score.

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 description is front-loaded: what is checked, what is reported, and when to run it. The long parenthetical list of brand-feel violations is dense but useful; it is slightly verbose rather than wasteful.

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?

With no output schema, the description does the important work of explaining that violations are reported with line and replacement value. Inputs are simple and annotations cover safety. Minor gaps remain around what happens if the project has no locked design or if files are empty.

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 input schema already documents the parameters. The description clarifies supported file types but does not add meaning to the 'project' parameter or to the path/content structure beyond what the schema provides. Baseline 3 is appropriate.

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 and resource: checking UI code (CSS, HTML, JSX/TSX, Tailwind classes) against the project's locked design. It also enumerates the kinds of drift it detects, making the tool's scope unmistakable relative to design extraction or file retrieval 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?

Explicitly says to run it after writing or changing UI code, giving a clear trigger condition. It does not state when not to use it or name alternatives, but the usage context is strong enough for correct selection.

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.