Skip to main content
Glama

Lookup Kit

html_to_text

Read-only

HTML to text, HTML to Markdown converter, strip HTML tags. Strip HTML down to readable plain text (scripts and styles removed, entities decoded, paragraphs kept), or convert it to Markdown with format=markdown. Price: $0.002 per call (x402, USDC on Base).

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYes
formatNotext

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description goes further by specifying the transformation semantics (scripts and styles removed, entities decoded, paragraph structure preserved). It also uniquely discloses the commercial model — $0.002 per call via x402/USDC on Base — which is behavior an agent cannot infer from structured fields. It omits any note on failure modes or the 8000-character input ceiling.

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 sentences, with the operative behavior and the mode switch placed early. The opening triad ('HTML to text, HTML to Markdown converter, strip HTML tags') is redundant keyword restatement that partially duplicates what the second sentence says properly.

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 no output schema, the description must characterize the return value, and it does: readable plain text with structure preserved, or Markdown when requested. Combined with the pricing disclosure, that covers what an agent needs to invoke it, though the input length limit and any behavior on truncated input remain unstated.

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 0%, so the description carries the burden, and it does explain the meaning of the format enum values and what text mode produces. It adds nothing about the html parameter itself — no hint that input is capped at 8000 characters or how oversized or malformed markup is handled — so it only partially compensates for the coverage gap.

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 names the exact resource (HTML) and the two concrete operations: strip to readable plain text, or convert to Markdown via format=markdown. The conversion direction also implicitly distinguishes it from the markdown_to_html sibling, so an agent can pick correctly without opening the 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?

It gives a clear mode-selection rule — default is plain-text stripping, use format=markdown for Markdown output — which is the main branch point for this tool. It stops short of naming exclusions or pointing at alternatives such as markdown_to_html for the reverse direction.

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