Flatten a redirect chain
flatten_redirect_chainPoint a chained redirect straight at its final destination, turning A → B → C into A → C. Takes a chainId from list_redirect_chains. A loop is refused (there's nothing sane to point at), as is a final destination that would itself 404.
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": {
"chainId": "<chainId>"
},
"name": "flatten_redirect_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | From list_redirect_chains |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | Yes | ||
| target | Yes | The final destination it now points at | |
| message | Yes |