Skip to main content
Glama
LareLabs

refinery-mcp

by LareLabs

clean_html

Strips and normalizes raw HTML to produce clean, LLM-ready text, with optional extraction of hashtags and mentions, reducing token usage for AI agents.

Instructions

Clean raw HTML that your agent, crawler, or browser session already fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesRaw HTML to strip and normalize.
extractHashtagsNo
extractMentionsNo
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only states 'Clean' and from the parameter description 'strip and normalize.' It does not detail what cleaning entails (e.g., removal of scripts, styles), side effects, or error conditions, leaving significant gaps.

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 description is a single concise sentence, front-loaded with the key action. It avoids verbosity, though it could include more detail without becoming overly long. Still, it is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has three parameters, no output schema, and low schema coverage, the description is insufficient. It provides no information about return values, default behaviors of boolean parameters, or any preconditions, making it incomplete for an agent to use confidently.

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 description coverage is only 33% (only the 'html' parameter has a description). The description fails to explain the purpose of the 'extractHashtags' and 'extractMentions' boolean parameters, leaving the agent to guess. With such low coverage, the description should compensate but does not.

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 clearly states 'Clean raw HTML' with a specific verb and object, and specifies the source (agent, crawler, browser session). It distinguishes this tool from sibling tools like clean_url and estimate_savings by focusing on HTML cleaning.

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?

The description tells when to use this tool: when you have raw HTML from fetching. It does not provide explicit exclusions or alternatives, but the context of 'already fetched' implies a specific scenario, which is helpful.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LareLabs/refinery-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server