Skip to main content
Glama

extract

Define a JSON schema to pull structured fields from any URL. Returns JSON Lines, with optional headless browser support for dynamic content.

Instructions

Extract structured fields from a URL using a JSON schema. The schema mirrors the WebReaper Schema shape: { field, children: [ { field, selector, type, is_list }, ... ] }. Returns the extracted record(s) as JSON Lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to extract from.
browserNoUse the headless browser. Auto-spawns a system Chrome / Chromium / Edge via WebReaper.Cdp; install a Chromium-family browser on the MCP host first. Default false.
schemaJsonYesThe extraction schema as JSON. See the WebReaper docs for the shape.
Behavior3/5

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

The description reveals it uses WebReaper and returns JSON Lines, but lacks details on error handling, rate limits, or side effects. The `browser` parameter behavior is documented in parameters but not in the main description. Without annotations, the description carries the disclosure burden but is only partially transparent.

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?

Two sentences, front-loaded with the core purpose. Every sentence adds value—defining inputs, schema format, and outputs. No wasted words.

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?

Given no output schema and moderate complexity, the description covers inputs, schema format, and output format. It does not mention potential failure modes or prerequisites (e.g., browser installation), but the parameter description fills in the browser requirement. Overall, it is adequately complete for basic use.

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?

Schema coverage is 100%, and the description adds clarity by explaining the schema shape and referencing WebReaper docs. This goes beyond the schema's property descriptions, which are mostly self-explanatory. The browser parameter's default behavior is noted in the description.

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's purpose: 'Extract structured fields from a URL using a JSON schema.' It specifies the schema shape (WebReaper) and return format (JSON Lines), distinguishing it from sibling tools like `extract_inferred` and `extract_with_prompt`.

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 description implies usage when you have a JSON schema, but does not explicitly state when to choose this over siblings or provide exclusions. No guidance on prerequisites (e.g., need for Chromium if using browser parameter), though that is in the parameter description.

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/alex-on-ai/WebReaper'

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