Skip to main content
Glama
vitkuz573

tailwind-mcp

by vitkuz573

Find conflicting Tailwind classes

tailwind_conflicts
Read-only

Detect which Tailwind class wins when multiple utilities set the same CSS property, and see which ones are silently overridden based on class order.

Instructions

Report which class wins when several set the same CSS property, and which ones are silently overridden. The winner follows Tailwind's own class order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNoAbsolute path to the project to inspect. Defaults to the server's working directory. Use it when the Tailwind project is not the current working directory.
candidatesYesThe class list to check, e.g. ['p-2', 'p-4', 'text-sm', 'text-lg']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds real behavioral context: overrides happen 'silently' and the tie-break follows Tailwind's own class order. It omits anything about output shape or scale limits, but it goes beyond what the annotations state.

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 sentences, no filler, with the outcome (which class wins, which is overridden) front-loaded and the tie-break rule stated immediately after. 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?

There is no output schema, so the description has to convey the return value, and it does so at a high level (winner plus overridden classes) without describing the result's structure or field names. For a two-parameter, read-only tool this is nearly complete, with only the response shape left unspecified.

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% -- both 'project' (path semantics, default working directory) and 'candidates' (with an example list) are fully documented in the schema. The description adds no parameter-level detail, so the baseline 3 applies.

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?

States a specific verb and resource: it reports which conflicting Tailwind class wins and which are silently overridden. That is precise enough to separate it from siblings like tailwind_validate (rule-checking) or tailwind_canonicalize (rewriting class order).

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?

Usage is only implied by the scenario ('when several set the same CSS property'); there is no explicit when-to-use statement, no exclusions, and no named alternative among the eight sibling tools. Adequate but leaves routing to inference.

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