Skip to main content
Glama

Converts raw HTML you send to GitHub-flavoured Markdown

agent_intel_html_dom_to_clean_markdown
Read-only

Converts raw HTML you send (up to 500 KB) to GitHub-flavoured Markdown: headings, paragraphs, links, images, lists, code blocks, quotes, bold and italic. Scripts, styles, navigation, footers, forms and comments are removed; tables are flattened to text. Relative links need a base URL to become absolute. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML text, 1 to 500000 characters
baseUrlNoOptional page address used to resolve relative links

Output Schema

NameRequiredDescriptionDefault
sourceNo
baseUrlNo
markdownNo
checkedAtNo
charactersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the input size ceiling, exactly which elements are stripped (scripts, styles, nav, footers, forms, comments), that tables are flattened, and the full billing model including price, payment rails, and that failed calls are free. That cost and lossiness disclosure is exactly the 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?

It is a single dense paragraph with the core transformation front-loaded and the edge cases and pricing trailing. Nearly every clause carries information, though the lossless/lossy list and the payment specifics could be tightened slightly.

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?

An output schema exists, so return shape need not be described; the description instead covers what an agent actually needs to decide and call correctly: input limits, transformation losses, link resolution, and cost. Nothing material is missing for a two-parameter 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 100%, so baseline is 3, but the description adds genuine meaning: it explains the consequence of omitting baseUrl ('Relative links need a base URL to become absolute') and echoes the character limit on html. An agent learns why the optional parameter matters, not just its type.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Converts raw HTML you send ... to GitHub-flavoured Markdown') and enumerates exactly which constructs are preserved. The phrase 'raw HTML you send' implicitly separates it from URL-fetching siblings like reader_markdown_extract, but no sibling is named, so an agent must infer the boundary.

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 rather than stated: the 500 KB cap and the 'you send' phrasing tell an agent this is for already-fetched markup, not for retrieval. There is no explicit when-to-use/when-not guidance or named alternative for the common case of starting from a URL.

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