Diagnose P&L
diagnose_pnlExplains a seller's settled P&L for a period: revenue, fees, COGS and margin overall and per channel, unpaid (unsettled) orders/returns, unmapped SKUs, SKUs with no cost price, why a channel shows zero fees, and the worst-margin SKUs. Covers Amazon, Flipkart, Meesho, Myntra, Snapdeal, JioMart, Shopify, offline; settled orders only.
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": "diagnose_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start date (ISO, e.g. 2026-10-01, IST day). For "this month" send the 1st of the current month; for "last month" send its 1st with until = its last day. Default: 30 days ago. | |
| until | No | End date (ISO, inclusive IST day). Default: today. | |
| search | No | Optional SKU / product-name substring to narrow to one product. | |
| channel | No | Limit to one channel. Default: all connected channels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||