Skip to main content
Glama
KhaledDev

yet-another-web-scraper-mcp

by KhaledDev

click

Click a webpage element (e.g., pagination button) by CSS selector and return the cleaned content of the resulting page, with options to limit results to a specific section or wait for client-side updates.

Instructions

Click an element by CSS selector (e.g. a pagination button) and return the resulting page's cleaned content.

On stateful pages (large SPA/ASP.NET markup) re-returning the whole page every click is wasteful. Pass result_selector (a CSS selector, e.g. "table#resultsGrid tbody") to get back only that part of the post-click page.

If the click triggers a client-side fetch (e.g. a filter or "load more" button) rather than a full reload, pass wait_for_selector/wait_for_idle the same way as navigate so the returned content isn't read too early.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes
timeout_msNo
wait_for_idleNo
result_selectorNo
wait_for_selectorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden and discloses that clicking returns cleaned content, that re-returning the full page is wasteful on stateful pages, and that waiting is needed for client-side fetches to avoid early reads. This provides useful operational context beyond the basic action.

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 densely informative, with each sentence adding meaningful guidance and examples. It is well-structured, starting with the main action and then providing scenario-based refinements for stateful pages and client-side fetches.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema and the tool's complexity, the description provides sufficient context for correct invocation, covering return content scoping and async waiting. The only minor gap is `timeout_ms`, but the overall guidance is comprehensive.

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

Parameters4/5

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

The description explains the meaning and use cases for `selector`, `result_selector`, `wait_for_selector`, and `wait_for_idle`, critical since schema coverage is 0%. However, `timeout_ms` is not addressed, leaving its semantics to inference.

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 clicks an element by CSS selector and returns the resulting page's cleaned content, which distinguishes it from navigation and extraction siblings. The specific verb 'Click' and resource 'element by CSS selector' make the purpose unmistakable.

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 provides explicit guidance on when to use `result_selector` (stateful pages) and `wait_for_selector`/`wait_for_idle` (client-side fetch), with concrete examples. However, it does not explicitly contrast with alternatives like `navigate`, though the mention of 'navigate' implies a sibling relationship.

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/KhaledDev/yet-another-web-scraper-mcp'

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