Skip to main content
Glama

audit_html_document

Read-onlyIdempotent

Audit static HTML for duplicate canonicals, invalid hreflang, encoding or mojibake issues, heading outline gaps, and robots meta directives without fetching URLs.

Instructions

Audit supplied static HTML for multiple canonicals, hreflang validity, encoding/mojibake, H1-H6 outline and robots meta without fetching URLs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "html": "<html>"
    },
    "name": "audit_html_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
htmlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered; the description reinforces the no-network constraint and enumerates what gets inspected. It adds nothing about result shape, severity reporting, or how findings are grouped, which matters given there is no output schema.

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?

A single dense sentence with the resource and the no-fetch constraint stated up front and the check list following. No filler, no restatement of the name.

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

Completeness3/5

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

For a two-parameter read-only auditor the core scope is well conveyed, but the unexplained `url` parameter and the absence of any indication of return format leave real gaps for an agent deciding how to call it and what to expect back.

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 0%, so the description must carry parameter meaning, and it never mentions either parameter. Most notably the optional `url` field is left unexplained while the description insists no URLs are fetched, leaving an agent unsure whether to supply it or what it affects.

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?

"Audit supplied static HTML" gives a specific verb and resource, and the enumerated checks (multiple canonicals, hreflang validity, encoding/mojibake, H1-H6 outline, robots meta) define exact scope. The trailing "without fetching URLs" separates it from live-crawl siblings such as audit_live_crawl_hreflang and audit_redirect_chains.

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?

"Supplied static HTML" plus "without fetching URLs" clearly signals the situation that selects this tool: you already hold the markup and must not hit the network. It stops short of naming an alternative tool for the fetch-the-URL case, so the routing is implied rather than explicit.

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