api_commerce_bundle_margin
Calculate per-product bundle cost, discount and contribution margin with fees and customer shipping. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>",
"bundle_price": "<bundle_price>"
},
"name": "api_commerce_bundle_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | items; see operation description for units and format | |
| fee_pct | No | fee pct; see operation description for units and format | |
| bundle_price | Yes | bundle price; see operation description for units and format | |
| shipping_cost | No | shipping cost; see operation description for units and format |