Skip to main content
Glama
Patrizzos
by Patrizzos

resolve_styles

Determine which CSS properties apply to a selector and why, showing winning rules and overridden ones with confidence levels, to understand cascade context before making changes.

Instructions

Resolves what CSS actually applies to a given selector. Returns every property the selector would receive, which rule wins for each property, and which rules were overridden — with confidence levels (certain/likely/possible) since no real DOM is available. Call this before modifying styles for an element to understand the full cascade context first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNoAbsolute paths to CSS/SCSS files to analyze.
selectorYesCSS selector to resolve, e.g. ".btn.primary", "#header a:hover"
projectRootNoOptional: path to a project root. All CSS/SCSS files will be discovered recursively.
Behavior4/5

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

Discloses key behavioral trait of confidence levels due to no real DOM, which adds context beyond a simple read. No annotations exist, so description carries full burden; it sufficiently addresses limitations.

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 efficient sentences with no superfluous information. First sentence states core purpose, second adds usage guidance and behavioral nuance. Front-loaded and to the point.

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?

Given tool complexity (CSS cascade) and no output schema, description outlines expected return values (properties, winner, overridden, confidence). Sufficient for an agent to gauge use, though could mention error handling or file discovery behavior.

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 description adds minimal new semantics beyond schema. The description reinforces the overall behavior but does not enhance parameter understanding beyond what schema provides.

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 tool resolves CSS for a given selector, listing specific outputs (properties, winning rule, overridden rules) and distinguishes from sibling 'trace_property' by focusing on full cascade context.

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?

Explicitly advises calling this before modifying styles to understand cascade context, providing clear usage guidance. Does not mention alternatives explicitly but implies it for initial diagnosis.

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/Patrizzos/StyleSpeak'

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