Skip to main content
Glama
Web Validator by DigestSEO

Web Validator by DigestSEO

Compare HTTP source HTML and sandboxed rendered DOM SEO signals

browser.dom_diff
Read-onlyIdempotent

V07 local-only: compare two caller-supplied raw/rendered HTML snapshots offline, or render caller-supplied HTML in fresh network-denied Chromium with inline scripts only, or fetch one robots-allowed public HTML page and sample its…

Instructions

V07 local-only: compare two caller-supplied raw/rendered HTML snapshots offline, or render caller-supplied HTML in fresh network-denied Chromium with inline scripts only, or fetch one robots-allowed public HTML page and sample its inline-script DOM. Detects changed/missing title, description, H1, text, same-origin anchor links, canonical, noindex and JSON-LD declarations using bounded redacted evidence. Does not load external JS/CSS/assets, impersonate Google WRS, access GSC/GA4, claim indexing or save content. Inline modes execute untrusted JS only inside fresh browser sandbox; external requests are denied.

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": {
      "mode": "<mode>"
    },
    "name": "browser.dom_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoOnly for live_inline_sandbox: safe public query-free HTTP(S) page URL; robots.txt permission checked before GET.
modeYesChoose offline caller snapshots, local Chromium inline-script execution, or a guarded public HTML fetch followed by the same isolated browser render.
page_urlNoFor offline modes, the page URL label for resolving relative links and canonicals; never fetched.
raw_htmlNoCaller-observed source HTML. Inline mode executes only its inline scripts in a fresh, offline Chromium sandbox.
rendered_htmlNoOnly compare_snapshots: rendered HTML already obtained by an authorized browser or source; never executed or fetched.

Output Schema

NameRequiredDescriptionDefault
rawYes
errorNo
scopeYes
findingsYes
renderedYes
h1_changedYes
limitationsYes
title_changedYes
total_findingsYes
noindex_changedYes
browser_executedYes
coverage_limitedYes
main_words_addedYes
canonical_changedYes
shared_main_wordsYes
findings_truncatedYes
link_targets_addedYes
main_words_removedYes
link_targets_removedYes
script_errors_observedYes
unchanged_link_targetsYes
inline_scripts_attemptedYes
external_resources_blockedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.53

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, but the description adds substantial behavior beyond them: fresh network-denied Chromium, inline-script-only execution, external JS/CSS/assets not loaded, robots.txt permission checked before the GET, untrusted JS confined to the sandbox, bounded redacted evidence, and explicit negatives (no GSC/GA4, no WRS impersonation, no saved content). This is exactly the kind of sandbox isolation and fetch guardrail an agent needs before invoking a tool that executes untrusted HTML.

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 a single dense sentence chaining three 'or' clauses followed by a detection list and a negative list, which is efficient in length but poor in structure — the mode structure is buried mid-sentence rather than front-loaded. The 'V07 local-only' token spends words on versioning idiom that an agent cannot act on. It is compact but would benefit from bullet-style separation of modes.

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 multi-mode tool that executes untrusted JS and performs a guarded network fetch, the definition covers scope, safety boundaries, and detection targets, and the output schema handles return values while annotations cover the safety profile. The remaining gap is that 'bounded redacted evidence' is asserted without explaining the bound or the redaction rule, which matters when interpreting returned evidence. Otherwise it is complete enough to call correctly.

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 coverage is 100%, so all five parameters are already documented, including that url is only for live_inline_sandbox and rendered_html is only for compare_snapshots. The description reinforces the mode semantics ('inline modes execute untrusted JS only inside fresh browser sandbox') but adds no format, limit, or interaction detail beyond what the schema states. Baseline 3 applies when the schema carries the parameter burden.

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?

The description enumerates three distinct operations with concrete verbs and resources: compare caller-supplied raw/rendered snapshots, render caller HTML in a fresh network-denied Chromium with inline scripts only, or fetch one robots-allowed public page and sample its inline-script DOM. It also lists the exact signals detected (title, description, H1, text, same-origin anchors, canonical, noindex, JSON-LD), which is far more specific than the title alone. It stops short of a 5 because the 'V07 local-only' prefix is opaque jargon and no sibling tool is named as an alternative.

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 description establishes context for each of the three modes (offline snapshots, sandboxed inline execution, guarded public fetch), which implies when each applies. However, it never explicitly says when to prefer this tool over siblings such as browser.lighthouse_lab, html.local, or seo.metadata, and the mode selection rule is left to the schema enum. Usage is implied rather than stated.

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