Skip to main content
Glama

mechacut

html_text

HTML -> canonical text: invisible regions dropped, block structure as newlines, whitespace collapsed by a closed rule, entities decoded exactly once, optional link labels with hrefs (javascript:/data: refused and counted). The anti-hallucination tool for scraping agents. $0.001 per call: industrial volume funds the free half.

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

Input Schema

NameRequiredDescriptionDefault
htmlYes
max_bytesNo
keep_linksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the normalization rules, that javascript:/data: hrefs are refused and counted, and the per-call cost. Gaps remain on error behavior and what happens when max_bytes truncates, so not a 5.

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?

The core mapping and transformation rules are front-loaded and dense with information; each clause earns its place. The closing pricing sentence mixes a useful cost signal with marketing framing ("industrial volume funds the free half") that is not operational guidance.

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?

No output schema, no annotations, and no parameter descriptions mean the description must cover behavior and return shape. It explains transformations and the link-refusal count, but never states what the tool actually returns (text plus counts? stats object?) or the truncation semantics, leaving an agent under-informed for a 3-parameter tool.

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

Parameters2/5

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

Schema coverage is 0%, so the description must explain all three parameters. It only covers keep_links (via "optional link labels with hrefs"), leaving max_bytes entirely undefined — an agent cannot tell whether exceeding it errors, truncates, or silently degrades output — and says nothing about the html input's expected form.

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 first clause states a precise verb+resource mapping (HTML -> canonical text) and enumerates the exact transformations applied (invisible regions dropped, block structure as newlines, whitespace collapsed, entities decoded once). An agent can tell this is an HTML-to-text normalizer, distinct from generic text utilities in the sibling list, 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"The anti-hallucination tool for scraping agents" implies the context of use (cleaning scraped HTML before reasoning) but never states when to prefer this over siblings like doc_text, nor any when-not conditions. Usage is inferable rather than directed.

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.