Skip to main content
Glama

Doc-to-LLM Markdown, Table JSON, RAG Chunker & PII Redactor

html_to_llm_markdown

Deterministically convert user-supplied HTML into clean LLM-ready Markdown, removing script/style/nav boilerplate while extracting heading outline, tables, links, and token estimates.

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

Input Schema

NameRequiredDescriptionDefault
htmlYesRaw HTML document or fragment supplied by caller.
base_urlNoOptional base HTTP(S) URL for resolving relative links.
strip_navNoRemove <nav>, <header>, <footer>, <aside> boilerplate.
include_linksNoPreserve hyperlinks as Markdown [text](url).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose meaningful behavior: determinism, boilerplate stripping, and the kinds of artifacts extracted (headings, tables, links, token estimates), but it says nothing about error handling for malformed HTML, input size limits, or the actual response shape, which matters given there is no output schema.

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?

A single front-loaded sentence that packs the core action, the removals, and the extractions with no filler. It is slightly dense as a run-on, but 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 four-parameter tool with no annotations and no output schema, the description covers purpose and the broad categories of returned content, which is a reasonable baseline. It leaves gaps on return structure and failure behavior that an agent would need before relying on the output programmatically.

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 the schema already documents all four parameters including defaults. The description reinforces the nav-stripping and link-preservation behavior but adds no syntax, format, or interaction detail beyond the schema, and base_url is not addressed at all.

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: deterministically convert HTML into LLM-ready Markdown, plus the scope of what is removed (script/style/nav) and what is extracted. This clearly separates it from siblings like table_to_structured_json and rag_semantic_chunker without naming them.

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 is implied by the purpose ('user-supplied HTML' in, Markdown out), but there is no explicit when-to-use or when-not guidance, and no routing to alternatives such as a chunker for post-processing or the table extractor for structured output. The agent must infer selection from the purpose statement alone.

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