P&L: Summary
pnl_summaryProfit & Loss summary for a date window: account tiles (sales, fees, COGS, ad spend, gross profit, contribution margin, net profit, TACoS) plus the top product rows. Tiles chain on one basis: net_revenue = sales + promo - refunds; gross_profit = net_revenue - cogs; contribution_margin = gross_profit - amazon_fees (item_fees + account_fees); net_profit_before_expenses = contribution_margin - ad_spend; net_profit = that - expenses. Per-product rows keep attributed components and do NOT sum to the tiles (refunds/account fees/unattributed ad spend are account-level).
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": "pnl_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| date_to | No | ISO date; default today | |
| currency | No | ||
| group_by | No | ||
| date_from | No | ISO date; default 30d ago | |
| seller_connection_id | No | Which seller connection (see account_sellers). Optional when the token has exactly one. |