Skip to main content
Glama

Read the design laws

ui_laws
Read-only

The CEM design laws, cem-ui LAWS.md, the one rules document. Without a law, the whole file. With a number (1 to 16), that law as written. With words ("accent edge", "white"), every law that holds all of them.

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_laws"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawNoA law number, or words to find in the laws

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real behavior beyond that: results come back 'as written' and multi-word matching uses AND semantics ('every law that holds all of them'), which an agent could not infer otherwise. It omits return formatting/pagination, keeping it at 4.

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?

It is short and front-loads the resource identity before the argument modes, with no wasted sentences. The opening phrase 'the one rules document' is a bit opaque, but the trade-off for brevity is acceptable.

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?

For a one-parameter read tool with full annotation coverage and no output schema, the description covers all input modes and the matching semantics. The only gap is a hint at the actual return shape (e.g., a single text blob vs. a list of laws), which matters given no output schema exists.

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%, so the dual-mode nature of the 'law' parameter is already documented. The description still adds meaning: the numeric bound (1 to 16), concrete example terms, and the conjunction semantics for multiple words. That is substantive value beyond the schema, though the 80-character cap is left to the schema.

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?

The description identifies a specific resource (the CEM design laws / cem-ui LAWS.md) and the retrieval behavior in each mode, so an agent can tell this reads a canonical rules document rather than querying arbitrary content. It does not explicitly contrast itself with siblings like ui_search or ui_get, which keeps it off 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 Guidelines4/5

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

Three clear usage modes are spelled out: no argument returns the whole file, a number returns one law, words return the matching set. That is genuine when-to-use guidance for each input shape. It stops short of naming alternative tools for broader search needs, so 4 rather than 5.

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