Skip to main content
Glama

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 this as a readOnly, non-destructive, closed-world generation tool, so the safety profile is covered. The description adds that the output is a foundation to which classes can be appended, which is useful context but not rich behavioral detail (e.g., determinism, defaults).

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 with no waste; the return artifacts are front-loaded before the usage caveat. Every clause 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?

There is no output schema, so the description helpfully names what is returned (className + activeModifiers), and annotations cover the safety profile. Complete enough for an 8-param, all-optional generation tool, though the relationship to validate_button_classes is left 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% and every parameter already documents its own defaults and example values, so the schema does the heavy lifting. The description merely echoes variant/shape/size without adding syntax or meaning beyond the schema.

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) plus the inputs that drive it (variant, shape, size). It clearly identifies the tool as a class-string generator, though it does not explicitly distinguish itself from the sibling validate_button_classes.

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 a workflow context, but there is no explicit when-to-use guidance or mention of the alternative validate_button_classes. Usage is only weakly implied.

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