api_herb_batch_cost
Compute actual retail herb blend batch ingredient costs and gross margin from herb:grams:price_per_gram input. 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": {
"ingredients": "<ingredients>",
"batches": "<batches>",
"selling_price_per_batch": "<selling_price_per_batch>"
},
"name": "api_herb_batch_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batches | Yes | batches; see operation description for units and format | |
| ingredients | Yes | ingredients; see operation description for units and format | |
| packaging_per_batch | No | packaging per batch; see operation description for units and format | |
| selling_price_per_batch | Yes | selling price per batch; see operation description for units and format |