Skip to main content
Glama
rog0x

mcp-color-tools

by rog0x

css_gradient

Create linear, radial, or conic CSS gradients with custom direction, color stops, and browser prefixes.

Instructions

Generate CSS gradient code. Supports linear, radial, and conic gradients with direction, stops, and browser prefixes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesGradient type: linear, radial, conic
colorsYesArray of colors (strings) or color stops ({color, position}). Minimum 2.
directionNoDirection/shape. Linear: 'to right', '45deg'. Radial: 'circle at center', 'ellipse at top'. Conic: 'from 0deg at center'.
includePrefixNoInclude -webkit- browser prefix. Default: true.
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 mentions supported features but does not disclose what the tool returns (e.g., a CSS string), how it handles invalid inputs, or any constraints beyond what the schema states. This is a significant gap for a generation tool.

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 sentence with zero wasted words, front-loading the verb and resource. It efficiently communicates the core function and supported variations.

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 simple generation tool, the description adequately conveys that it produces CSS code. Since there is no output schema, it implies the return value. However, it omits potential edge cases and error handling, but given the simplicity of the tool and full schema coverage, the missing details are minor.

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 fully documents each parameter. The description mentions 'direction, stops, and browser prefixes', which loosely correspond to parameters, but it does not add meaning beyond what the schema already provides. Baseline 3 is appropriate.

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 verb 'Generate' and the resource 'CSS gradient code', and lists supported gradient types (linear, radial, conic) and features (direction, stops, browser prefixes). This distinguishes it from sibling tools like color_convert, which focus on color conversion rather than CSS generation.

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?

The description implies the tool should be used when generating CSS gradient code, but it does not explicitly mention when not to use it or how it compares to alternatives. Sibling tools are clearly different in purpose, so confusion is unlikely, but explicit usage guidance is missing.

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/rog0x/mcp-color-tools'

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