Skip to main content
Glama
vola-trebla

tailwind-context-resolver-mcp

by vola-trebla

detect_css_conflicts

Detect conflicting Tailwind utility classes in a className string. Prevent silent CSS bugs before generating or reviewing component code.

Instructions

Detects conflicting Tailwind utility classes in a className string — e.g. applying both 'flex' and 'grid', or multiple position utilities. Use to prevent silent CSS bugs before generating or reviewing component code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
config_pathYesAbsolute path to tailwind.config.js or tailwind.config.ts
class_stringYesSpace-separated Tailwind class string to check for conflicts
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the core detection action and provides examples, but it does not disclose details such as reliance on the Tailwind config file, return format, or error behavior. This is a moderate disclosure gap for a tool without annotations.

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?

The description is two sentences, front-loaded with the primary action, and includes an example plus a clear use case. Every sentence earns its place with no redundancy or filler.

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?

Given that there is no output schema and no annotations, the description is somewhat incomplete. It explains the purpose and input but does not describe what the tool returns (e.g., a list of conflicts) or how conflicts are determined beyond the examples. This is a notable gap for a detection tool, but the purpose is clear enough for basic use.

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?

The input schema already provides 100% coverage of both parameters with clear descriptions, so baseline is 3. The tool description does not add meaningful parameter-level detail beyond what the schema states, though the examples ('flex' and 'grid') give a sense of expected class_string values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function with a specific verb ('detects'), a specific resource ('conflicting Tailwind utility classes'), and provides concrete examples ('flex' and 'grid'). This distinguishes it from sibling tools like validate_class_string, which likely validates validity rather than conflict detection.

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

Usage Guidelines4/5

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

The description gives clear context on when to use the tool: 'Use to prevent silent CSS bugs before generating or reviewing component code.' However, it does not explicitly mention when not to use it or compare it to alternatives, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vola-trebla/tailwind-context-resolver-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server