Skip to main content
Glama
scrapedatshi

scrapedatshi-mcp

Official
by scrapedatshi

extract_crawl

Crawl a domain and extract structured fields from each page using an LLM. Processes pages independently, returning errors per page without aborting the batch.

Instructions

Crawl a domain and extract structured data from every page using your LLM. Each page is processed independently — failed pages return an error without aborting the batch. Only successfully extracted pages are billed.

Use this when the user wants structured FIELDS from MULTIPLE pages (e.g. extract title + price from every product page on a site).

⚠️ Each page takes 5–15 seconds. Default is 5 pages. For more than 20 pages, warn the user about wait times and credit usage before proceeding.

PRE-FLIGHT REQUIRED — before calling:

  1. Call verify_provider_key(provider, 'llm') → get live model list

  2. Present models to user, ask them to choose one

  3. Ask: 'Is this a JavaScript-heavy site?' → js_render (not available for extract_crawl, note this)

  4. Confirm max_pages with the user

LLM keys can be omitted if set as environment variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe root domain to crawl.
schemaYesDict mapping field names to description strings. Example: {"title": "string — the product name", "price": "number — price in USD"}
selectorNoOptional CSS selector applied to every page before extraction.
llm_modelNoLLM model name from verify_provider_key. Do not guess or hardcode. Advanced models (not mini/flash/haiku) use 30k char context — better for long pages.
max_pagesNoMaximum pages to crawl and extract. Default: 5. Maximum: 50. Always confirm with user before setting above 20.
crawl_modeNo'sitemap': reads sitemap.xml. 'spider': follows links from root URL.sitemap
llm_api_keyNoAPI key for the LLM provider. Can be omitted if set as env var.
llm_providerYesLLM provider. One of: 'openai', 'anthropic', 'gemini'. Call verify_provider_key first.
exclude_patternNoSkip URLs containing this substring (e.g. '/blog/').
extract_as_listNoIf true, extracts ALL matching items on each page as a JSON array.
include_patternNoOnly crawl URLs containing this substring (e.g. '/products/').
Behavior5/5

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

With no annotations provided, the description fully informs about behavioral traits: independent page processing, failure handling (no abort), billing only for successful pages, timing (5-15 seconds per page), page limits (default 5, max 50), warnings for >20 pages, and pre-flight requirements. It also notes the absence of js_render and explains model context sizes.

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?

The description is well-structured and front-loaded with the core purpose. It uses bullet points and clear sections. While slightly verbose, every sentence adds value. Minor improvement could be to shorten the pre-flight list, but overall it's efficient for the complexity.

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 tool's complexity (11 parameters, 3 required, nested objects, no output schema), the description covers all necessary aspects: purpose, usage context, behavioral details, parameter semantics, and pre-flight workflow. It is complete for an agent to select and invoke the tool correctly.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds critical context beyond the schema. For example, it explains the schema parameter with an example, clarifies llm_model context lengths, warns about max_pages confirmation, and provides the pre-flight workflow that involves parameters like llm_provider and llm_api_key. This significantly aids correct parameter usage.

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 action: 'Crawl a domain and extract structured data from every page using your LLM.' It specifies the resource (domain) and the result (structured data). It distinguishes itself from sibling tools like crawl_site (no extraction) and extract_data (single page) by emphasizing multiple pages and structured fields.

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 explicitly says when to use this tool: 'when the user wants structured FIELDS from MULTIPLE pages'. It provides examples and pre-flight steps. However, it does not explicitly state when NOT to use it or directly compare with siblings, but the context is clear enough from the description and sibling list.

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/scrapedatshi/scrapedatshi-mcp'

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