Skip to main content
Glama

Shopify SEO Expert: Digital Darts

Preview a link replacement

preview_link_replacement
Read-onlyIdempotent

Where a broken link actually appears in the store's content, before anything is edited: the pages, the occurrence counts, and any navigation menus containing it (menus belong to Shopify's menu editor and can't be rewritten here). Read-only. Run this before replace_link and show the merchant what would change.

Input Schema

NameRequiredDescriptionDefault
brokenLinkIdYesFrom list_broken_links

Output Schema

NameRequiredDescriptionDefault
noteNo
menusYesMenus containing the link, which the app cannot rewrite
resourcesYes
totalOccurrencesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered structurally. The description adds real value beyond that: it enumerates the returned evidence and discloses the menu-editor limitation that constrains the follow-up replace_link call. It could still say more about cost or scan scope.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and output, then a short ordering instruction. Slightly dense in the opening clause but every sentence earns its place; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't explain return values, yet it still previews them, and it covers sequencing with replace_link and the menu-editor limitation. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single brokenLinkId parameter already documents its source ('From list_broken_links'). The description does not add syntax or format detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (preview) and resource (link replacement) and states exactly what the preview returns: the pages, occurrence counts, and navigation menus where the broken link appears. It is clearly distinguishable from replace_link and preview_link_titles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to run this before replace_link and to show the merchant what would change, and it flags an exclusion (navigation menus belong to Shopify's menu editor and can't be rewritten here). Both the when and the when-not are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources