Skip to main content
Glama
BitingSnakes

silkworm-mcp

by BitingSnakes

query_selector_cdp

Fetch a rendered web page through CDP and run CSS or XPath queries on the live DOM snapshot to extract matching elements.

Instructions

Fetch a rendered page through CDP, then run a CSS or XPath query on the live DOM snapshot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
modeNocss
labelNo
limitNo
queryYes
headersNo
html_charsNo
text_charsNo
ws_endpointNows://127.0.0.1:9222
include_htmlNo
max_size_bytesNo
store_documentNo
timeout_secondsNo
truncate_on_limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
queryYes
matchesNo
source_urlNo
total_matchesYes
document_handleNo
omitted_matchesYes
returned_matchesYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It accurately describes the two main phases (fetch via CDP, then query the snapshot) and the 'live DOM snapshot' concept. However, it does not mention potential side effects like storing the document (store_document defaults to true), resource limits, or network behavior, leaving gaps.

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?

A single, well-structured sentence that front-loads the tool's purpose. Every word earns its place; no filler or redundancy.

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 having an output schema, the tool has 14 parameters, no annotations, and a very terse description. It omits details about the fetch process, storage side effects, pagination, and parameter semantics. For such a complex tool, the description is too minimal to fully guide an agent.

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

Parameters2/5

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

Schema description coverage is 0%, and the description only indirectly clarifies the 'query' and 'mode' parameters by mentioning 'CSS or XPath query'. It provides no guidance for the other 12 parameters, including required 'url' and important ones like 'limit', 'headers', or 'store_document'. The description fails to compensate for the lack of schema descriptions.

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 uses a specific verb ('Fetch', 'run') and clearly identifies the resource ('a rendered page through CDP', 'live DOM snapshot'). It distinguishes the tool from siblings by highlighting the rendered/CDP aspect, which differentiates it from static query_selector and pure fetch tools like silkworm_fetch_cdp.

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?

The description implies the intended usage: use this tool when a page needs to be rendered (via CDP) before querying the live DOM. This provides clear context for when to choose it over alternatives, though it does not explicitly name sibling tools or provide exclusions.

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