Skip to main content
Glama

Audit Component Parity

audit_component_parity
Read-onlyIdempotent

Compare Figma components against code components to find missing implementations, coverage gaps, and parity percentage for design system alignment.

Instructions

Compare Figma components against code components to find coverage gaps.

Fetches components from Figma and compares against a Storybook manifest or component mapping from GitHub. Uses fuzzy name matching (normalizes casing, strips spaces/hyphens) to find matches.

Args:

  • figma_file_key (string): The Figma file key

  • figma_page_name (string, optional): Filter Figma components to a specific page

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

  • storybook_manifest_path (string, optional): Path to stories.json in the repo

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

Returns: Coverage report with: matched components, missing in code, missing in Figma, coverage percentage, and Figma links.

Examples:

  • "How many of our Figma components are implemented?" → audit_component_parity

  • "Check parity for our design system" → audit_component_parity with storybook path

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

Input Schema

NameRequiredDescriptionDefault
github_repoYesGitHub repository in 'owner/repo' format
figma_file_keyYesThe Figma file key
figma_page_nameNoOptional Figma page name to filter components (e.g. 'Components')
component_mapping_pathNoPath to a JSON mapping file in the repo that maps Figma names to code names
storybook_manifest_pathNoPath to Storybook stories.json manifest in the repo (e.g. 'storybook-static/stories.json')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral context: it discloses that it performs remote fetches from Figma and GitHub, and that matching is fuzzy via case normalization and space/hyphen stripping, which directly affects how an agent should interpret results. It does not discuss auth/token requirements or rate limits for an open-world tool, so it is not a 5.

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?

The description is front-loaded with the goal, then mechanism, Args, Returns and Examples, so an agent can stop reading early and still act. The verbose Args block duplicates a schema that is already fully documented, which is the main wasted space, but nothing is padded for its own sake.

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?

There is no output schema, yet the Returns section enumerates the report contents (matched, missing in code, missing in Figma, coverage percentage, Figma links), so the agent knows what comes back. Combined with the matching-algorithm note, this is sufficient for a read-only audit tool; only the external-API auth/rate-limit story is left implicit.

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 baseline is 3, and the Args block largely restates the schema (page filter, mapping file purpose). The one real addition is framing the Storybook manifest and component mapping as alternative code-side sources, which the schema does not express, but it still never states whether both may be passed together or which wins if both are supplied.

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 first sentence gives a specific verb (compare) and both resources (Figma components vs. code components) plus the outcome (coverage gaps). That is enough to separate it from siblings like detect_unused_tokens or audit_system_health, though it never names a sibling or explicitly disclaims their territory.

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 block supplies concrete trigger phrasings ('How many of our Figma components are implemented?', 'Check parity for our design system') that map user intent to this tool, and the body makes clear it is fed either a Storybook manifest or a mapping file. There are no explicit 'do not use when' conditions or named alternatives, so it stops short of a 5.

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