Check a redirect map
check_redirectsValidate a redirect map by checking old-to-new URL pairs, following each redirect, and returning pass, warn, or fail verdicts with a plain fix for each entry.
Instructions
Test a site-move redirect map: follow each old URL by hand and say whether it ends on the right new page.
Use this before or after a site move, a domain change or a URL cleanup. For each pair it returns a verdict (ok, chain, temporary-redirect, wrong-status, wrong-target, no-redirect, not-redirected, target-broken, loop, too-many-hops, error), the real status chain (like 301 > 200), the final URL, and a plain fix. Does not change anything; it only sends HEAD or GET requests to the URLs you give it. Only test sites you own or may test.
Free limits: the first 200 pairs, 4 at a time, at most 5 requests a second to one site. Returns {"summary": {"checked","pass","warn","fail","readyToLaunch",...}, "rows": [...], "truncated", "skipped"}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_redirects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Site address added to old paths like /old-page, e.g. https://old.example.com. Only needed when the map has paths. | |
| path | No | Full path to a local file of old,new pairs (CSV, tab, semicolon, pipe, or 'old -> new' lines). Leave empty if you pass text. | |
| text | No | The redirect map as text, one pair per line, like: https://old.com/a,https://new.com/a. Leave empty if you pass path. | |
| expect | No | Redirect type you expect. permanent means 301 or 308 (the default). | permanent |
| new_base | No | Site address added to new paths. Default: same as base. | |
| max_chain | No | Most redirects in a row before a chain warning. Default 1. | |
| ignore_query | No | Ignore ?query=parts when comparing the final page. |