Skip to main content
Glama
Web Scraper MCP Server

Web Scraper MCP Server

by bhubadinn

extract_data

Extract structured data from a web page using CSS selectors, or auto-detect tables and lists for scraping.

Instructions

Extract structured data from a page using CSS selectors, or auto-detect tables and lists

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "extract_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to extract from
fieldsNoWhen using list_selector, map of field names to child selectors, e.g. {"name": "h2", "price": ".price"}
selectorsNoMap of field names to CSS selectors, e.g. {"title": "h1", "price": ".price"}
list_selectorNoCSS selector for repeating items (e.g. '.product-card'). Extracts all matching elements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, yet it discloses little beyond the basic action. It does not say whether pages are rendered (JS-heavy sites), how rate limits or failures behave, what happens when selectors match nothing, or what the returned structure looks like.

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?

A single front-loaded sentence with no filler and the mode distinction placed where the reader will see it first. It is efficient, though the terseness leaves the gaps noted in other dimensions.

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?

A four-parameter tool with a nested object and no output schema needs the description to explain the shape of extracted results and how the parameter combinations interact. Neither is covered, so an agent must infer the return format and the selectors/list_selector relationship from the schema alone.

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?

Schema description coverage is 100% and the schema already explains url, selectors, fields, and list_selector with examples, so the baseline is 3. The description adds only the auto-detect mode, which the schema does not mention, but it does not clarify the selectors vs. fields/list_selector coupling.

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 ('Extract structured data from a page') and names the two operating modes (CSS selectors vs. auto-detect tables/lists). It does not distinguish itself from the sibling scrape_url, so an agent cannot tell from the description alone which of the two to reach for.

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 'or auto-detect' phrasing implies a fallback path when no selectors are supplied, which is useful implied guidance. But there is no explicit when-to-use or when-not-to-use statement relative to scrape_url, run_script, or get_links, and nothing tells the agent when to prefer the selector mode over auto-detection.

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