Skip to main content
Glama

Convert HTML to Markdown

convert_html_to_markdown
Read-only

Convert HTML you already have into clean Markdown without fetching any URL. Choose article or full body, control links, images, and output length.

Instructions

Converts HTML you already hold to Markdown. Nothing is fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesThe HTML to convert, up to 2 MB.
modeNo`article` (default) keeps the main content. `full` converts the whole body.article
linksNoWhen false, replaces links with their text.
imagesNoWhen false, drops images from the output.
max_charsNoLongest Markdown to return, in characters, from 1000 to 500000. Sent as 20000 when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safe/read-only profile is covered. The description usefully adds that no fetching occurs (a pure local transform), but says nothing about error behavior or output shape, so this is an incremental addition over the annotations.

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?

Two short, front-loaded sentences with no filler; the core purpose comes first and the scoping clarification second. It is lean, though it could carry a bit more operational detail without bloating.

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?

This is a low-complexity pure transform with full schema coverage, and the description covers the essential 'no network fetch' point. It omits anything about the returned Markdown or error/limit handling, which for a converter tool would be nice but is not strictly required.

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 five parameters (including the enum and the 2 MB limit) are already documented in the schema. The description adds no parameter-level detail, which is the expected baseline when the schema does the heavy lifting.

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?

States a specific verb and resource ('Converts HTML ... to Markdown') and adds the scoping phrase 'HTML you already hold,' which separates it from fetch-oriented siblings like render_html and read_webpage. It does not name a sibling outright, but the purpose is unambiguous.

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?

'Nothing is fetched' implies the use case is HTML already in hand, guiding the agent away from network tools. However, it never states when-not to use this or names the alternative, so usage is only implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.