Skip to main content
Glama

ScorpTech x402 Tools

Html To Markdown

html_to_markdown
Read-onlyIdempotent

Convert an HTML string to clean Markdown (GFM tables, fenced code, nested lists). No fetch. Body: { "html": "...", "base_url"?: "https://...", "extract_main"?: false }. Returns JSON with: markdown, title, chars, words, input_bytes. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/html-to-markdown

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": {
      "html": "<html>"
    },
    "name": "html_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML to convert (JSON body; the service caps request bodies at 256 KB)
base_urlNoOptional http(s) URL used only to absolutise links (never fetched)
extract_mainNoStrip boilerplate, keep main content (default false)
include_linksNodefault true
include_imagesNodefault true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing the price ($0.005 USDC per successful call, x402 on Base or Solana), the 256 KB body cap, the no-fetch guarantee, and the exact return payload fields. Cost and payment rail disclosure is exactly the kind of context annotations cannot carry.

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 purpose and the no-fetch constraint, then pricing and transport. The inline body-shape recap is partly redundant with the schema, but the whole definition is short and every other sentence carries distinct information.

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 no output schema, the description supplies the return fields (markdown, title, chars, words, input_bytes), which is what an agent needs to plan a follow-up call. Only the include_links/include_images toggles are left unexplained, a minor gap for a low-complexity conversion tool.

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 coverage is 100%, so the schema already documents all five parameters including defaults. The description restates the body shape (html, base_url, extract_main) but adds no new meaning and omits include_links/include_images entirely. 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 (convert an HTML string to Markdown) plus the output flavor (GFM tables, fenced code, nested lists). The 'No fetch' clause immediately separates it from URL-fetching siblings like url_markdown and from the reverse-direction markdown_to_html.

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 'No fetch' note tells the agent this is for HTML already in hand rather than a URL, which is the key routing decision. It also names the HTTPS endpoint as an equivalent transport. It stops short of explicitly naming a sibling to use for URLs, so no explicit 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