Skip to main content
Glama

Webpage to clean LLM Markdown

fetch_web_markdown
Read-onlyIdempotent

Fetch a public HTTPS webpage and convert it into clean, boilerplate-free Markdown for RAG ingestion; optionally add an LLM summary.

Instructions

Fetch a single public HTTPS webpage and extract clean, boilerplate-free Markdown for RAG ingestion. Pass url (required public HTTP/HTTPS URL) and optional summarize boolean (default false; true invokes LLM synthesis). Returns title, markdown, word_count, and optional summary. Do not use for multi-site keyword discovery (use search_web). 1 free try per IP, then HTTP 402 ($0.002 USDC).

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": "fetch_web_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 x402s_... session token from open_agent_session or https://apix402data.com/pay used after the 1 free try rolls over to HTTP 402.

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. Addedv5.6.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive behavior, so safety is covered. The description adds genuinely new behavioral context beyond annotations: per-IP free-trial quota, the HTTP 402 paywall, and the USDC price. Minor internal inconsistency: it says 'single public HTTPS webpage' but then accepts 'HTTP/HTTPS URL'.

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 outcome, followed by parameters, return shape, exclusion, and pricing in a tight sequence. Some content is redundant against structured fields (enumerating return fields when an output schema exists, and restating url's type), but nothing is gratuitous enough to obscure the key call path.

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 rich annotations, full schema coverage, and an output schema, an agent has nearly everything needed; the description contributes the crucial quota/paywall context that structured fields lack. The remaining gap is guidance on the summarize and session_token trade-offs, plus the required-vs-optional url mismatch that the agent must resolve by trusting the schema.

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 four parameters, including timeout_ms degraded behavior and session_token sourcing, are already documented in the schema. The description only restates url and summarize semantics, and its claim that url is 'required' conflicts with the schema, which marks no parameters required. Baseline 3 applies since the schema does the heavy lifting.

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 ('Fetch a single public HTTPS webpage and extract clean, boilerplate-free Markdown') plus the intended use case (RAG ingestion). It also names the sibling it is not ('Do not use for multi-site keyword discovery (use search_web)'), so an agent can distinguish it from search_web 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?

Explicitly gives a when-not condition and names the sibling alternative (search_web) for multi-site keyword discovery. However, it offers no guidance on when to set summarize=true versus false, or when to use session_token versus the free try, leaving those choices to be inferred from the schema.

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