Skip to main content
Glama

Validate button classes

validate_button_classes
Read-only

Check a Button className for variant conflicts and token misuse; optionally auto-fix it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
autoFixNoReturn fixed classes/modifiers (default true).
classNameYesButton className.
intentVariantNoprimary | outline | ghost.
activeModifiersNoCurrent modifiers, e.g. ["btn-neon"].
allowCustomClassesNofalse = hardcoded colors are errors, not warnings (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds what is checked and mentions optional auto-fixing, but 'auto-fix it' is ambiguous against a read-only annotation, and no return format or rate/auth behavior is disclosed.

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

Conciseness5/5

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

A single front-loaded sentence with no wasted words. It states the core action and the optional behavior compactly.

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

Completeness3/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 description should explain the return shape (issues, fixed classes, severity), but it does not. It also fails to clarify whether autoFix applies changes or merely returns them, leaving a meaningful gap for a validation tool.

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. The description adds no syntax or format detail beyond what the schema provides, making the baseline 3 appropriate.

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?

States a specific verb ('Check') and resource ('Button className'), plus the exact problems it looks for (variant conflicts and token misuse). It does not explicitly distinguish itself from the sibling generate_button_classes, so it falls 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 Guidelines3/5

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

The description implies the tool is for validating an existing Button className, but it never says when to use this versus generate_button_classes or any alternative. Usage is inferable but not guided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources