Skip to main content
Glama

IA-QA — 130+ QA & Dev Tools for AI Agents

html_to_markdown

Read-onlyIdempotent

Convert HTML to clean Markdown. Strips scripts, styles, nav, ads, and comments. Converts headings, lists, links, images, code blocks. Ideal for preparing web content as LLM context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesHTML string to convert
strip_linksNoStrip link URLs, keep text only (default: false)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
markdownNo
markdown_lengthNo
original_lengthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "markdown": {},
      +  "markdown_length": {
      +    "type": "number"
      +  },
      +  "original_length": {
      +    "type": "number"
      +  }
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Despite annotations already declaring readOnly, idempotent, and non-destructive, the description adds valuable behavioral detail: it strips scripts, styles, nav, ads, and comments, and converts specific HTML elements. This goes beyond annotations and gives the agent a clear mental model of the tool's output.

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?

The description is two sentences: the first states the primary action, the second lists what is stripped and converted, ending with a use case. Every word contributes, with no wasted space or redundancy.

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?

The tool is moderate complexity, but with an output schema present and clear annotations, the description covers all essential aspects: input, transformations, removals, and ideal usage context. No critical gaps remain for an agent to use the tool correctly.

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 coverage is 100%, with both 'input' and 'strip_links' already described in the schema. The description mentions links in the conversion list, which slightly reinforces the strip_links option, but it adds no new parametric meaning beyond the schema. Baseline 3 is appropriate given the complete schema coverage.

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?

The description starts with a specific verb+resource: 'Convert HTML to clean Markdown.' It then enumerates the transformations (headings, lists, links, images, code blocks) and removals (scripts, styles, nav, ads, comments), making the tool's function unmistakable and distinguishing it from siblings like strip_markdown or escape_html.

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?

The phrase 'Ideal for preparing web content as LLM context' provides clear context for when to use the tool, but it does not explicitly mention exclusions or alternatives. Since siblings like strip_markdown or extract_links exist, a brief 'when-not' statement would elevate this, but the context is adequate.

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