Skip to main content
Glama

extract_structured_data

Extract structured data from any webpage using natural language descriptions. Returns JSON that matches your prompt or schema.

Instructions

AI-powered structured data extraction from any webpage using natural language. Returns JSON matching your prompt or schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to extract from
promptYesNatural language description of what to extract
schemaNoOptional JSON schema for the response
wait_forNoCSS selector to wait for before extracting
wait_msNoMilliseconds to wait after page load
Behavior2/5

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

No annotations provided, so description must handle all behavioral disclosure. It only says 'AI-powered' and 'Returns JSON', omitting details like potential slowness, failure modes, or how wait parameters affect behavior.

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?

A single sentence with no unnecessary words. Every part of the description is relevant.

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?

Given 5 parameters including wait options and no output schema, the description is too brief. It does not explain return structure beyond 'JSON matching your prompt or schema' or address behavior for dynamic content.

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 provides 100% description coverage, so baseline is 3. The description adds 'using natural language' and 'Returns JSON' but does not enrich parameter semantics beyond the schema.

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 it extracts structured data from any webpage using natural language and returns JSON. This distinguishes it from sibling tools like scrape_webpage (raw content) and extract_metadata (metadata).

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?

It implies usage for extracting specific data points via natural language but provides no explicit when-to-use or when-not-to-use guidance, nor mentions alternatives.

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/hshintelligence/agent-scrape'

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