Trace redirects
check_redirectsTrace a URL's redirect chain to detect loops, long chains, temporary redirects, HTTPS downgrades and error endings. Optionally verify all host/scheme variants end at the same final URL.
Instructions
Follow a URL's redirect chain hop by hop (max 10) and check host/scheme consistency.
Returns every hop with status code, Location and timing, flags loops, long chains, temporary redirects, https-to-http downgrades and error endings; optionally checks that the http/https and www/non-www variants all end at the same final URL.
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": "check_redirects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL, e.g. https://example.com/page | |
| check_variants | No | Also test http/https and www/non-www variants. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||