calculate_cogm
Calculates Cost of Goods Manufactured for a recipe using exchange prices, efficiency, and self-consumption to determine per-unit production costs.
Instructions
Calculate Cost of Goods Manufactured for a recipe.
Args:
recipe: Recipe name (e.g., "1xGRN 1xBEA 1xNUT=>10xRAT")
exchange: Exchange code for pricing (e.g., "CI1").
Valid: AI1, CI1, CI2, IC1, NC1, NC2.
efficiency: Production efficiency multiplier (default: 1.0 = 100%)
self_consume: If True, use produced output to satisfy workforce needs.
Returns:
TOON-encoded COGM breakdown including cogm_per_unit, costs, and output.
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": {
"recipe": "<recipe>",
"exchange": "<exchange>"
},
"name": "calculate_cogm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipe | Yes | ||
| exchange | Yes | ||
| efficiency | No | ||
| self_consume | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |