Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_audit

Audit Figma designs for structural issues in naming, layout, components, tokens, and accessibility, returning violation counts and details to guide fixes.

Instructions

Structural audit: naming, layout, components, tokens, accessibility checks.

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": "figma_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
checksNoWhich audit checks to run
nodeIdNoRoot node ID to audit. Auto-extracted from figmaUrl if provided.
figmaUrlNoFigma design URL (e.g., 'https://www.figma.com/design/ABC123/File-Name?node-id=1817:2817'). Extracts file key and node ID automatically. Once set, persists for the session.
maxViolationsNoMax violations to return (default 100). Summary always reflects full counts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure. It implies a read-only audit by using the word 'audit', but it does not explicitly state whether the operation is non-mutating, whether it requires authentication or a connected plugin, what the response contains, or whether violations are truncated or summarized.

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 a single front-loaded fragment with no wasted words. It is concise, though its brevity contributes to gaps handled by other dimensions rather than by unnecessary wording.

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

Completeness2/5

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

For a four-parameter audit tool with no annotations and no output schema, the one-line description is insufficient. It does not explain return values, violation handling, required setup, or how it relates to the numerous sibling planning and token tools.

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 all four parameters are already documented in the input schema. The description names several audit check categories but does not add meaning beyond the schema or explain how the selected checks interact with nodeId/figmaUrl resolution or maxViolations behavior.

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 names a specific action and resource: a 'Structural audit' covering naming, layout, components, tokens, and accessibility checks. An agent can understand the tool's broad purpose, but the description does not distinguish it from closely named siblings such as figma_plan_naming, figma_plan_layout, and figma_plan_components.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives. It does not mention prerequisites such as needing a Figma URL, node ID, plugin connection, or whether this is intended to run before planning tools like figma_plan_naming.

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