Skip to main content
Glama

Convertir HTML a Markdown

html-to-markdown
Read-onlyIdempotent

Convierte HTML en Markdown (GFM): títulos, párrafos, énfasis, enlaces, imágenes, listas anidadas, citas, código, tablas y reglas; decodifica entidades y quita scripts y estilos. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: convertir HTML en texto plano legible (html-to-text). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Converts HTML to GitHub-flavored Markdown by string processing: headings, paragraphs, emphasis, links, images, nested lists, blockquotes, code and fenced code with language, tables and rules, with entities decoded and script/style dropped. Not a full HTML parser. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML (string; required).
escapeNoEscape Markdown characters (* _ ` [ ]) found in the text (boolean; optional; default true).

Output Schema

NameRequiredDescriptionDefault
markdownNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, and the description still adds real information: string-processing rather than a full HTML parser, determinism, script/style dropping, and explicit time and result-size limits. The stated '64 KB' input limit conflicts with the schema's maxLength of 262144, which is a mild self-inconsistency rather than an annotation contradiction.

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?

Purpose is front-loaded in the first clause and the when/not-for/effects/limits blocks are skimmable. The generic 'Cuándo' enumeration of unrelated artifacts (IP ranges, versions, tokens) is filler that dilutes the signal and could have been one short sentence.

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

Completeness4/5

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

With a rich output schema and full annotations, the remaining essentials — processing model, determinism, limits, scope exclusions — are all covered. The only real completeness defect is the input-size figure disagreeing with the schema's maxLength, which could mislead an agent about acceptable payload size.

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 both parameters (html, escape) are already documented, including escape's default and the specific characters it affects. The description adds nothing about parameters — notably it never mentions escape or when to disable it — so the baseline 3 applies.

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?

States a specific verb and resource ('Convierte HTML en Markdown (GFM)') and enumerates exactly which constructs are handled (headings, tables, fenced code with language, entity decoding, script/style removal). It also names the nearest sibling it is not ('No para: ... html-to-text'), so an agent can discriminate without opening a schema.

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

Usage Guidelines4/5

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

There is an explicit exclusion clause routing plain-text extraction to html-to-text, which is genuinely useful routing. However the 'Cuándo' clause is largely generic boilerplate (URLs, HTTP headers, tokens, IP ranges) that is not specific to HTML→Markdown and reads like a shared template rather than real selection 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