SKU contribution margins
get_sku_marginsCalculate contribution margins per SKU across CM1, CM2, and CM3 to reveal which products make money after COGS, fulfillment, fees, and ad spend.
Instructions
Contribution margin per SKU: net revenue, COGS, shipping subsidy, 3PL fulfillment, payment fees and allocated ad spend, reported as CM1 (after COGS), CM2 (after fulfillment and fees) and CM3 (after ads), in dollars, % of net revenue and per unit. Use it to see which products actually make money.
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": "get_sku_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date (inclusive, YYYY-MM-DD). Requires `from`. | |
| sku | No | Return a single SKU (e.g. "AA-PLNT-CI"). | |
| days | No | Trailing window in days, ending on the data as-of date. Ignored when from/to are given. | |
| from | No | Start date (inclusive, YYYY-MM-DD). Requires `to`. | |
| limit | No | ||
| order | No | asc puts the worst SKUs first. | asc |
| sortBy | No | cm3 |