Skip to main content
Glama

Web Extract Schema

web_extract_schema
Read-onlyIdempotent

Extract a page's structured data into a named schema's common fields (no LLM): article, product, event, faq, recipe, course, organization, local_business, breadcrumb, dataset or job_posting. When to use: you need fields (title/author/date, price/currency/availability, event dates, FAQ Q&A, recipe ingredients, org address) rather than raw markdown or tables. Do not use: to get every JSON-LD block verbatim (web_metadata/web_extract) or to read text (web_fetch). Returns: {ok, url, final_url, schema, requested_schema, detected_types, matched, fields:{...}, sources:[jsonld|meta], jsonld_count, tables_count, took_ms, cached, _metering}. If no matching JSON-LD exists it falls back to Open Graph/meta fields and matched=false. Metered: uses the same shared free pool (10 free calls/day per IP), then 1 credit per call over x402.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe http(s) page URL.
schemaNoTarget schema; auto detects from JSON-LD types. Default auto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the fallback path (Open Graph/meta fields with matched=false when no JSON-LD matches), the no-LLM determinism guarantee, and the metering model (shared 10 free calls/day per IP, then 1 credit per call over x402). These are exactly the operational facts an agent needs before spending quota.

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?

Front-loaded with purpose, then prefixed blocks ('When to use', 'Do not use', 'Returns', 'Metered') that make scanning easy. The dense return-shape string is justified because no output schema exists, though the description runs long overall.

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

Completeness5/5

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

With no output schema, the description compensates by spelling out the response shape (ok, matched, fields, sources, jsonld_count, cached, metering) and documenting the degraded fallback case. Combined with the metering and quota details, an agent has everything needed to invoke and interpret results.

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%, so the baseline is 3; the description earns above baseline by explaining what each schema value yields in practice (title/author/date for article, price/currency/availability for product, etc.), which helps an agent pick the enum value. It does not add much beyond the schema for the 'url' parameter, hence not a 5.

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?

States a specific verb and resource ('Extract a page's structured data into a named schema's common fields') and immediately bounds it with '(no LLM)' plus the full list of supported schema types. An agent can distinguish it from generic extraction or fetch tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' enumerates the concrete field types that justify the call (title/author/date, price/currency/availability, FAQ Q&A, org address) and contrasts with 'raw markdown or tables'. The 'Do not use' clause names alternative tools (web_metadata/web_extract for verbatim JSON-LD, web_fetch for text), giving clear routing decisions.

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.