Skip to main content
Glama

css_optimize

Remove unused CSS rules, merge duplicates, and apply best practices to reduce stylesheet size and improve performance.

Instructions

Optimize CSS by removing unused rules, merging duplicates, and applying best practices (Pro)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssYesCSS stylesheet content to optimize
htmlNoHTML/JSX content for unused rule detection
api_keyNoAPI key for authentication
optionsNoOptimization options: 'minify', 'merge', 'sort', 'modernize'
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains the transformation intent but does not mention authentication requirements for api_key, whether the operation is read-only, what the return value looks like, or any 'Pro'-related limitations or side effects.

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?

One sentence, front-loaded with the primary action, and no filler. The parenthetical '(Pro)' is slightly extra but does not harm clarity or consume meaningful space.

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 no output schema and no annotations, the description is too thin to fully support invocation. It omits return behavior, authentication context, what 'best practices' means in practice, and fails to route the agent around related CSS tools. The presence of an api_key parameter makes this gap more noticeable.

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 four parameters. The description adds only marginal context by hinting that 'removing unused rules' relates to HTML content, but it does not clarify options values, api_key requirements, or how parameters interact beyond the schema.

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 states a specific action ('optimize CSS') and concrete operations: removing unused rules, merging duplicates, and applying best practices. This clearly distinguishes it from analysis-only siblings like css_find_unused and css_find_duplicates, which are about detection rather than transformation.

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?

No guidance is given about when to use this tool versus alternatives such as css_find_unused, css_find_duplicates, or other optimization tools. There is no explicit or implicit statement about prerequisites, workflow position, or what makes this the right choice.

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/barnburner121/claude-plugin-marketplace'

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