Skip to main content
Glama

URL to Markdown API — ScriptMasterLabs

Url To Markdown

url_to_markdown

URL to Markdown — convert any public HTTPS URL to clean LLM-ready Markdown for $0.001 USDC per accepted read, settled via x402 on Base. Failed reads are never charged. Use this when an agent needs a web page's content as compact Markdown, for example to ground a research answer. Returns the converted Markdown up to max_chars. An unsigned call returns the live x402 PAYMENT-REQUIRED challenge and never auto-spends; retry only with a challenge-specific payment_signature. A free fixed-source preview is at GET /api/web/preview and agent onboarding at GET /api/web/skill.md. Unsigned calls are read-only and idempotent with no side effects; a supplied signature authorizes one paid, irreversible x402 settlement in USDC on Base. On error, returns a structured error. For example, fetch a documentation page before summarizing it.

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTPS URL to read.
max_charsNoMaximum Markdown characters to return, 1000-50000. Default 12000.
payment_signatureNoCanonical x402 v2 PAYMENT-SIGNATURE bound to this exact URL to Markdown challenge.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the upstream HTTP status is 2xx; not settlement proof.
bodyNoUnmodified upstream JSON, or bounded response text. Consult that capability's live schema.
errorNo
chargedNoPresent on local/transport failures; these do not establish an upstream charge.
messageNo
auto_spentNo
status_codeNoObserved upstream HTTP status, or null when no response was obtained.
substitutedNo
content_typeNo
payment_requiredNoObserved PAYMENT-REQUIRED header; a challenge does not prove payment.
payment_responseNoObserved PAYMENT-RESPONSE header. Assess it together with accepted delivery.
caller_supplied_authorizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: $0.001 USDC per accepted read, failed reads never charged, unsigned calls return a live x402 PAYMENT-REQUIRED challenge and never auto-spend, a supplied signature authorizes one irreversible settlement, and errors are structured. This is exactly the payment/auth behavior an agent cannot get from readOnlyHint/destructiveHint alone.

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?

Purpose and pricing are front-loaded, followed by usage and payment behavior, then an example. It is longer than typical but the length is justified by the x402 payment flow; a slight trim of overlapping 'no side effects' phrasing would improve it.

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?

Given an output schema exists, the description need not explain return shape, and it still notes Markdown up to max_chars. It covers the paid settlement chain, unsigned challenge behavior, error handling, and the free preview path, which is everything an agent needs to call this correctly.

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 still adds value: it explains that max_chars truncates the returned Markdown and that payment_signature must be bound to this exact URL-to-Markdown challenge and triggers one irreversible settlement, which is more than the schema labels convey.

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 ('convert any public HTTPS URL to clean LLM-ready Markdown') plus cost and settlement rail (x402 on Base). No sibling tool performs URL-to-Markdown conversion, so an agent can route here without opening another 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?

Explicitly names the triggering condition ('when an agent needs a web page's content as compact Markdown, for example to ground a research answer'), points to a free preview alternative at GET /api/web/preview, and gives the retry rule for the payment signature. Nothing is left to inference.

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.

Resources