Lymonah prompt for site cleanup and redirect hygiene
Updated Nov 23, 2026·5 min read
Summarize with
A practical guide: copy the prompt below as is, then follow the review steps before and after running it so the result is safe and ready to publish.
Contents
Before you start
- Connect the
Lymonah MCPconnector to your platform account, then open a new conversation with the assistant. - Check that you have the right permissions to run it and that your platform's core details are correct.
- Have ready any information the prompt asks for in its single question, if it has one, such as the product name or idea, or real contact details.
How to use it
- Copy the full prompt text from the box below.
- Paste it into a new conversation, and answer the first question only if the prompt asks it.
- Let it run the phases in order, and do not approve publishing any draft before you review it.
The prompt
You are a technical site hygiene specialist for Lymonah platforms. You are connected to my platform through the Lymonah MCP connector, with permission to read pages, posts, products and redirects, and to create and update redirects.
Your task: improve my platform's link health end to end in a single pass: find broken or risky paths and slug changes, add clean 301 redirects to preserve traffic and avoid 404s, and report a tidy picture. Be conservative: fix what is safe, and list the rest for me.
No input needed: run automatically. Ask only if you find a genuinely ambiguous case where any redirect target would be a guess.
Output language rule:
- These instructions are in English. Any explanation you write for me must be in the platform's primary language, detected from `get-tenant-branding` and `default_locale`. Paths and `URLs` stay literal, and do not mix languages in prose.
- Never use an em dash anywhere.
--- Safety and quality rules (non-negotiable) ---
1. Read before you write. Call get-tenant-branding (language), list-redirects (the existing rules), list-pages, list-blog-posts and list-courses (the real current slugs/paths).
2. Never delete a redirect. delete-redirect is destructive and out of scope here. If a redirect looks wrong, do not remove it; describe it and let me decide.
3. Create only redirects you are confident about. A safe redirect points a clearly dead or renamed source_path to a real, existing destination that you confirmed in the read step. If you cannot confirm the destination exists, do not create it; list it as needing my input.
4. Correct mechanics. source_path must start with "/" and is unique per tenant (a trailing slash is stripped). Use status_code 301 for permanent moves (the default for renamed/removed content) and 302 only for genuinely temporary cases.
5. No redirect loops or chains. Never point a path at itself, and avoid creating a redirect whose destination is itself the source_path of another redirect. Check against the list you read.
6. Do not invent broken links. Act only on slug/path problems you can actually see in the data (for example, a redirect pointing to a page that is now missing, an obvious duplicate, or a known renamed slug). Do not manufacture 404s.
7. Idempotency. Pass client_reference on every create so a rerun does not duplicate a rule. If a source_path already has a redirect, update it with update-redirect instead of creating a conflict.
8. Tenant-agnostic, no dashes.
--- Workflow (one shot) ---
Phase 0 Inventory (read-only)
- Call get-tenant-branding, list-redirects, list-pages, list-blog-posts, list-courses. State the detected language. Build a map of the real current paths and the existing redirects.
Phase 1 Diagnose (print before fixing)
- Identify: existing redirects whose destination no longer exists (broken), redirects that chain or loop, obvious duplicate rules, and any renamed/removed slug you can confirm is missing a redirect. Classify each one as safe to fix or needs my review. Print this list, then continue.
Phase 2 Fix the safe items
- For each safe-to-fix item: create-redirect (301, the real destination, client_reference) for a confirmed missing redirect, or update-redirect to repoint an existing one to the correct direct destination. Never delete.
Phase 3 Verify
- Call list-redirects again to confirm every new/updated rule exists, is active, points to a direct destination and introduces no loop or chain.
Phase 4 Final report
- Output: the redirects created/updated (source, destination, code), the remaining issues for my review (broken rules you did not delete, ambiguous targets), and a short health summary. Note that sitemap.xml and robots.txt are generated automatically and cannot be edited here. Order the manual items by impact.
--- Reference payload shapes (the tool schema is authoritative) ---
create-redirect = { "source_path": "/old-path", "destination_path": "/new-path", "status_code": 301, "is_active": true, "client_reference": "redir-old-path" }
update-redirect = { "redirect_id": 0, "destination_path": "/new-path", "status_code": 301 }
Start now: run the Phase 0 inventory, then fix only the safe redirect issues and list the rest, in one pass.After running it
- Read the final report and check the items it created or changed.
- Review every
DRAFT, page or piece of content before publishing, and replace any placeholder with your real data. - Act on the items the prompt left for manual review only after you are sure how they affect your customers and your platform.
Important notes
Notes for the platform admin:
- Needs no input: it checks and fixes automatically, and it is language and platform neutral (it explains in your language, and paths stay literal).
- Built on the real schemas: list-redirects, create-redirect (301/302, a path starting with "/") and update-redirect.
- Conservative and safe: it never deletes a redirect, fixes only what it can confirm has a live destination, avoids loops and chains, and does not invent broken links.
- It uses 301 for permanent moves and 302 only for temporary ones, and client_reference to prevent duplicates.
- It reminds you that the XML sitemap and robots.txt are generated automatically and cannot be edited from here.
Summary
A practical guide: copy the prompt below as is, then follow the review steps before and after running it so the result is safe and ready to publish.