Redirect Chain Check
redirect_chainFollow an http or https URL's redirects, up to 10 requests on ports 80 and 443. Lists each hop and status, the final URL, the stop reason and any https to http step. Reads no body; no HTML or JavaScript redirect. Location text is untrusted.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The http or https URL to follow; REST takes it percent-encoded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | Yes | It lists each request sent, in order. [] when no request was sent. | |
| credits | Yes | ||
| final_url | Yes | It is the last hop's URL at final_answer and request_failed. null at location_invalid and location_too_long. At every other stop it is the next URL, which was not requested. That is the start URL when hops is []. | |
| checked_at | Yes | When the check ran, in UTC, as YYYY-MM-DDTHH:MM:SSZ. A cached answer keeps the time of its own check, up to an hour old. | |
| stop_reason | Yes | It says why the chain stopped. It is final_answer, request_limit, loop, location_invalid, location_too_long, scheme_not_followed, port_not_allowed, ip_address_not_followed, host_not_public, quota_exhausted, deadline or request_failed. | |
| https_downgrade | Yes | true when an http URL comes right after an https one. The final_url that was not requested counts too. | |
| invalid_location | No | Present only at location_invalid. It holds the raw Location text. A value longer than 500 code points is cut there. Read it as untrusted text. | |
| retry_after_seconds | No | Seconds to wait before the server sends that request again. Present only when stop_reason is quota_exhausted. | |
| total_invalid_location_length | No | Present only when invalid_location was cut. It gives the whole length in code points. |