Skip to main content
Glama

Extract URL (structured)

extract_url_structured
Read-only

Fetch a public web page and return structured data: page metadata (title, description, canonical URL, language, site name, byline), main content Markdown, ordered headings with levels, and links (text + URL). Deterministic HTML processing, no LLM. Paid via x402 ($0.005 per successful call; the first 5 successful calls per day are free). Returns JSON with schemaVersion, operation, requestedUrl, finalUrl, metadata{title,description,canonicalUrl,language,siteName,byline,publishedTime}, markdown, headings, headingsTruncated, links[{text,url}], linksTruncated, truncated, extraction{...}.

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute public http:// or https:// URL. Default ports only; no credentials; no IP literals.
includeLinksNoKeep hyperlinks and images in the Markdown (default true). When false, link text is kept as plain text.
maxCharactersNoMaximum Markdown characters to return (default 20000, max 100000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing cost mechanics (x402, $0.005 per successful call, first 5/day free), determinism ('no LLM'), and the truncation flags (headingsTruncated, linksTruncated, truncated). Pricing and side-effect profile are exactly the context an agent needs before invoking.

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 core action and output shape, and every sentence carries information. The final return-shape enumeration is long but justified because no output schema exists.

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?

With no output schema, the description correctly compensates by spelling out the full JSON return shape and truncation behavior. It stops short of describing failure behavior for non-public or blocked URLs, which is the only remaining gap.

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 url, includeLinks, and maxCharacters are already fully documented with defaults and bounds. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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 ('Fetch a public web page and return structured data') and enumerates exactly what is returned: metadata, Markdown, headings, links. It does not, however, name or differentiate itself from its siblings extract_url and inspect_url, so an agent cannot tell from the description alone which sibling to pick.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not-to-use guidance appears, and the two sibling tools (extract_url, inspect_url) are never referenced. An agent is left to infer that 'structured' output is the distinguishing feature.

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.