Raw materials to craft a list of items
calculate_craft_costRaw materials to craft a list of items. Resolves every recipe down to raw materials, per unit (items made in batches, like gunpowder, are divided by
their batch size), exactly as the craft calculator page does. raw_materials is the total, largest first;
items echoes each input with its direct recipe; unknown lists inputs that matched no item.
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>"
},
"name": "calculate_craft_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Comma-separated `shortname:quantity` pairs (display names work too; quantity defaults to 1). |