Skip to main content
Glama
BitingSnakes

silkworm-mcp

by BitingSnakes

compare_selectors

Compare multiple CSS or XPath selectors against the same HTML document to identify the most stable one for scraping.

Instructions

Compare multiple selectors against the same document to see which one is the most stable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlNo
modeNocss
selectorsYes
html_charsNo
source_urlNo
text_charsNo
include_htmlNo
preview_limitNo
max_size_bytesNo
document_handleNo
truncate_on_limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
source_urlNo
comparisonsNo
document_handleNo
Behavior2/5

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

With no annotations provided, the description carries full burden. It implies a read-only comparison but omits return format, stability criteria, or side effects, leaving behavioral expectations unclear.

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, front-loaded sentence with no redundancy. Every word contributes to stating the tool's purpose.

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?

Despite the presence of an output schema, the tool's complexity (11 parameters) and lack of usage/behavioral guidance make the one-sentence description insufficient for correct invocation. It covers only the core intent, not the operational 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% and the description adds no meaning to any of the 11 parameters, including the required selectors array and key options like mode, html_chars, and truncate_on_limit. This creates a significant gap.

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?

Description clearly states the action (compare multiple selectors against a document) and the outcome (determine which is most stable). It distinguishes itself from siblings like query_selector and analyze_css_selectors by its focus on comparative stability.

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 implicitly suggests use when evaluating selector stability but provides no explicit when-not-to-use or alternatives. Sibling tools such as analyze_css_selectors might be relevant, but no comparison 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