hreflang / multilingual consistency check
hreflang_checkValidate hreflang annotations across HTML, HTTP headers, and XML sitemaps, checking reciprocity, self-reference, language-region codes, x-default, reachability, and canonical conflicts.
Instructions
For a page (or a sitemap sample), read its hreflang alternates from all three places the spec allows - HTML , the HTTP Link: header, and xhtml:link entries in the XML sitemap (used by several WordPress multilingual plugins) - and verify: every alternate URL is reachable, points back (reciprocal) to the source, has a self-referencing entry, uses valid language-region codes, has an x-default, and that canonicals do not contradict the alternates. Also compares with the declared hreflang and says which source each annotation came from.
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": "hreflang_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | ||
| sampleSize | No | ||
| sitemapUrl | No | Sitemap to sample pages from when urls[] is omitted; it is always also read for xhtml:link hreflang annotations. |