Skip to main content
Glama

ScorpTech x402 Tools

Markdown To Html

markdown_to_html
Read-onlyIdempotent

Render Markdown to safe HTML: CommonMark-style blocks (ATX / setext headings, paragraphs, block quotes, nested ordered / bullet lists, fenced and indented code with language classes, thematic breaks) and inlines (emphasis, strong, code spans, links, images, reference links, autolinks, hard breaks, escapes, entities) plus GitHub extensions (tables with alignment, task lists, strikethrough, bare URL autolinks). Raw HTML is escaped by default or allowlist-sanitized; javascript: and other unsafe URLs are dropped. Returns HTML, heading ids and a table of contents. Offline, deterministic. Returns JSON with: html, toc, headings, unsafeLinksRemoved, inputLength, outputLength. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/markdown-to-html

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": {
      "markdown": "<markdown>"
    },
    "name": "markdown_to_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
breaksNoTreat single newlines as <br>
markdownYesMarkdown source
allowHtmlNoKeep raw HTML (sanitised with an allowlist) instead of escaping it
headingIdsNoAdd GitHub-style id slugs to headings
linkTargetNoOpen links in a new tab (adds rel=noopener noreferrer)none

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: it states that raw HTML is escaped by default or allowlist-sanitized, that javascript: and other unsafe URLs are dropped, that output is offline and deterministic, and it enumerates the returned JSON keys. The cost and payment rail are also disclosed, which an agent needs before calling a paid endpoint.

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 action and then organized into blocks, inlines, extensions, safety, and output. The long parenthetical feature inventory is dense but each item delimits actual behavior; the pricing/HTTPS sentence at the tail is the least essential part.

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?

Although there is no output schema, the description enumerates the returned fields (html, toc, headings, unsafeLinksRemoved, inputLength, outputLength), covers sanitization semantics, and notes determinism, leaving essentially nothing an agent needs missing for a 5-parameter, single-purpose conversion tool.

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 already 100%, so the baseline would be 3, but the description adds real meaning by explaining the consequence of allowHtml (escape vs. sanitize) and that heading ids are part of the output tied to headingIds. The remaining flags (breaks, linkTarget) are left entirely to the schema.

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?

Opens with a specific verb and resource ("Render Markdown to safe HTML") and then enumerates the exact syntax surface supported, so an agent knows precisely what the tool will and won't convert. The direction of conversion is unambiguous against siblings like html_to_markdown.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage context is implied by the capability list (converting Markdown documents, sanitizing raw HTML) but there is no explicit when-to-use/when-not or a named alternative such as html_to_markdown for the reverse direction. The HTTPS endpoint line does give an alternative access route, but that is transport guidance, not task guidance.

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