Skip to main content
Glama

Web extract: any web page into JSON matching your own JSON Schema

web_extract
Read-onlyIdempotent

Use when an agent needs specific fields from a web page as JSON. Input: url, schema (URL-encoded JSON Schema, object root, max 30 properties, depth 3, 3,000 chars). Output: JSON data validated against the schema (null when not on the page), title, finalUrl. SSRF-safe; noai pages refused; bad schema refused before payment. Fixed schema: /v1/docs/extract. Use instead: docs_extract for fixed-schema facts from a document; web_read for the whole page as Markdown. Example: ?url=https://example.com/&schema={"type":"object","properties":{"title":{"type":"string"}}} Price: $0.007 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via 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>",
      "schema": "<schema>"
    },
    "name": "web_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) web page URL
schemaYesJSON Schema (object root) describing the fields to extract

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still adds real context beyond them: SSRF-safety, refusal of noai pages, schema rejection before payment, null values when a field is absent, and finalUrl in the response. However, the pricing sentence sits awkwardly next to the behavioral content and mixes cost/payment rails into a section that would read better separated.

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 the trigger, then input/output/constraints/alternatives in a compact labelled sequence with no filler sentences. Slightly dense: the pricing and payment-rail sentence and the inline example crowd the same paragraph as behavioral guarantees.

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?

For a two-parameter extraction tool with no output schema, the description covers input encoding and hard limits, response fields, failure modes (SSRF, noai, bad schema), cost per call, and alternatives. Nothing an agent needs before calling is missing.

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

Parameters5/5

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

Schema coverage is 100%, so the two parameters are documented structurally, yet the description adds constraints the schema lacks: the schema string must be URL-encoded, use an object root, be limited to 30 properties, depth 3 and 3,000 characters, and the URL must be public http(s). It also supplies a concrete query-string example showing url and schema together, which materially reduces invocation error.

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?

Names a specific verb and resource ('specific fields from a web page as JSON') and sets the scope apart from siblings by naming docs_extract (fixed-schema facts from a document) and web_read (whole page as Markdown). An agent can select this over those two without opening any 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?

Opens with an explicit trigger ('Use when an agent needs specific fields from a web page as JSON') and adds a dedicated 'Use instead' line routing to docs_extract and web_read with the condition that selects each. Both when-to-use and when-to-use-something-else are stated.

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.

Resources