Skip to main content
Glama

Audit Design System Health

audit_system_health
Read-onlyIdempotent

Audit design system health by combining token drift and component parity into one sync score, revealing misalignment between Figma and your codebase.

Instructions

Run a comprehensive health check on your design system, combining token drift analysis and component parity into a single sync score.

This is an orchestrator tool that calls extract_tokens + audit_component_parity internally and merges the results into a unified health report.

Args:

  • figma_file_key (string): The Figma file key

  • github_repo (string): GitHub repo in 'owner/repo' format

  • token_file_path (string, optional): Path to token JSON file in the repo to diff against

  • storybook_manifest_path (string, optional): Path to stories.json for component parity

  • component_mapping_path (string, optional): Path to component mapping JSON

Returns: Health report with:

  • score (0-100): Overall sync health

  • tokenDrift: Token diff results (added, removed, changed)

  • componentParity: Component coverage results

  • warnings: Array of non-fatal errors encountered

  • timestamp: When the audit ran

Examples:

  • "How in sync is our design system?" → audit_system_health

  • "Give me a health report for our DS" → audit_system_health with all paths

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": {
      "figma_file_key": "<figma_file_key>",
      "github_repo": "<github_repo>"
    },
    "name": "audit_system_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
github_repoYesGitHub repository in 'owner/repo' format
figma_file_keyYesThe Figma file key
token_file_pathNoPath to the token file in the repo (JSON, W3C format) to compare against Figma tokens
component_mapping_pathNoPath to component mapping JSON in the repo
storybook_manifest_pathNoPath to Storybook stories.json in the repo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the bar is lower. The description adds genuinely useful behavior beyond that: it discloses the internal orchestration of two sub-tools, the merged-result semantics, and that 'warnings' captures non-fatal errors — a meaningful disclosure that partial failure is possible. It does not discuss cost, latency, or what happens when only some optional paths are supplied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and well structured, but the Args block duplicates the input schema field-for-field at 100% coverage, which is pure waste, and the Returns block is a bulleted list that could be tighter. Roughly a third of the text earns no new 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?

There is no output schema, so the Returns section documenting score, tokenDrift, componentParity, warnings, and timestamp is necessary and present. Combined with required-vs-optional params, examples, and orchestration notes, an agent has everything needed to invoke it correctly.

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 schema already documents all five parameters including formats like 'owner/repo' and W3C JSON tokens. The description's Args block largely restates those same descriptions verbatim, adding essentially no new semantics (e.g., it never explains what happens if token_file_path is omitted or how the optional paths affect scoring). Baseline 3 for a fully-documented 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 opens with a concrete verb-plus-resource ('Run a comprehensive health check on your design system') and explicitly states it is an orchestrator that internally calls extract_tokens and audit_component_parity. An agent can distinguish it from those two siblings without opening any 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?

The Examples section gives two natural-language triggers ('How in sync is our design system?', 'Give me a health report') that map user intent to this tool, and naming the two underlying tools implies this is the composite entry point. It stops short of explicitly saying 'prefer this over calling extract_tokens and audit_component_parity separately', so it is a 4 rather than a 5.

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