Skip to main content
Glama
vitkuz573

tailwind-mcp

by vitkuz573

Migrate Tailwind v3 classes to v4

tailwind_migrate
Read-only

Convert Tailwind v3 class names to v4 equivalents and catch silent scale renames like shadow-sm, rounded, and blur when porting v3 code to v4.

Instructions

Map v3 class names to their v4 equivalents, including the scale renames whose meaning changed silently (shadow-sm, rounded, blur and the rest). Use this when porting v3 code to v4.

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 v3 class list to migrate, e.g. ['shadow-sm', 'bg-opacity-50', 'flex-shrink-0']

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 declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description goes beyond them by flagging that scale renames like shadow-sm, rounded and blur changed meaning silently, which warns the agent the mapping is not a naive find-and-replace. It still omits how unknown or already-v4 classes are handled.

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, front-loaded with the core mapping behavior and followed by the porting context. The parenthetical enumerates the risky renames compactly without padding.

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?

For a read-only mapping tool with no output schema, the description conveys what the result is (v3 to v4 equivalents) and when to use it. Missing only edge-case behavior such as unrecognized classes or how conflicts between mapped classes are resolved.

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% for both parameters, including a concrete candidate example and the project path default, so the schema carries the burden. The description adds no syntax or format detail beyond what is already structured there; baseline 3 applies.

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+resource: mapping v3 class names to v4 equivalents, with examples of the class families involved. It does not, however, differentiate itself from the sibling tailwind_canonicalize, which an agent could plausibly confuse with a class-rewriting tool.

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?

"Use this when porting v3 code to v4" gives a clear triggering context. There is no explicit when-not guidance and no named alternative for adjacent tasks (e.g. canonicalize), 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.