Skip to main content
Glama

Shopify SEO Expert: Digital Darts

Create redirect

create_redirect
Idempotent

Create a Shopify URL redirect. Preferred: pass brokenLinkId (from list_broken_links, internal links only) plus target, which also marks the broken link fixed. Or pass path + target directly. Targets must be an existing page on the store (or '/'); redirects into another 404 are refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoBroken path, e.g. /products/old-handle (when no brokenLinkId)
targetYesWhere to send visitors, e.g. /products/new-handle or /
brokenLinkIdNoFix this broken link (preferred)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
pathYes
targetYesThe target that was requested
createdYesFalse when the path already had a redirect and nothing changed
messageYesWhat to tell the merchant
existingTargetNoWhere the path already redirected; present only when created is false
existingTargetUnknownNoA redirect existed but Shopify didn't reveal its target

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources