Skip to main content
Glama

Lint HTML

lint_html
Read-onlyIdempotent

Run the full deterministic check engine over HTML (from a URL or raw HTML string) and return detailed per-check results with rule IDs, fix hints, and the same work list as a keyed scan. Batched callers pass detail=failures to drop passing checks. In URL mode, a page whose robots.txt disallows it for aeogeo-scanner is not fetched (blocked_url). Use when: You have HTML for a draft, or you want a fresh check before you deploy. Avoid when: You only have a public URL and no HTML (scan_url). Markdown goes to lint_text. JSON-LD alone goes to audit_schema. Do not claim: A grade or a pass is not a citation. The check says the page matches the rulebook. Verify: Edit the HTML and call lint_html again. judge: engine — trust the pass/fail from the deterministic check (access, rendering, and mechanical structure). judge: agent — your agent re-reads the rule text and decides; the label comes from the deterministic judgeForCheck mapping, not an LLM on our side.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lint_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic URL to fetch and lint. Provide exactly one of url or html.
htmlNoRaw HTML to lint directly, at most 2 MB. Provide exactly one of url or html.
detailNoKeyed callers only; a free scan already lists failures alone and ignores it. full (default): every check. failures: only failed and skipped checks plus the page and group grades, grade_basis and the do-not-claim guidance — use it for batched calls or when a full response would be truncated.
content_typeNoContent type used to select applicable checks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description still adds real behavior beyond that — robots.txt-disallowed pages are not fetched and yield blocked_url, and detail=failures is meant for batched callers facing truncation. The 'do not claim' and 'judge: engine vs judge: agent' sentences disclose what a pass actually means and who assigns the label, which is genuine context. It falls short of 5 only because that trust/attribution language is dense and partly conceptual rather than operational.

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

Conciseness3/5

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

It is front-loaded correctly, leading with the core action and return value before routing rules. But the middle section is a stack of terse labeled fragments ('Do not claim:', 'Verify:', 'judge: engine —', 'judge: agent —') whose phrasing is compressed to the point of ambiguity, and the 'same work list as a keyed scan' clause is opaque without knowing the sibling scan tool.

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

Completeness4/5

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

For a 4-parameter read-only tool with full schema coverage and no output schema, the description is nearly complete: it describes the result contents, the blocked_url outcome, and the reduced response mode. The remaining gap is that content_type, which selects applicable checks, is never explained in prose and has no visible effect described anywhere in the definition.

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?

Schema description coverage is 100% and every parameter is already documented, so the baseline of 3 applies. The description reinforces two of them (URL vs raw string, and detail=failures for batched calls) but adds no syntax, defaults, or constraint details the schema does not already contain, and never mentions content_type at all.

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 sentence names a specific verb and resource ('Run the full deterministic check engine over HTML') and states both input modes (URL or raw string) plus the return shape (per-check results with rule IDs and fix hints). It explicitly distinguishes itself from lint_text (Markdown), audit_schema (JSON-LD), and scan_url (public URL only), so an agent can separate it from siblings 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?

It gives an explicit 'Use when' clause (draft HTML in hand, or a pre-deploy re-check) and an 'Avoid when' clause that routes URL-only work to scan_url, plus two further routing rules for Markdown and JSON-LD. Nothing about tool selection is left to inference.

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.