Skip to main content
Glama
mcp-webextrator

mcp-webextrator

by AceDataCloud

webextrator_extract

Extract structured data—product details, article content, or general page info—from web pages by rendering URLs and optionally applying LLM-based semantic normalization.

Instructions

Extract structured content from a web page using the WebExtrator API.

Navigates to the specified URL, renders the page, and extracts structured data
such as product details, article content, or general page information.

Use this when:
- You need to extract structured data from a web page
- You want product details, article content, or general page data
- You need LLM-enhanced semantic normalization of extracted content

Returns:
    By default, the extracted structured content inline. With async=true, a JSON envelope with a `task_id` — poll `webextrator_get_task` until it reports `finished_at`, then read the extracted content from its `response`.

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": "webextrator_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL of the web page to extract content from. Required.
asyncNoWhether to process the request asynchronously.
delayNoExtra delay in whole seconds after page load before extracting.
cookiesNoCookies to inject before navigation. Each requires name, value and domain.
headersNoExtra HTTP headers to include with the page request.
timeoutNoPage-load timeout in whole seconds (positive integer). Default is 30.
enable_llmNoEnable LLM-based semantic normalization for richer structured output. Default is false.
user_agentNoOverride the User-Agent header for the page request.
wait_untilNoPage load wait condition before extracting. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'load'.
bypass_cacheNoSkip cache reads and fetch a fresh page; the result can still be cached. Default false.
callback_urlNoCallback URL for async processing. If provided, the task runs asynchronously and results are sent to this URL when complete.
expected_typeNoHint about expected page type. Options: 'product', 'article', 'general'. Helps the extractor optimize for the content structure.
block_resourcesNoResource types to block during page load to speed up rendering. Options: 'image', 'font', 'media', 'stylesheet', 'xhr', 'fetch'.
cache_ttl_secondsNoCache lifetime in whole seconds. Set 0 to avoid caching this response; default 3600.
wait_for_selectorNoCSS selector to wait for before extracting content.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.12
    • addedInput schema / $defs
      Added value: +{
      +  "Cookie": {
      +    "description": "Cookie to inject before navigating the requested page.",
      +    "properties": {
      +      "domain": {
      +        "title": "Domain",
      +        "type": "string"
      +      },
      +      "expires": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Expires"
      +      },
      +      "httpOnly": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Httponly"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "path": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Path"
      +      },
      +      "sameSite": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "Strict",
      +              "Lax",
      +              "None"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Samesite"
      +      },
      +      "secure": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Secure"
      +      },
      +      "value": {
      +        "title": "Value",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value",
      +      "domain"
      +    ],
      +    "title": "Cookie",
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / bypass_cache
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Skip cache reads and fetch a fresh page; the result can still be cached. Default false.",
      +  "title": "Bypass Cache"
      +}
    • addedInput schema / properties / cache_ttl_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cache lifetime in whole seconds. Set 0 to avoid caching this response; default 3600.",
      +  "title": "Cache Ttl Seconds"
      +}
    • addedInput schema / properties / cookies
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "$ref": "#/$defs/Cookie"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cookies to inject before navigation. Each requires name, value and domain.",
      +  "title": "Cookies"
      +}
    • changedInput schema / properties / delay / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / delay / description
      Previous value: -"Extra delay in seconds after page load before extracting."New value: +"Extra delay in whole seconds after page load before extracting."
    • changedInput schema / properties / timeout / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / timeout / description
      Previous value: -"Total timeout in seconds for page load. Default is 30."New value: +"Page-load timeout in whole seconds (positive integer). Default is 30."
    • changedInput schema / properties / wait_until / description
      Previous value: -"Page load wait condition before extracting. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'networkidle'."New value: +"Page load wait condition before extracting. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'load'."
  2. Changed5 schema fields changedv0.1.7
    • addedInput schema / properties / async
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Whether to process the request asynchronously.",
      +  "title": "Async"
      +}
    • removedInput schema / properties / bypass_cache
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Skip the Redis result cache for this request (still writes the fresh result back). Default is false.",
      -  "title": "Bypass Cache"
      -}
    • removedInput schema / properties / cache_ttl_seconds
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Override the global cache TTL (seconds) for this entry. 0 means do not cache this response. Default is 3600.",
      -  "title": "Cache Ttl Seconds"
      -}
    • removedInput schema / properties / cookies
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Cookies to install before navigation. Each cookie is an object with at least 'name' and 'value', plus optional 'domain', 'path', 'expires', 'httpOnly', 'secure', 'sameSite'. Useful for authenticated pages.",
      -  "title": "Cookies"
      -}
    • removedInput schema / properties / mode
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "enum": [
      -        "sync",
      -        "async"
      -      ],
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Processing mode. Defaults to API sync behavior. Pass 'async' to return immediately with a task_id to poll via webextrator_get_task.",
      -  "title": "Mode"
      -}
  3. Changed1 schema field changedv0.1.5
    • changedInput schema / properties / mode / description
      Previous value: -"Processing mode. Defaults to 'async': returns immediately with a task_id to poll via webextrator_get_task. Pass 'sync' to wait for the result inline (may time out on slow pages)."New value: +"Processing mode. Defaults to API sync behavior. Pass 'async' to return immediately with a task_id to poll via webextrator_get_task."
  4. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / mode / description
      Previous value: -"Processing mode. 'sync' (default) waits for the result; 'async' returns immediately with a task_id to poll via the Tasks API."New value: +"Processing mode. Defaults to 'async': returns immediately with a task_id to poll via webextrator_get_task. Pass 'sync' to wait for the result inline (may time out on slow pages)."
  5. Changed4 schema fields changedv0.1.2
    • addedInput schema / properties / bypass_cache
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Skip the Redis result cache for this request (still writes the fresh result back). Default is false.",
      +  "title": "Bypass Cache"
      +}
    • addedInput schema / properties / cache_ttl_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Override the global cache TTL (seconds) for this entry. 0 means do not cache this response. Default is 3600.",
      +  "title": "Cache Ttl Seconds"
      +}
    • addedInput schema / properties / cookies
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cookies to install before navigation. Each cookie is an object with at least 'name' and 'value', plus optional 'domain', 'path', 'expires', 'httpOnly', 'secure', 'sameSite'. Useful for authenticated pages.",
      +  "title": "Cookies"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "sync",
      +        "async"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Processing mode. 'sync' (default) waits for the result; 'async' returns immediately with a task_id to poll via the Tasks API.",
      +  "title": "Mode"
      +}
  6. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose meaningful behavior: server-side navigation and rendering, the dual synchronous/asynchronous response shapes, and the exact polling loop for async results. It omits failure behavior, throttling/cost implications (especially when LLM normalization is enabled), and the fact that results may be served from cache by default, which matters for freshness-sensitive extraction.

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?

Front-loaded with purpose, then structured blocks for usage triggers and return values, which is easy to scan. The first sentence and the second are partially redundant, and the second usage bullet largely restates the opening paragraph, so there is minor waste but no filler.

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

Completeness4/5

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

For a 15-parameter, annotation-free extraction tool with a declared output schema, the description covers the essentials: what it does, when to reach for it, and how the async path resolves. The notable gap is sibling disambiguation against webextrator_render, plus no mention of cache semantics that materially affect repeated calls.

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%, so the schema already documents all 15 parameters with defaults and enums, establishing a baseline of 3. The description adds real meaning for the async parameter (what it returns and how to follow up) and hints at expected_type through the product/article/general phrasing, but says nothing about the caching, timeout, blocking, or cookie parameters beyond the schema.

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?

The description opens with a specific verb+resource ("Extract structured content from a web page") and elaborates that it navigates, renders, and extracts product/article/general data, so the agent knows exactly what the tool produces. It stops short of differentiating itself from the sibling webextrator_render, which plausibly also renders pages, leaving the boundary to inference.

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?

An explicit "Use this when" list gives three concrete triggers, and the Returns block explains the async branch and routes the agent to webextrator_get_task with a clear completion condition. There is no exclusion or "use X instead" guidance, and the relationship to webextrator_render is never addressed.

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