Skip to main content
Glama

Extract Web Page as Structured JSON

extract

Extract metadata, Open Graph/Twitter tags, JSON-LD, headings, links, a bounded excerpt, and AI-readiness flags from a public HTTP(S) page. Set textExcerptLimitChars to adjust the excerpt. Optional integer from 1 to 40000 (default 1200). Invalid values are rejected before payment. Price unchanged. Use read instead for Markdown. Follows redirects with SSRF, timeout, and size guards; no JavaScript. Payment challenge and credentials are bound to GET https://agents.samedaydesk.com/extract, not mcp://. Retry the identical authorized arguments and credential.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP(S) URL. Choose extract for metadata, JSON-LD, headings, links, and a bounded text excerpt; use read for longer bounded Markdown. Content is fetched without JavaScript rendering. Check status/sourceOk/error/capture; ok means a typed extract record, not source completeness.
textExcerptLimitCharsNoOptional integer from 1 to 40000 (default 1200). Invalid values are rejected before payment. Price unchanged.

Output Schema

NameRequiredDescriptionDefault
okYes
urlYes
langYes
textYes
errorYes
linksYes
titleYes
jsonLdYes
statusYes
captureYes
twitterYes
finalUrlYes
headingsYes
sourceOkYes
canonicalYes
fetchedAtYes
openGraphYes
aiReadinessYes
contentTypeYes
descriptionYes
requestedUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / textExcerptLimitChars / description
      Previous value: -"Optional excerpt budget. Default 1200. Maximum 40000. Rejected before fetch. Does not purchase /read or change the price."New value: +"Optional integer from 1 to 40000 (default 1200). Invalid values are rejected before payment. Price unchanged."
  2. Changed1 schema field changed
    • addedInput schema / properties / textExcerptLimitChars
      Added value: +{
      +  "description": "Optional excerpt budget. Default 1200. Maximum 40000. Rejected before fetch. Does not purchase /read or change the price.",
      +  "maximum": 40000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed7 schema fields changed
    • changedInput schema / properties / url / description
      Previous value: -"Public HTTP(S) URL. Choose extract for metadata, JSON-LD, headings, links, and a text excerpt; use read for cleaned full-body Markdown. Content is fetched without JavaScript rendering."New value: +"Public HTTP(S) URL. Choose extract for metadata, JSON-LD, headings, links, and a bounded text excerpt; use read for longer bounded Markdown. Content is fetched without JavaScript rendering. Check status/sourceOk/error/capture; ok means a typed extract record, not source completeness."
    • addedOutput schema / properties / capture
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "bodyBytes": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "bodyTruncated": {
      +      "type": "boolean"
      +    },
      +    "charset": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "charsetSource": {
      +      "enum": [
      +        "content-type",
      +        "html-meta",
      +        "default-utf-8",
      +        "invalid-charset-fallback"
      +      ],
      +      "type": "string"
      +    },
      +    "javascriptExecuted": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "markdownLimitChars": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "maxBodyBytes": {
      +      "type": "integer"
      +    },
      +    "method": {
      +      "const": "http-get-no-javascript",
      +      "type": "string"
      +    },
      +    "textExcerptLimitChars": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "textTruncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "method",
      +    "javascriptExecuted",
      +    "maxBodyBytes",
      +    "textExcerptLimitChars",
      +    "markdownLimitChars",
      +    "bodyBytes",
      +    "bodyTruncated",
      +    "textTruncated",
      +    "charset",
      +    "charsetSource"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / finalUrl
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / requestedUrl
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / sourceOk
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "url",
      -  "status",
      -  "contentType",
      -  "title",
      -  "description",
      -  "canonical",
      -  "lang",
      -  "openGraph",
      -  "twitter",
      -  "jsonLd",
      -  "headings",
      -  "links",
      -  "text",
      -  "aiReadiness",
      -  "fetchedAt"
      -]New value: +[
      +  "ok",
      +  "requestedUrl",
      +  "finalUrl",
      +  "url",
      +  "status",
      +  "sourceOk",
      +  "error",
      +  "contentType",
      +  "title",
      +  "description",
      +  "canonical",
      +  "lang",
      +  "openGraph",
      +  "twitter",
      +  "jsonLd",
      +  "headings",
      +  "links",
      +  "text",
      +  "aiReadiness",
      +  "capture",
      +  "fetchedAt"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "aiReadiness": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "hasCanonical": {
      +          "type": "boolean"
      +        },
      +        "hasDescription": {
      +          "type": "boolean"
      +        },
      +        "hasJsonLd": {
      +          "type": "boolean"
      +        },
      +        "hasOpenGraph": {
      +          "type": "boolean"
      +        },
      +        "hasTitle": {
      +          "type": "boolean"
      +        },
      +        "schemaTypes": {
      +          "items": {},
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "hasJsonLd",
      +        "hasOpenGraph",
      +        "hasTitle",
      +        "hasDescription",
      +        "hasCanonical",
      +        "schemaTypes"
      +      ],
      +      "type": "object"
      +    },
      +    "canonical": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "contentType": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "description": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "fetchedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "headings": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "h1": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "h2": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "h1",
      +        "h2"
      +      ],
      +      "type": "object"
      +    },
      +    "jsonLd": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "lang": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "links": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "openGraph": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "status": {
      +      "type": "integer"
      +    },
      +    "text": {
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "twitter": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "url",
      +    "status",
      +    "contentType",
      +    "title",
      +    "description",
      +    "canonical",
      +    "lang",
      +    "openGraph",
      +    "twitter",
      +    "jsonLd",
      +    "headings",
      +    "links",
      +    "text",
      +    "aiReadiness",
      +    "fetchedAt"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) URL to extract"New value: +"Public HTTP(S) URL. Choose extract for metadata, JSON-LD, headings, links, and a text excerpt; use read for cleaned full-body Markdown. Content is fetched without JavaScript rendering."
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so unusually well: it discloses redirect following with SSRF/timeout/size guards, no JavaScript rendering, the payment-challenge model, that credentials bind to the GET endpoint rather than mcp://, that invalid values are rejected before payment at unchanged price, and the exact retry semantics for authorized arguments.

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?

The core purpose and the `read` alternative are front-loaded in the first two sentences, which is good structure. However, the sentence about textExcerptLimitChars duplicates the schema text word for word, and the payment/credential sentence is dense and slightly awkward to parse.

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

Completeness4/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 values need not be described, and the fetch behavior, guards, and payment flow are covered. Minor gaps remain around what happens on failure modes such as non-public URLs or non-HTML content, and whether the record is cached.

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 description coverage is 100%, so the baseline is 3. The description largely restates the schema verbatim ('Optional integer from 1 to 40000 (default 1200)') and adds only the 'price unchanged' and 'rejected before payment' notes, which are commercial rather than semantic detail about the parameters themselves.

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 — extracting metadata, Open Graph/Twitter tags, JSON-LD, headings, links, a bounded excerpt, and AI-readiness flags from a public HTTP(S) page. It explicitly contrasts with the `read` sibling (Markdown), so an agent can pick between them without opening either schema.

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

Usage Guidelines4/5

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

Names the alternative explicitly: 'Use `read` instead for Markdown,' and the url parameter reinforces 'use read for longer bounded Markdown.' That gives a clear selection condition, but there is no guidance on when extraction is inappropriate (e.g., private/auth-gated pages beyond the 'public' qualifier) or on batch use vs extract_batch.

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.