Skip to main content
Glama

convert_to_tailwind

Converts CSS, SCSS, or styled HTML into Tailwind utility classes, optimizing output and preserving custom properties that cannot be converted.

Instructions

Convert CSS/SCSS to Tailwind classes

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>",
      "format": "<format>"
    },
    "name": "convert_to_tailwind"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesCSS, SCSS, or HTML with styles to convert
formatYesInput format
optimizeNoOptimize the converted classes
preserveCustomNoPreserve custom properties that cannot be converted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the conversion action but doesn't describe what happens during conversion (e.g., whether it's a read-only transformation or modifies data, error handling for invalid input, or performance considerations like rate limits). This leaves significant gaps for a tool that performs code transformation.

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 a single, efficient sentence with zero waste. It's front-loaded with the core purpose, making it easy to understand at a glance without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a code conversion tool with 4 parameters and no annotations or output schema, the description is incomplete. It doesn't explain the return values, error cases, or behavioral traits like whether the conversion is idempotent or has side effects. This makes it inadequate for guiding an AI agent effectively.

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%, so the schema already documents all parameters thoroughly. The description adds no additional meaning beyond the schema, such as examples of input code or details on how 'preserveCustom' or 'optimize' affect the output. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description clearly states the verb 'convert' and the resources 'CSS/SCSS to Tailwind classes', making the purpose specific and understandable. However, it doesn't explicitly differentiate from sibling tools like 'optimize_classes' or 'suggest_improvements', which might have overlapping functionality with CSS optimization or improvement suggestions.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'optimize_classes' or 'suggest_improvements'. It lacks context about prerequisites, such as needing valid CSS/SCSS/HTML input, and doesn't mention any exclusions or specific scenarios where this tool is preferred over others.

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