corestack_ redirects_ test
Test a redirect.
When to use it
Try an address against a row's redirects — the saved table, or one you have not saved yet — and see which rule matches, where it goes and the whole chain.
Ask for it
Using the Corefinity MCP server, call corestack_redirects_test with site_id 4211, url https://example.co.uk/. (Test a redirect.) Tell me what it returned.Inputs
One of the row's domains to make the request on (rules limited to it run first); by default the primary. A full address in url names its own. Up to 253 characters.
An unsaved table, in corestack_redirects_update's rule shape; absent tests the saved one. Up to 2,000 items.
Fields of each item
Up to 2,000 characters.
CPPB-1170: limit the rule to some of the row's own domains (corestack_redirects_get's available_hosts); null runs it on every domain. Left out on a saved rule, the rule keeps the domains it has. On its domains a limited rule runs before the every-domain rules, and never on the platform's reserved paths.
An existing rule's id; leave it out (or null) for a new rule. At least 1.
Up to 120 characters.
301302Up to 2,000 characters.
exactprefixregexAt least 1.
A path such as /old-page, or a full address on the site. Up to 4,096 characters.
Example call
{
"name": "corestack_redirects_test",
"arguments": {
"site_id": 4211,
"url": "https://example.co.uk/"
}
}If it is refused
| Reason | What to do |
|---|---|
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |