Skip to main content
Glama

Extract Web Page as Structured JSON

extract

Fetch a public HTTP(S) page and return compact extraction signals for programmatic inspection: title, meta description, Open Graph/Twitter metadata, JSON-LD, headings, links, text excerpt, and AI-readiness flags. Use read instead when you need the page body as LLM-ready Markdown rather than metadata or a link inventory. Does not execute JavaScript; follows redirects and applies SSRF, timeout, and response-size guards. Payment challenge and credentials are bound to GET https://agents.samedaydesk.com/extract, not mcp://. Retry the identical authorized arguments and credential.

Input Schema

TableJSON 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 excerpt budget. Default 1200. Maximum 40000. Rejected before fetch. Does not purchase /read or change the price.

Output Schema

TableJSON 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
    • 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"
      +}
  2. 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"
      +]
  3. 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"
      +}
  4. 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."
  5. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.