Skip to main content
Glama
BitingSnakes

silkworm-mcp

by BitingSnakes

analyze_css_selectors

Parse inline, linked, or raw CSS to extract selectors and optionally match them against HTML, revealing which elements each selector targets.

Instructions

Parse inline, linked, or raw CSS with tinycss2 and optionally match selectors back onto HTML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssNo
htmlNo
limitNo
html_charsNo
match_htmlNo
source_urlNo
text_charsNo
match_limitNo
max_size_bytesNo
document_handleNo
timeout_secondsNo
truncate_on_limitNo
include_match_htmlNo
include_inline_stylesNo
only_hiding_selectorsNo
fetch_linked_stylesheetsNo
include_linked_stylesheetsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
warningsNo
selectorsNo
source_urlNo
stylesheetsNo
document_handleNo
total_selectorsYes
omitted_selectorsYes
total_stylesheetsYes
returned_selectorsYes
hidden_selector_countYes
linked_stylesheet_urlsNo
Behavior2/5

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

With no annotations, the description carries the full burden for disclosing behavior. It only states the core function (parse/match) and does not mention limits, truncation, error handling, read-only nature, or any side effects. The many limit-related parameters suggest important behaviors that are left undisclosed.

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, concise sentence with no redundant information. It is front-loaded with the core purpose and uses efficient language.

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?

For a tool with 17 parameters, no annotations, and no parameter descriptions, this description is far too minimal. While an output schema exists and covers return values, the complex behaviors around selector matching, limits, linked stylesheet fetching, and truncation are entirely absent, leaving the agent without critical usage context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description does not compensate by explaining parameter meanings. It loosely mentions 'inline, linked, or raw CSS' but does not map that to specific parameters like css, source_url, or document_handle. None of the 17 parameters (e.g., match_html, limit, fetch_linked_stylesheets) are explained in the description.

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 what the tool does: 'Parse inline, linked, or raw CSS with tinycss2 and optionally match selectors back onto HTML.' The verb 'parse' plus the resources 'CSS' and 'HTML' make the purpose specific and distinguish it from sibling tools like query_selector or parse_html_document.

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. It does not mention any prerequisites, exclusions, or scenarios where a sibling tool would be more appropriate. The only implied use is having CSS to analyze, but no explicit comparison to other tools is given.

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/BitingSnakes/silkworm-mcp'

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