Skip to main content
Glama

PageHub

Generate button classes

generate_button_classes
Read-only

Canonical Button className + activeModifiers from intent (variant, shape, size). A starting point; extra classes can be appended.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ctaNoAdd CTA spacing / min-height (default true).
sizeNosm | md | lg (default md).
shapeNoe.g. rounded-box (default) or rounded-full.
variantNoprimary | outline | ghost (default primary).
emphasisNodefault | neon (primary only).
responsiveNoFull width on mobile, auto on desktop (default true).
extraClassesNoExtra classes to append.
includeModifiersNoAlso return activeModifiers (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds value by disclosing the output shape (className plus activeModifiers) and that results are extensible, but it says nothing about determinism, default behavior interactions, or how modifiers are derived.

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?

Two short sentences, no filler, with the primary output front-loaded before the caveat. Every sentence earns its place.

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?

With no output schema, the description correctly names the two returned values (className, activeModifiers) so the agent knows what to expect. For a tool with 8 optional parameters and a simple string output, this is largely sufficient, though the exact className/modifier format remains unstated.

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% with 8 well-documented parameters, so the schema carries parameter semantics. The description only restates variant/shape/size and adds no format or interaction detail beyond the schema. Baseline 3 is 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 (Generate) and resource (Button className + activeModifiers) and names the intent inputs it derives from. It is clearly distinguishable from CRUD siblings. It does not, however, differentiate itself from the close sibling validate_button_classes, which likely operates on the same className concept.

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?

'A starting point; extra classes can be appended' implies this is a generation step whose output feeds further work, which lightly signals when to reach for it. But there is no explicit when-to-use vs. the near-identical validate_button_classes sibling, and no stated prerequisites.

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