Skip to main content
Glama

Web page to markdown

markdown
Read-only

Fetches a public URL and converts it to clean markdown, dropping navigation, scripts and styling. Works for HTML pages, PDFs, Word, Excel and CSV files. Returns the page title, final URL after redirects and the markdown text. Paid tool: $0.004 per call in USDC via x402 at GET https://x402-tools.com/v1/markdown. Calling it here returns the endpoint, price and how to pay.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic URL to convert.
max_charsNoTruncate the markdown to this many characters (default 100000, max 500000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover readOnly and openWorld; the description adds the traits that actually change agent behavior: the tool is paid at $0.004 per call in USDC via x402, and invoking it returns the endpoint, price and payment steps rather than the converted page. It also discloses what is stripped (navigation, scripts, styling), that redirects are followed with a final URL reported, and the returned fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: capability first, then supported formats and return values, then the payment constraint. Nothing is repeated and no sentence is filler; even the pricing detail earns its place because it explains why the call returns an endpoint.

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?

For an external, paid, single-purpose tool with no output schema, the description covers input scope, what gets discarded, what comes back, and the payment gating behavior. An agent has everything needed to decide whether to call it and what to expect.

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%, with both url and max_chars documented including default and cap, so the baseline is 3. The description adds no format or semantics detail for either parameter beyond what the schema already supplies.

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?

"Fetches a public URL and converts it to clean markdown" gives a specific verb plus resource, and the scope list (HTML, PDF, Word, Excel, CSV) makes it distinguishable from siblings like extract, summarize or screenshot. An agent can tell what it does 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 Guidelines4/5

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

The description establishes the precondition (public URL) and the file-type scope that qualifies a call, and it explicitly flags the paid/x402 path so the agent knows a call here returns payment instructions rather than content. It does not name a sibling alternative for cases where extraction or summarization is preferred, so it stops short of full when/when-not routing.

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