Skip to main content
Glama

run_audit

Audit design system compliance with WCAG contrast, token completeness, and spec rules. Returns score, level, and structured issues.

Instructions

Run a deterministic design-system audit (WCAG contrast, token completeness, spec accessibility) and return structured findings.

Prereq: none — token/spec level, no Figma, no AI. Returns: { success, results: issues[], score, level, summary }. focus="contrast" narrows to token contrast pairs; focus="skill-compliance" checks real source files against ATOMIC_DESIGN.md/MOTION_VIDEO_DESIGN.md's checkable rules. vs analyze_design: run_audit = systematic spec/token compliance; analyze_design = AI vision review of a live Figma frame.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNoOptional focus area to narrow the audit scope. Examples: 'accessibility' (runs all 5 WCAG checks), 'token coverage' (checks which components use design tokens vs hardcoded values), 'naming' (validates spec name conventions), 'contrast' (color contrast only), 'skill-compliance' (checks ATOMIC_DESIGN.md composition/state/data-fetching/naming rules and MOTION_VIDEO_DESIGN.md token/reduced-motion/GPU-property rules against real source files), 'touch-targets' (interactive element sizing only). Omit to run the full default audit suite.
targetNoLocal path to scan when focus='skill-compliance'. Defaults to the current project root.
maxFilesNoMaximum source files to scan when focus='skill-compliance'.
Behavior4/5

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

With no annotations, the description bears full burden. It states determinism, no prerequisites, no Figma, no AI, and describes return structure. It explains different focus modes but doesn't cover all edge cases or error conditions.

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?

Well-structured with separate lines for purpose, prerequisites, return, and focus details. Front-loaded with main purpose. Slightly verbose but each sentence adds value.

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?

Given 3 parameters, no output schema, and no annotations, description is fairly complete. Covers return format, focus options, and sibling distinction. Could mention behavior for other focus values or error handling.

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

Parameters5/5

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

Schema description coverage is 100%, but description adds significant value: explains focus values 'contrast' and 'skill-compliance' in detail, clarifies target default, and implies format for maxFiles. Goes beyond schema.

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 clearly states the verb 'run' and resource 'audit' with specific domains: WCAG contrast, token completeness, spec accessibility. It explicitly distinguishes from sibling analyze_design, stating this is systematic spec/token compliance vs AI vision review.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Provides explicit when-to-use (systematic compliance checks) and when-not-to-use (use analyze_design for AI vision review). Also lists focus options like 'contrast' and 'skill-compliance' with their behaviors.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sarveshsea/memi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server