Skip to main content
Glama

M2MCent x402 Universal MCP Gateway

Fetch Public Webpage as Clean LLM Markdown

fetch_webpage_markdown
Read-onlyIdempotent

Fetch a live public HTTP/HTTPS webpage, strip scripts/styles/navigation boilerplate, extract links and JSON-LD metadata, and return clean Markdown optimized for LLM context windows. Settles $0.050 USDC per call on Base via x402 V2.

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

Input Schema

NameRequiredDescriptionDefault
urlYesFull public https:// webpage URL to fetch and convert into clean Markdown.
includeLinksNoWhether to preserve hyperlinks and return extractedLinks array. Defaults to true.
removeBoilerplateNoWhether to strip scripts, styles, navbars, and footers. Defaults to true.

Output Schema

NameRequiredDescriptionDefault
urlYes
markdownYes
pageTitleNo
crawlLatencyMsYes
extractedLinksNo
httpStatusCodeYes
extractedJsonLdNo
markdownContentNo
tokenSavingsPercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive semantics, so the description's main added value is the cost disclosure — $0.050 USDC per call settled on Base via x402 V2 — which tells the agent this call has a real monetary side effect not visible in the annotations. It does not disclose rate limits, size limits, or failure behavior, keeping it below a 5.

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?

Two sentences: the first front-loads the operation and its output shape, the second isolates the payment fact. Dense but every clause carries information; 'optimized for LLM context windows' is slightly promotional but still conveys the output's intent.

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 explained, and the payment model and processing pipeline are disclosed. For an open-world network tool the remaining gap is operational failure and limit behavior (non-HTML responses, blocked sites, content size), which an agent would want before spending $0.05 per call.

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 all three parameters are already documented, and the description adds no syntax, format, or defaulting detail beyond them. It does corroborate semantics by mentioning link extraction and boilerplate removal, which map onto includeLinks and removeBoilerplate, but that is restatement rather than new meaning.

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?

The description states a specific verb and resource — fetch a live public HTTP/HTTPS webpage — and then enumerates the transformation pipeline (strip scripts/styles/nav, extract links and JSON-LD, return clean Markdown). That is far more specific than the title alone, and no sibling tool (gas pulse, KYT screening, flight tracking) could be confused with it.

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

Usage Guidelines3/5

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

The word 'public' twice plus 'live' implicitly excludes authenticated, paywalled, and cached/archived pages, which is useful scoping. However, there is no explicit when-to-use or when-not guidance, no statement about JS-rendered pages, non-HTML content types, or what happens on fetch failure, so the agent must infer boundaries.

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.