Skip to main content
Glama

extract

Convert a webpage URL and natural-language request into structured JSON data.

Instructions

Extract structured data from a URL using a natural language prompt. Describe what you want to extract and the API returns it as structured JSON.

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>",
      "prompt": "<prompt>"
    },
    "name": "extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to extract data from
promptYesNatural language description of what to extract, e.g. "Extract all product names and prices"
timeoutNoTimeout in seconds (default: 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it covers little beyond the return type ('structured JSON'). It says nothing about whether JavaScript is rendered, authentication or blocked pages, credit/rate costs, failure behavior, or whether nested/complex pages are supported – all material for an extraction tool.

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?

Two short sentences, front-loaded with the action and mechanism, with no filler. The second sentence mostly restates the prompt-to-JSON contract but does usefully set the output expectation.

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

Completeness3/5

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

For a 3-parameter read tool with no annotations and no output schema, the definition is minimally adequate: it conveys inputs and the general return shape. It stops short of describing what the returned JSON looks like or how partial/failed extractions are reported, which an agent would need when no output schema exists.

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%, with url, prompt, and timeout each documented in the schema, so the schema does the heavy lifting. The description reinforces that the prompt is natural language and that output is structured JSON, but adds no syntax, size limits, or format expectations beyond the schema's example.

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 names a specific verb and resource ('Extract structured data from a URL') and qualifies the mechanism ('using a natural language prompt'), so an agent can tell this is prompt-driven extraction rather than raw scraping. It does not explicitly differentiate itself from siblings like scrape or batch_scrape, leaving that inference to the caller.

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?

Usage is only implied: the mention of a natural language prompt hints that this tool is for targeted field extraction versus full-page retrieval, but there is no statement of when to prefer it over scrape/batch_scrape/crawl, and no prerequisites or exclusions are given.

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