An agent that sweeps your own inventory for listings of products you are not allowed to sell, whether restricted, gated without an approval you hold, or hazmat flagged, ranks them by account health risk, and prepares the exact delete batch for your approval. It deletes nothing itself.
For: Sellers with large or inherited catalogsAmazon · Walmart↗ Sweep before the flag
The workflow
How the agent runs
1
Read your own sellability data
On each run, the agent reads your inventory reports, your listing status, and every restriction, gating, approval, and hazmat notice in your Seller Central or Seller Center account. Whether you may sell a product is a fact about your account, not about the public marketplace, and no public data source can see it.
2
Classify every flagged listing by its exact reason
Not sellable is not one thing. The agent separates: prohibited outright on the channel; restricted category or brand where approval is required and your records show none held; approval held but lapsed or revoked per a notice; hazmat or dangerous goods flagged; and already suppressed or closed by the marketplace for a restriction reason. Each classification quotes its evidence, the report field or the notice text, with its date.
3
Cross-check the live state through 5Stones, and only the live state
For each flagged listing, the agent reads the public listing through the 5Stones MCP to answer one question: is it actually still live, or already down? An item your account flags but the marketplace already took down is a verify-and-close item, not a delete item. 5Stones never decides whether a product is restricted; it only reports whether the listing is up.
4
Rank by account health risk
Live and selling restricted items come first, and anything already named in a policy flag or a notice with a deadline jumps the queue. Then live but unsold items. Then already-down items, which are cleanup, not risk. The ranking is shown, not implied.
5
Prepare three outputs and never mix them
The DELETE BATCH: one row per listing with SKU, ASIN or Item ID, title, reason class, evidence, live state, and the inventory consequence (units at FBA or WFS that need a separate removal order, or seller-fulfilled stock to pull). The APPROVAL CANDIDATES: restricted items you might want approval for, kept out of the delete batch. The HOLD FOR REVIEW list: items where the evidence is incomplete or conflicting, with the exact question or document needed. Nothing executes from any of these until you approve the exact delete batch.
6
Keep the purge log and catch the re-uploads
Every run appends to a log: reports used, each flagged listing with its class, evidence, and batch placement, what you confirmed you deleted and when, and the verification state. A listing is reported removed only when a later run confirms it. If a purged listing reappears in a later report, it is flagged as a repeat with the original purge date, because feed re-uploads are how purged listings usually come back.
What it needs
Inputs & tools
Inventory reportsActive listings + quantities
Listing statusSuppressed / closed reports
NoticesRestriction, gating, hazmat
Approvals on fileYour list per channel
Live state5Stones MCP (cross-check only)
CadenceWeekly + after uploads
The pattern sellers describe: a brand gets gated after the listing was created, an approval lapses quietly, and the first anyone hears of it is a performance notification, followed by a hand audit of thousands of listings under a deadline. The expensive errors run in both directions: leaving a restricted listing live and exposed, and panic-deleting a listing you actually hold approval for.
Run this agent yourself
📑
1 · Bring your account reports
This agent's source of truth is your own account data — the inventory, shipment, returns and fee reports from Seller Central (or Walmart Seller Center). Export them — or integrate with the marketplace APIs directly (Amazon SP-API, Walmart Marketplace API): the LLM you're using can write that integration with you, and then the reports pull themselves on schedule. No public crawl can see them; they're behind your login, as they should be.
🔗
2 · Optional: link the 5Stones MCP
Add the 5Stones MCP connector — server crawl.onewally.com/mcp — and the agent can cross-check what your public listing pages state (dimensions, weight, current price) against your reports. Supporting evidence only: disputes rest on your measured actuals and your report lines.
📋
3 · Paste the prompt
Copy the prompt below, attach your reports, name your store. The agent reconciles everything and hands you the claim file — no code.
Copy the prompt
Starter prompt
Step 3 · Paste this into your LLM
# Restricted Product Purge Agent
MY STORE (fill in once):
- Store name: [your store name]
- Seller ID or storefront URL: [paste it, one per channel if they differ]
- Marketplace: [Amazon US, Walmart US, or both; add each additional store separately, restrictions and approvals are per store]
- My setup: [FBA, WFS, seller-fulfilled, or a mix; where my inventory physically sits for each channel]
- Approvals I hold: [the brands, categories, and product types I hold selling approval for, per channel, with approval dates where I know them. Listings matching this list are never flagged as unapproved. If I am unsure whether I hold an approval, say "unsure" next to it so the item lands in review, not in a batch.]
- Escalation: [who must see a deadline item or a large batch the same day: name and best contact route]
RUN SCHEDULE (set this where you run the prompt):
- Run this prompt: weekly, as a full sweep of my active inventory, and again the same day whenever I tell you a restriction, gating, or hazmat notice arrived, an approval lapsed, or a bulk feed or listing upload ran. Restrictions change and uploads recreate listings, so the run after any upload is the one that matters most.
- If your LLM app supports scheduled or recurring tasks, set it there; otherwise re-paste the prompt on that cadence.
DATA SOURCES: My own account data is the source of truth for sellability. Feed it to you two ways: (a) I attach my inventory reports (active listings with SKU, ASIN or Item ID, title, status, and quantities, including FBA or WFS quantities), my listing status and suppressed or closed listing reports, and my restriction, gating, approval, and hazmat notices in full, including any Account Health policy flags that name restricted products, or (b) we integrate with the marketplace APIs (Amazon SP-API, Walmart Marketplace API) where they expose the same data, and if no integration exists yet, write it with me first, then pull on schedule. The 5Stones MCP (crawl.onewally.com/mcp, read-only) is used for one thing only: reading whether a flagged listing is still publicly live or already down. 5Stones is never a source for whether a product is restricted, gated, or approved. If a status is not in the records I provided, write "not in records provided" for it. Never carry a restriction status, an approval status, or a live state forward from an old run as if you read it today.
YOUR JOB, EACH RUN:
1. Establish the sweep set and its limits before flagging anything. Report: listings in scope by channel from the reports I provided (with the report dates), listings whose sellability cannot be determined from those records, named separately, and notices received since the last run. A listing whose status is unknown is reported as unknown. Never treat unknown as sellable, and never treat unknown as restricted.
2. Identify every listing whose product I am not allowed to sell, and classify each by reason: (a) prohibited product on the channel; (b) restricted category or brand, approval required, and no approval held per my records and my approvals list; (c) approval held but lapsed or revoked, per a notice I provided; (d) hazmat or dangerous goods flagged in my account; (e) already suppressed or closed by the marketplace for a restriction reason. Quote the evidence for every flag: the report field, the notice text, or the policy flag, with its date. Flag a listing only on evidence in my records. Never flag a product because it appears on a public list of restricted products, because other sellers were flagged for it, or because it looks like the kind of thing that gets restricted.
3. Cross-check the live state of every flagged listing through the 5Stones MCP: still live, already down, or unreadable this run. Report the account status and the live state side by side, and name any disagreement between them (for example, flagged in my account but still publicly live, or shown closed in my account but still live). A listing that cannot be read is "not read this run", never assumed down.
4. Rank the flagged listings by account health risk and show the ranking: (a) any item named in a policy flag or notice carrying a deadline that falls before the next scheduled run; (b) restricted items that are live and have sold in the period my reports cover; (c) restricted items that are live and have not sold; (d) items already down, as cleanup only. A run with nothing in (a) or (b) says so in one line at the top.
5. Build three separate outputs and never mix them. DELETE BATCH: one row per listing with SKU, ASIN or Item ID, title, reason class, the evidence quoted, live state as read this run, quantity at FBA or WFS and quantity on hand per my inventory report, and the removal consequence in plain words (listing delete only, or listing delete plus a separate removal or return order for the units, which is a step I take in my own tools). APPROVAL CANDIDATES: restricted items kept out of the delete batch because I may want approval, each with what my records say the approval requires; do not recommend applying unless I ask. HOLD FOR REVIEW: items where the evidence is incomplete or conflicting, each with the exact question or document that would resolve it. The delete batch is a proposal. It is not an instruction to anyone, and it does not execute.
6. State the inventory consequences honestly. Deleting a listing does not remove, return, or dispose of any physical unit, and it does not by itself clear a policy flag already issued. If you estimate the value of inventory tied to flagged listings, label it "estimated" and show the method (for example: units per my inventory report times my landed cost per unit from my own cost records, which I must provide; if I have not provided costs, do not estimate at all). Never present an estimate as a measured loss, and never promise that deleting a listing resolves an existing violation; say that Amazon or Walmart decides that on its own process.
7. Maintain the purge log: run date, reports used with their dates, every flagged listing (identifier, title, reason class, evidence, live state, batch placement), what I confirmed I deleted and when, and verification state. Report a listing as removed only when a later run's fresh inventory report no longer lists it as active, or a fresh live read shows it down, and I confirm the deletion was mine. If a purged listing reappears in a later report, flag it as a repeat with the original purge date and ask me whether a feed or upload tool recreated it; do not conclude the cause yourself. End each run with a one-line summary: listings swept, flags by reason class, delete batch size, approval candidates, holds, deadlines before the next run, and repeats found. A run with no flags ends with the all-clear line only.
EXECUTION, READ CAREFULLY:
- The 5Stones MCP is read-only and is used only for live listing state. You identify, classify, rank, and prepare. You never delete a listing, close a listing, create a removal order, change a listing, change a price, or contact Amazon, Walmart, or any buyer, ever, in this agent. I review, I approve, I delete.
- Deletions happen only by me, in my own Seller Central or Seller Center tools or through my own marketplace API, and only for the exact delete batch I approved. If I edit the batch, the edited batch is a new batch and needs my approval again before I act on it.
- If my records conflict about whether I hold an approval for a product, that listing goes to HOLD FOR REVIEW, never into the delete batch on a guess. Deleting a listing I am approved to sell is the one error this agent must not make.
- You never change a price in this agent. If any related workflow ever proposes a price change, that price change executes only through Flashpricer inside my min/max or through my own marketplace API, and is never claimed as done before execution is confirmed.
- Never claim a listing was deleted, inventory was removed, or a restriction was cleared before a later run's fresh report or live read, or my own confirmation, verifies the new state. "Deleted" may be reported only as I report it to you, with the date, until a fresh read confirms it.
- Never invent a restriction, an approval status, a deadline, a quantity, or a listing state. A fact that is not in my reports, my notices, a live read from this run, or my own confirmation to you does not go in a batch or in the log.
The prompt gets you the shape. The reliable version runs on live data through the MCP — that's steps 1 and 2 above.
Runs the keep-or-remove math per SKU, then builds the exact FBA removal order for your approval.
Questions sellers ask
Does the agent delete the listings itself?
No. It identifies, classifies, ranks, and prepares the exact delete batch. You review it, approve it, and delete in your own Seller Central or Seller Center tools. Deletion is hard to reverse, and deleting a listing you hold approval for is the one error this agent is built to avoid.
Can 5Stones tell me which of my products are restricted?
No. Restriction and approval status exist only inside your own account, in your reports and your notices, and the prompt states plainly that 5Stones is never a source for them. 5Stones does one narrow job here: checking whether a flagged listing is still publicly live or already down.
Does deleting the listing take care of the units sitting at FBA or WFS?
No. Deleting a listing does not remove, return, or dispose of a single physical unit. The delete batch states the inventory consequence per listing, and the removal or return order for the units is a separate step you take in your own tools.
What happens when my records conflict about whether I hold an approval?
The listing goes to HOLD FOR REVIEW, never into the delete batch on a guess. The hold list names the exact question or document that would resolve it, and the item waits there until the evidence agrees.
Run this on your store.
Every agent here runs on live 5Stones data through the MCP. Start free, connect your LLM, paste the prompt — or get the free Buy Box Loss Report and see the data first.