Skip to main content
Glama

Validate HTML

validate_html
Read-onlyIdempotent

Use this when raw HTML markup is supplied. Sends that markup to the Nu HTML Checker hosted at validator.nu and returns validation messages. For a live URL, use audit_public_webpage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesRaw HTML markup supplied by the user; this is not a webpage URL.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
messagesYes
overviewYes
truncatedYes
total_messagesYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive. The description adds context about invoking an external service (validator.nu), implying network dependency, and clarifies the return type (validation messages). This provides meaningful behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the usage condition, and no unnecessary words. It is optimally concise while conveying all essential information.

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 tool with an output schema, the description covers purpose, input type, external service, return value, and sibling differentiation. There are no critical gaps.

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?

The schema covers the only parameter 'html' with 100% description coverage, including 'Raw HTML markup supplied by the user; this is not a webpage URL.' The tool description adds no additional parameter semantics beyond what the schema already provides, so baseline 3 applies.

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 the tool sends raw HTML markup to the Nu HTML Checker and returns validation messages. It also distinguishes itself from the sibling 'audit_public_webpage' by noting that tool is for live URLs.

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?

Explicitly provides when to use: 'Use this when raw HTML markup is supplied.' It also names an alternative: 'For a live URL, use audit_public_webpage.' This is clear, actionable 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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: site audit, single page audit, SEO metadata check, broken links check, combined report generation, and separate validators for CSS, HTML, and JSON-LD. Descriptions explicitly clarify boundaries (e.g., 'does not fetch a live webpage' vs 'use for a live URL').

Naming Consistency3/5

Tools use four different verb prefixes ('audit_', 'check_', 'generate_', 'validate_') without a unifying pattern, making the naming scheme somewhat inconsistent. While each prefix is reasonable, the lack of a consistent verb_noun structure reduces predictability.

Tool Count5/5

With 8 tools, the set is well-scoped for a web validation server, covering the major validation tasks (HTML, CSS, JSON-LD, broken links, SEO signals, site audit) without unnecessary bloat. Each tool earns its place.

Completeness4/5

The tool surface covers core validation needs for public websites, but lacks some advanced SEO checks (e.g., mobile-friendliness, performance) and does not validate Schema.org vocabulary semantics. Minor gaps exist but do not severely hinder the server's primary purpose.

Resources