Skip to main content
Glama

Shopify SEO Expert: Digital Darts

Replace a broken link

replace_link
Destructive

Edit a broken link's href in the store's content so it points somewhere that works. This is the fix for an EXTERNAL broken link (a redirect can't help there) and the better fix for an internal one when the right page exists. Preview with preview_link_replacement first and get the merchant's go-ahead. Navigation menus can't be rewritten by the app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newHrefYesThe URL or path the link should point at
brokenLinkIdYesFrom list_broken_links

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
messageYes
failuresNo
remainingYesPages the time budget did not reach. Greater than zero means the fix is INCOMPLETE — call this tool again with the same arguments to continue.
resourcesChangedYes
occurrencesReplacedYes

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