validate_hreflang
Check a page's hreflang tags for international SEO, including ISO 639-1 codes, x-default, self-references, duplicates, and optional return-link verification.
Instructions
Validate hreflang link elements on a page for international SEO. Checks language code format (ISO 639-1), x-default presence, self-referencing tags, duplicate codes, and optionally verifies that target pages link back (return link validation).
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": {
"url": "<url>"
},
"name": "validate_hreflang"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The fully-qualified URL to validate hreflang tags for. | |
| maxReturnChecks | No | Maximum number of return link checks to perform. Defaults to 10. | |
| checkReturnLinks | No | When true, fetch each hreflang target and verify it links back. Slower but catches missing bidirectional links. |