redirect_chain_audit
Walk every redirect hop to audit the chain, flagging issues: long chains, mixed protocols, loops, or non-200 endings. Max 10 hops.
Instructions
Walk the redirect chain for a URL without auto-following 3xx. Returns every hop (status, location, elapsed_ms) and flags issues: chain longer than 1, mixed-protocol hops (https -> http), loops, or non-2xx terminus. Cap defaults to 10 hops.
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": "redirect_chain_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL to audit. | |
| max_redirects | No | Maximum hops to follow before flagging the chain as too long. |