Marketplace fees
get_marketplace_economicsWhat each connected marketplace (Mirakl marketplaces such as El Corte Inglés or Carrefour, and each Channable channel such as bol) sold and cost over the period: gross (sold and kept, net of reversals), fees (commission charged, less commission handed back on refunds), takeRatePct (fees ÷ gross), marginAfterFees, settledFees (what the marketplace's own ledger says it charged; null = not reconciled yet, not zero), orders, and cogsCoveragePct (share of orders whose cost is known). total sums every marketplace. No rows = no marketplace connected. Use for marketplace fees, commissions, take rate or which marketplace is worth it. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.
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_marketplace_economics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. |