Skip to main content
Glama

extract_inferred

Extract structured data from a web page without writing a schema. An LLM infers the schema from the content, optionally guided by a goal, for deterministic extraction.

Instructions

Extract structured data from a URL WITHOUT writing a schema: an LLM infers the schema from the page (optionally steered by a goal), then WebReaper extracts deterministically. Cheaper and more consistent than extract_with_prompt across similarly shaped pages. Requires an OpenAI-compatible LLM endpoint on the host: WEBREAPER_LLM_MODEL + WEBREAPER_LLM_BASE_URL, key in WEBREAPER_LLM_API_KEY (or OPENAI_API_KEY). Returns the extracted record(s) as JSON Lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to extract from.
goalNoOptional goal to steer the inferred schema (e.g. "product name and price").
modelNoOptional model id, overriding WEBREAPER_LLM_MODEL for this call.
browserNoUse the headless browser (for JS-rendered pages). Default false.
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses the use of LLM for schema inference, deterministic extraction, dependencies on environment variables, and the cost/consistency benefits. It does not mention potential failure modes, but overall provides good behavioral insight beyond just the basic purpose.

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?

The description is concise (3 sentences) and front-loaded with key information: the core behavior, comparison to alternatives, and configuration requirements. Every sentence adds value with no redundancy.

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?

The description covers the tool's purpose, mechanism, comparison to a sibling, and configuration needs. It mentions the output format (JSON Lines). However, it does not address what happens on failure (e.g., if LLM call fails or page is inaccessible) or provide details on error handling. Minor gap for a tool with no output schema.

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 coverage is 100%; the schema already describes each parameter. The description mentions the goal parameter ('optionally steered by a goal') but does not add significant meaning beyond what the schema provides. Baseline 3 is appropriate.

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 extracts structured data from a URL without writing a schema, using an LLM to infer the schema. It distinguishes itself from sibling tools, especially extract_with_prompt, by noting it's cheaper and more consistent for similarly shaped pages.

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 provides clear context on when to use this tool (when no schema is needed, for similarly shaped pages) and mentions requirements (OpenAI-compatible LLM endpoint). It explicitly compares to extract_with_prompt but does not address other siblings like crawl, scrape, or map, nor does it state when not to use this tool.

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