Skip to main content
Glama

audit_hydration_diff

Read-onlyIdempotent

Compare raw server HTML against client-rendered DOM to detect CSR-only content, missing H1 tags, canonical/robots mutations, and client-only JSON-LD without fetching URLs.

Instructions

Compare raw server HTML against client-rendered DOM HTML for CSR-only content, missing H1, canonical/robots mutations and client-only JSON-LD 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": {
      "rawHtml": "<rawHtml>",
      "renderedHtml": "<renderedHtml>"
    },
    "name": "audit_hydration_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
rawHtmlYes
renderedHtmlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add context — and it does, by making clear the tool performs no network fetch and operates purely on supplied markup, plus what classes of divergence it reports. It stops short of describing the shape or granularity of the diff result.

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?

A single front-loaded sentence with the core comparison first and the detected defect list after. The list is dense and slightly run-on, but every clause carries information and nothing is redundant.

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?

With no output schema and no parameter descriptions, an agent still cannot anticipate what the diff returns (per-issue entries? a unified HTML diff? severity?) or how to interpret a match. For a three-parameter comparison tool with zero schema documentation, the definition is adequate but leaves a meaningful gap around results.

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 0%, so the description must carry the load. It effectively explains the two required parameters (rawHtml = server HTML, renderedHtml = client DOM), but the optional `url` parameter is never mentioned, nor are the size limits or accepted formats that only appear in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (compare) and two precise resources (raw server HTML vs client-rendered DOM HTML), then enumerates the defect classes it surfaces: CSR-only content, missing H1, canonical/robots mutations, client-only JSON-LD. That is far more specific than the surrounding audit_* siblings, though it never names a sibling to contrast against.

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

Usage Guidelines3/5

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

The trailing phrase 'without fetching URLs' implies the caller must already hold both HTML strings, which is real usage context. But there is no explicit statement of when to prefer this over audit_html_document or a live-crawl tool, and no prerequisites or exclusions.

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