Skip to main content
Glama

Convert HTML to Markdown

convert_html_to_markdown
Read-only

Convert a web page (by URL) or a raw HTML string to Markdown, optionally keeping only the main content without navigation and footer.

Input Schema

NameRequiredDescriptionDefault
urlNoURL to fetch and convert (optional if html provided)
htmlNoRaw HTML to convert (optional if url provided)
extractContentNoExtract main content only, removing nav/footer/etc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds that the tool strips navigation/footer when extractContent is set, but that duplicates the schema; it says nothing about network/rate-limit behavior from fetching a URL or what a failed fetch returns.

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?

A single sentence that front-loads the core action and packs the two input modes plus the optional extraction behavior without filler. Every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only converter with no output schema, the description should at least state the return shape (a Markdown string) and conflict/error behavior when url fetch fails or both inputs are given. It is adequate for calling the tool but leaves the result contract implicit.

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%, so all three parameters (url, html, extractContent) are already documented at the same level the description provides. The description's 'optional if html provided' restates the schema's mutual-optionality without adding format or precedence rules.

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 gives a specific verb (convert), resource (HTML/web page), and output (Markdown), plus both accepted input modes (URL or raw HTML string). It is clear on its own, but it never distinguishes itself from the sibling get_page_markdown, which an agent could easily confuse with this tool.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of what to do when both url and html are supplied, and no differentiation from get_page_markdown or the other page-oriented siblings. Usage is only inferable from the phrase 'by URL or a raw HTML string'.

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