Skip to main content
Glama

Minify an HTML fragment

is-html-minify
Read-onlyIdempotent

Conservative HTML minification, review results before production. Use to reduce whitespace in a controlled HTML fragment before delivery. For CSS or JavaScript, use is-minify-css or is-minify-js. Transformation tool, not a boolean validator. Returns minified HTML text using a heuristic, not a standards-compliant HTML parser; regression-test output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesOriginal HTML source as text, up to 4096 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered; the description goes further and discloses the implementation risk an agent would otherwise not know: output comes from a heuristic, not a standards-compliant parser, so regression-testing is advised. It also states the return shape (minified HTML text), which matters because no output schema exists.

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?

Four short sentences that are front-loaded with purpose and each carry distinct content (scope, caution, alternatives, caveat). Slightly redundant, since the 'review results before production' and 'regression-test output' warnings say nearly the same thing twice.

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 transformer, the definition covers purpose, routing to siblings, the nature of the returned value, and the fidelity caveat. Nothing an agent needs in order to call it correctly is missing.

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?

There is one parameter with 100% schema description coverage, including the 4096-character maxLength, so the schema carries the semantics. The description adds no format or encoding detail beyond what the schema already says. Baseline 3 applies when the schema does the heavy lifting.

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 ('Conservative HTML minification') and immediately frames the operation as a text transformation, explicitly contrasting with the boolean-validator siblings ('not a boolean validator'). Combined with naming is-minify-css/is-minify-js, an agent can place this precisely in the tool family without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit use condition ('reduce whitespace in a controlled HTML fragment before delivery') plus a caution to review before production, and routes to the correct alternatives for other languages. Both when-to-use and when-to-use-something-else are stated.

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