Skip to main content
Glama
mcp-server-cloudflare-browser

mcp-server-cloudflare-browser

by vpsm-sh

Scrape Elements

scrape_elements

Extract structured data from specific webpage elements using CSS selectors and return text, HTML, attributes, and dimensions for each match.

Instructions

Extracts structured data from specific elements on a webpage using CSS selectors. Returns text, HTML, attributes, and dimensions for each match.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scrape_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it only describes the return payload. It says nothing about which page/context the scrape applies to, whether rendering or an active browser session is required, whether it waits for dynamic content, or any permission/rate considerations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the action front-loaded and the return shape second. Nothing is redundant, though the selector reference is misleading given the empty schema.

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 scraping tool with no annotations, no output schema, and no parameters, the description is not complete enough to invoke it confidently. It never explains how the selectors or target page are supplied, which is the central unknown for an agent trying to call it.

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?

The schema declares zero parameters, which normally earns a baseline 4, but the description explicitly references CSS selectors and 'specific elements' as inputs that do not exist anywhere in the schema. This leaves a meaningful mismatch about how the target elements are specified, so it is scored below the zero-param baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: extracts structured data from elements on a webpage via CSS selectors, and enumerates the returned fields (text, HTML, attributes, dimensions). This distinguishes it reasonably well from extraction siblings like extract_json or extract_links, though it never names those alternatives.

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?

No guidance on when to choose this over extract_json, extract_links, take_snapshot, or render_content, and no prerequisites stated. An agent must guess whether the page must already be rendered or crawled before calling it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.