Skip to main content
Glama

Audit hardcoded design tokens

audit_tokens

Flags hardcoded colors and raw pixel spacing in inline styles and styled-components templates, helping you replace them with design tokens for consistent theming.

Instructions

Flags hardcoded colors and raw pixel spacing in inline styles and styled-components templates, instead of design tokens.

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": {
      "rootDir": "<rootDir>"
    },
    "name": "audit_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootDirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. 'Flags' implies read-only reporting, but nothing states whether files are modified, what permissions or setup are needed, what the findings look like, or how false positives are handled for a codebase-scanning tool.

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?

A single front-loaded sentence with no filler; the contrast with design tokens is stated up front. The trailing 'instead of design tokens' reads slightly awkwardly but wastes nothing.

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?

No output schema exists, so the description should explain what a run returns (list of findings, locations, severity), and it does not. Combined with the undocumented rootDir and absent annotations, an agent knows the audit topic but not how to invoke it or interpret results.

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

Parameters2/5

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

There is one required parameter, rootDir, with 0% schema description coverage, and the description never mentions it — no indication that it is the directory root to scan, nor whether it accepts globs or relative paths. With low coverage the description should compensate and does not.

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?

Names a specific verb (flags) and specific targets (hardcoded colors, raw pixel spacing, inline styles, styled-components templates vs design tokens), which clearly separates it from audit_accessibility or audit_props_to_state. It does not explicitly say how it differs from run_full_audit or scan_components, so it stops short of a 5.

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?

There is no when-to-use or when-not guidance: nothing says whether to run this alone or as part of run_full_audit, nor whether prerequisites (config, token file) must exist. The agent must infer usage from the name and the 'audit' sibling family.

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