Margins: below cost and thin
margin_checkDetects active products priced below purchase cost, thin margins, or pushed under cost by active automatic discounts; read-only check using Shopware purchase prices.
Instructions
Find active products whose net price is below their purchase price, products with a thin margin, and products that an automatic discount running right now pushes below cost: the '60 % instead of 6 %' mistake on the price side. Uses Shopware's purchase price; products without one are counted, not guessed. Read-only. Returns { checked, withoutPurchasePrice, automaticDiscount, summary, belowCost[], thin[], lossWithDiscount[] }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "margin_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxItems | No | ||
| minMargin | No | Margin in % below which a product counts as thin |