Canonical Host Check
canonical_host_checkChecks all four host/scheme variants of a domain to confirm they converge on one canonical URL, preventing self-competition and verifying permanent redirects.
Instructions
Fetch all four host/scheme variants of a domain — http/https × apex/www — and confirm they converge on a single canonical URL. Divergence is the classic cause of a homepage competing with itself in the index.
Also reports whether plain HTTP is upgraded to HTTPS, whether canonicalisation uses permanent (301/308) rather than temporary (302/307) redirects, and which variants do not serve content at all.
Args:
site (string): a domain such as 'example.com' (www and scheme are ignored).
response_format ('markdown' | 'json'): output format (default 'markdown').
Returns: { domain, variants[{variant, reachable, status, final_url, hop_count, redirect_statuses[]}], canonical_url, converges, distinct_endpoints[], forces_https, score, grade, findings[] }.
Example: "Do all versions of example.com redirect to one URL?" -> canonical_host_check(site="example.com").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site domain or any URL on it, e.g. 'example.com'. Only the origin is used. | |
| response_format | No | Output format: 'markdown' for a human-readable summary (default) or 'json' for the full structured payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | ||
| score | Yes | ||
| domain | Yes | ||
| findings | Yes | ||
| variants | Yes | ||
| converges | Yes | ||
| forces_https | Yes | ||
| canonical_url | Yes | ||
| distinct_endpoints | Yes |