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 declare readOnlyHint, openWorldHint, and idempotentHint, covering safety and external dependence. The description adds the specific external service (validator.nu) and the fact that it's for raw markup, which is useful context but not a major disclosure 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 directive and purpose, with no wasted words. The alternative is mentioned concisely.

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?

Given the output schema exists, the one parameter is fully documented, and annotations cover safety, the description sufficiently explains what the tool does, when to use it, and how it differs from the closest sibling. Nothing critical 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?

The single 'html' parameter is fully described in the schema (100% coverage) with a clear note that it is not a URL. The description echoes this but doesn't add new semantic information, so it's at the baseline for high schema coverage.

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 action (sends markup to Nu HTML Checker and returns validation messages) and the specific resource (raw HTML markup). It also distinguishes itself from audit_public_webpage, making it easy to identify.

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 states when to use the tool ('when raw HTML markup is supplied') and provides a clear alternative for live URLs ('use audit_public_webpage'). This gives the agent unambiguous routing criteria.

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.3/5.0
Disambiguation4/5

Tools are mostly distinct by input mode (live URL vs supplied HTML/CSS) and check scope (HTML, CSS, JSON-LD, SEO signals, links). The main ambiguity is between audit_public_webpage and generate_validation_report, which run nearly the same checks but differ only in fetching vs supplied HTML; their descriptions call this out clearly.

Naming Consistency4/5

All names follow a lowercase snake_case verb_noun pattern, but the set mixes four verbs (audit, check, generate, validate) for closely related validation operations. This is readable and predictable, with only minor semantic inconsistency around validate_schema_markup and generate_validation_report.

Tool Count5/5

Eight tools is well within the ideal range and each covers a distinct input type or validation focus. The count feels appropriate for a web-validation server without redundancy bloating the surface.

Completeness4/5

The domain is well covered: live-page and sitemap audits, raw HTML/CSS/JSON-LD validation, SEO/accessibility signals, and broken links are all represented. Minor gaps exist, such as no dedicated accessibility validator and limited link-checking behavior, but agents can accomplish the core workflows.