Skip to main content
Glama

Agent Data Tools: Utilities

HTML to plain text: strip HTML down to readable plain text

html_to_text
Read-only

Strip HTML to readable plain text: scripts and styles removed, block elements become line breaks, list items get bullets, entities decoded. Use to feed web content or emails to an LLM. Example: html=HiA & Bone. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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
htmlYesThe HTML

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: specific normalization rules, billing semantics ($0.01/call, first 10 free, failed calls free), and the important non-obvious fact that each call is charged so repeats are not free despite idempotentHint=false. It also reinforces that the tool reads/computes only and changes nothing.

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-loads the transformation behavior and usage context, then gives a compact example. The pricing sentence is somewhat dense but earns its place by explaining cost and free-call behavior.

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?

For a one-parameter conversion tool with no output schema, the description covers what gets stripped, how structure is represented, billing, and example input. It does not specify exact whitespace normalization or output edge cases, but is complete enough to invoke correctly.

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?

Schema coverage is 100% and the single parameter is minimally documented as 'The HTML', but the description adds a concrete input example showing headings, paragraphs, entities, and lists. That gives useful format expectations beyond the schema.

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: 'Strip HTML to readable plain text', and immediately describes the concrete transformations (scripts/styles removed, block elements to line breaks, bullets, entity decoding). This distinguishes it from conversion siblings like markdown_to_html by making plain-text extraction the explicit output.

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?

Gives a clear usage context: 'Use to feed web content or emails to an LLM.' It does not state when not to use it or name alternatives such as html_table_to_json when tabular structure matters, so it falls short of explicit exclusion 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