Skip to main content
Glama

Webpage to clean LLM Markdown

web_fetch_markdown
Read-onlyIdempotent

Fetch a public HTTPS page and convert it into clean, LLM-ready Markdown with ads and navigation removed, plus word count, summaries, and extracted entities on demand.

Instructions

[$0.002] Fetch any public HTTPS webpage (SSRF-guarded), strip ads/nav boilerplate, and return clean LLM-ready Markdown, word count, summary, and extracted entities ($0.002/call). Do not use for searching across sites (use web_search) or probing x402 paywalls (use x402_paywall_probe). Only summarize=true invokes the local LLM, and expiring timeout_ms returns degraded=true with extracted Markdown but no summary. Live SSRF-guarded HTTPS fetch, read-only; requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 30-60 req/min.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "web_fetch_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAny public URL to fetch, clean, and extract content from
summarizeNoAdd LLM-powered summary with entity extraction and sentiment scoring
timeout_msNoOptional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data
session_tokenNoOptional prepaid session token (x402s_...) from https://apix402data.com/pay after the 10-call free preview.

Output Schema

NameRequiredDescriptionDefault
urlNo
cachedNo
endpointNo
entitiesNo
markdownNo
sentimentNo
nlp_methodNo
word_countNo
schema_versionNo
sentiment_scoreNo
cache_age_secondsNo
robots_txt_allowedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses pricing ($0.002/call), SSRF guarding, rate limits (30-60 req/min), authentication requirements (x402 USDC or Stripe MPP with 10 free lifetime calls), and the failure mode where an expiring timeout_ms returns degraded=true with Markdown but no summary. That is exactly the operational context annotations cannot express.

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?

It is dense and front-loaded: capability first, exclusions second, cost/behavioral caveats last. The pricing figure appears twice ('[$0.002]' prefix and '($0.002/call)'), which is minor redundancy in an otherwise waste-free definition.

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?

With an output schema present, return values need no explanation, and the description still covers the gaps that matter for a paid, network-facing tool: cost, auth, rate limits, SSRF safety, and degraded-response behavior. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by clarifying that summarize=true is the only path that triggers the local LLM and that timeout_ms expiry produces a degraded partial response rather than an error. The session_token parameter is only covered by the schema, not the description, keeping it short of a 5.

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 names a specific verb and resource — 'Fetch any public HTTPS webpage' — and enumerates concrete outputs (clean Markdown, word count, summary, extracted entities). It explicitly separates itself from web_search and x402_paywall_probe, so an agent can route without opening sibling schemas.

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?

It gives explicit negative guidance ('Do not use for searching across sites … or probing x402 paywalls') with the named alternative for each case. It also states the condition under which extra cost/compute applies ('Only summarize=true invokes the local LLM'), which is a real usage decision point.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.