Skip to main content
Glama

HTML to plain text

html.to-text
Read-onlyIdempotent

Converts HTML to readable plain text: drops scripts/styles/comments and all attribute text, keeps paragraph and list structure, separates table cells with " | ", decodes numeric and common named entities, and returns the separately. Input up to 250000 characters; single linear pass. Price: $0.01 USDC per call on Base mainnet ($0.001 on Base Sepolia), paid with x402; failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML markup to convert.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / html / description
      Previous value: -"HTML markup to convert to text."New value: +"HTML markup to convert."
    • addedInput schema / properties / html / maxLength
      Added value: +250000
    • addedInput schema / properties / html / minLength
      Added value: +1
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial beyond-schema behavior: exactly what content is stripped, entity decoding rules, separate <title> return, a 250000-char ceiling, a single linear pass, and x402 payment terms (price per network, failed calls not charged). That pricing and failure-charging detail is genuinely useful operational context an agent cannot get from 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?

Front-loaded with the core verb+resource, then layered behavior, limits, and pricing in a compact form with no filler sentences. It is a single dense sentence, but every clause carries either transformation semantics or operational constraint, so nothing feels wasted.

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?

For a single-parameter, no-output-schema conversion tool, the description covers inputs, output shape (<title> separated from body text), structural handling, limits, and cost model. An agent has everything needed to call it correctly and anticipate the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter and schema description coverage is 100%, so the schema already documents it; baseline would be 3-4. The description reinforces this by restating the 250000-character input limit, adding a soft confirmation of the boundary rather than new semantics.

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+resource (Converts HTML to readable plain text) and immediately scopes the transformation: what is dropped (scripts/styles/comments, attribute text), what is preserved (paragraph/list structure), and how tables and entities are handled. This distinguishes it clearly from siblings like text.extract, text.chunk, and summarize.

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?

The description implies usage through its input constraint (up to 250000 characters) and its conversion semantics, but never states when to pick this over the adjacent text.extract or text.chunk tools. No when-not conditions or prerequisites are given, so selection is left to inference.

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