Skip to main content
Glama

Get design rules

get_design_rules
Read-only

Universal design rules for building UI with design tokens: layout, flow (empty, loading and error states, dialogs), shape, surfaces, interaction and keyboard access, forms, content structure, states, typography, color and stack rules for Tailwind/React Native. The tokens say which values exist; these rules say how to use them. Call this before building or reviewing views. Without arguments it returns every rule as one line (61 rules); pass rules (slugs) or a category with detail "full" for the complete text including how to detect violations in code. Rule texts are in German. Categories: Layout, Fluss, Form, Fläche, Bedienung, Formular, Inhalt, Zustand, Typografie, Farbe, Stack.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesNoRule slugs (from the summary) to return in full.
scopeNo"universal" applies to every project, "stack" to one technology (e.g. Tailwind, React Native).
detailNo"summary" (default): one line per rule. "full": complete rule text. Defaults to "full" when rules are given.
categoryNoOnly rules from this category: Layout, Fluss, Form, Fläche, Bedienung, Formular, Inhalt, Zustand, Typografie, Farbe, Stack.
platformNoOnly rules that apply to this platform.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / category / description
      Previous value: -"Only rules from this category: Layout, Fluss, Form, Fläche, Bedienung, Zustand, Typografie, Farbe, Stack."New value: +"Only rules from this category: Layout, Fluss, Form, Fläche, Bedienung, Formular, Inhalt, Zustand, Typografie, Farbe, Stack."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description adds real context: the default return is one line per rule, that 61 rules exist, that full detail includes violation-detection guidance, and that rule texts are in German. A note on rate limits or ordering is absent, but this is substantive beyond the annotations.

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 purpose and the token-vs-rules distinction, then the invocation modes. It is a long single block and the 'Rule texts are in German' caveat and category enumeration are appended after the actionable content, but almost every sentence carries usable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no required parameters, the description carries the return-shape burden and does so: one line per rule by default, full text with detection guidance on request, plus the language of the content. An agent has everything needed to invoke it correctly on a first try.

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% and the category list, scope meaning, and the detail default ('Defaults to full when rules are given') are already stated in the schema. The description's parameter-adjacent content largely restates this, adding little syntax or semantic detail beyond the structured fields, so the baseline 3 applies.

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 a specific resource (universal design rules for building UI with design tokens) and enumerates the domains covered, then contrasts itself against the token tools: 'The tokens say which values exist; these rules say how to use them.' An agent can separate this from get_design_system without opening either 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?

It gives explicit timing guidance ('Call this before building or reviewing views') and explains the retrieval modes (no arguments = all 61 rules; rules/category with detail 'full' = complete text). It does not, however, state when to prefer the sibling token tools or any exclusion cases, so the guidance is clear but not exhaustive.

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.