Skip to main content
Glama

Turn a web page into Markdown (paid, $0.002)

web_extract
Read-only

PAID over x402 inside this tool call ($0.002 USDC on Base, Polygon or Arc): turn any public web page into clean Markdown. Built to feed the Website Watcher: search with web_search, extract the page, then scan it with link_check. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL to turn into Markdown.

Output Schema

NameRequiredDescriptionDefault
urlNoThe page URL
_paidNox402 receipt
titleNoPage title
markdownNoThe page as clean Markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnly, openWorld, destructive=false and idempotent=false, and the description reinforces this by disclosing the paid x402 settlement ($0.002 USDC on Base/Polygon/Arc) and the two-call handshake — genuinely useful context beyond the structured fields. It does not cover failure behavior for non-public URLs, paywalled content, or how long an unpaid quote stays valid, so it stops short of full transparency.

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?

Three sentences, front-loaded with the paid nature, price, and currency before the purpose and the workflow. Dense but every clause carries operational information; the chain list and the _meta key are the only spots that feel crowded into an otherwise tight statement.

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 format needn't be explained, and the description covers the payment mechanics, cost, and pipeline position — the main things an agent needs for this tool. Remaining gaps are edge cases: content size limits, handling of non-public or JS-heavy pages, and whether a repeat call without payment re-triggers PaymentRequired.

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?

With one parameter at 100% schema coverage, the schema already defines 'url' as a public http(s) URI up to 2048 chars, so the baseline is met without extra prose. The description adds meaning the schema omits entirely: the signed payment is injected via _meta["x402/payment"], which is not represented in the input schema at all.

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 ('turn any public web page into clean Markdown') and immediately distinguishes itself from siblings by placing itself in the search → extract → link_check pipeline. An agent can tell what this does and where it sits relative to web_search without opening the schema.

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?

Explicit sequencing: 'search with web_search, extract the page, then scan it with link_check' names both the upstream and downstream alternatives and the condition that selects them. It also specifies the exact payment retry procedure (call once to receive PaymentRequired, call again with the signed payment), leaving nothing to inference about how to invoke it successfully.

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.