Skip to main content
Glama

Extract structured data

extract
Read-onlyIdempotent

Extract structured data from one or more pages according to a JSON schema.

The output is validated against the schema — if a page does not contain the
required fields, that page returns an error rather than invented values.
An error for a page means the required fields are not on it. Each text
value is also checked against the page, and any that cannot be found there
are listed.

Needs a free SnoopScan key.

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": {
      "urls": "<urls>",
      "schema": "<schema>"
    },
    "name": "extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYes
promptNo
schemaYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations (readOnly, openWorld, idempotent, non-destructive) by disclosing the all-or-nothing validation model: a page missing required fields returns an error rather than hallucinated values, and unfound text values are flagged. It also discloses the auth prerequisite ('Needs a free SnoopScan key'), which the annotations do not cover. Missing only cost/latency expectations for multi-page calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior is front-loaded, but two sentences say the same thing: 'that page returns an error rather than invented values' followed by 'An error for a page means the required fields are not on it.' The trailing API-key note is a stranded fragment rather than integrated into the flow.

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?

An output schema exists, so return shape need not be explained, and the error semantics are a useful addition. However, for a 3-parameter, nested-object tool with zero schema description coverage, leaving prompt completely undefined and offering no guidance on batch size or page-count limits leaves real gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden. It explains the schema parameter's role and implies the urls array ('one or more pages'), but the prompt parameter is never mentioned at all and no parameter formats or limits are given. Half the parameters remain opaque.

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?

States a specific verb and resource ('Extract structured data from one or more pages') plus the governing constraint (a JSON schema). It is distinguishable from scrape/parse-style siblings by emphasizing schema-driven extraction rather than raw retrieval, though it never names an alternative explicitly.

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 implied: use this when you need typed fields from one or more pages instead of raw content. There is no explicit when-not guidance, no mention of how it relates to scrape or parse, and no note on limits such as how many URLs are acceptable per call.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.