Skip to main content
Glama

Run the laws check

ui_check
Read-only

Run cem-ui's laws check (scripts/laws.mjs, npm run laws) and return its table: each law's check, the count now, and the baseline it may not rise above. It checks cem-ui's own css/ and templates/; it takes no other repo. With a check name, every finding for that check (laws.mjs --list). Never records a baseline.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ui_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkNoOne check, e.g. "no-accent-edge" or "surface-ladder"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only/non-destructive safety, yet the description adds real value beyond them: it clarifies that no baseline is ever recorded (a key assumption for a 'laws check' tool), pins the scope to this repo's css/ and templates/, and describes the returned table columns. It stops short of describing failure semantics when a law exceeds baseline.

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 action and its output, followed by scope and the optional mode. Three short sentences and no filler; only minor density from the parenthetical file/npm references.

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 one optional parameter and no output schema, the description does the work of explaining the return shape (check, count now, baseline) and the alternate findings mode, so an agent can call it confidently. It could go slightly further on expected failure output or how baselines are defined.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the check parameter is already documented with examples, so the baseline is 3. The description adds meaning beyond the schema by explaining that supplying a check switches the tool into a per-finding listing mode (laws.mjs --list), which the schema does not convey.

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?

States a specific verb and resource ("Run cem-ui's laws check") and even names the underlying script and npm alias, plus both modes (full table vs. per-check findings). It does not explicitly differentiate from the sibling ui_laws, which an agent would have to infer, keeping it just below a 5.

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?

Scope exclusions are stated ("It checks cem-ui's own css/ and templates/; it takes no other repo") and the no-baseline-write behavior is flagged, which implies applicable context. However, there is no explicit when-to-use framing and no routing to alternatives such as ui_laws or ui_get.

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