Skip to main content
Glama

markdown_to_html

Read-onlyIdempotent

utilpeek: Convert Markdown to sanitized HTML. For the reverse use html_to_text. Returns the HTML of a Markdown document (markdown-it-py; gfm adds tables, strikethrough, autolinks and task lists), cleaned by an allow-list sanitizer (nh3): no scripts, event handlers, iframes, forms or javascript:/data: links; every link gets rel="nofollow noopener noreferrer". HTML over 4 MB is a 422 output_too_large. Parsed in an isolated, resource-limited child process without network; input over its limits is a 422 (not charged). Typically under 0.5 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/markdown-to-html-api.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
flavorNogfm (default) adds tables, strikethrough, autolinks and task lists.gfm
markdownYesMarkdown source (at most 200,000 characters).

Output Schema

NameRequiredDescriptionDefault
htmlNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
flavorNo
sourceNo
sanitizedNo
html_charsNo
removed_by_sanitizerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / flavor / title
      Removed value: -"Flavor"
    • removedInput schema / properties / markdown / title
      Removed value: -"Markdown"
    • removedInput schema / title
      Removed value: -"markdown_to_htmlArguments"
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "library": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "flavor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "html": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "html_chars": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "removed_by_sanitizer": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "sanitized": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources