Explosives needed to destroy a set of building pieces
calculate_raid_cost[Calculators] Explosives needed to destroy a set of building pieces. The raid calculator page's plan (https://rust.wiki/calculators/raid). Targets are building pieces (slugs from
/building), doors, hatches, high walls and other deployables (slug or item shortname, e.g. door.hinged.metal).
plan is what the page shows: per piece every allowed explosive's count and sulfur, the cheapest single
explosive, and the cheapest MIX when combining explosives saves sulfur; then the totals - total_sulfur,
explosives_to_craft (with crafts for batch recipes) and raw_resources - and a page link to the same plan.
options / cheapest are single-explosive totals over every piece at once (one explosive for the whole raid).
Deployables the building data lacks (auto turrets, boxes, tool cupboards, furnaces...: item shortname or name)
come back under game_data_deployables, from the server files: per target every explosive's count, sulfur
and cheapest, plus single_explosive_totals. Doors, hatches and high walls go in by slug or item shortname (door.hinged.metal); any other deployable (autoturret, box.wooden.large, cupboard.tool...) comes back under game_data_deployables. Use plan for the answer the raid calculator page gives (cheapest explosive or mix per piece, totals).
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": {
"targets": "<targets>"
},
"name": "calculate_raid_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `mix` (the page's default: mixing explosives on a piece when that saves sulfur) or `single` (one explosive per piece). | mix |
| targets | Yes | Comma-separated `slug:count` building pieces (slugs from /building, or display names). | |
| explosives | No | `staples` (rockets, C4, satchels, explosive ammo, beancans), `all`, or a comma list of explosive shortnames. | staples |