Skip to main content
Glama

Explosives needed to destroy a set of building pieces

calculate_raid_cost
Read-onlyIdempotent

[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

NameRequiredDescriptionDefault
modeNo`mix` (the page's default: mixing explosives on a piece when that saves sulfur) or `single` (one explosive per piece).mix
targetsYesComma-separated `slug:count` building pieces (slugs from /building, or display names).
explosivesNo`staples` (rockets, C4, satchels, explosive ammo, beancans), `all`, or a comma list of explosive shortnames.staples

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "mix",
      +  "description": "`mix` (the page's default: mixing explosives on a piece when that saves sulfur) or `single` (one explosive per piece).",
      +  "enum": [
      +    "mix",
      +    "single"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so safety needs no restatement. The description instead discloses behavior the annotations cannot: which targets are resolved from building data versus the server files, the automatic fallback of unrecognized deployables into `game_data_deployables`, the per-piece vs whole-raid result split, and the `page` link — material context for a tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, which is good, but the body is dense and repetitive. The door/hatch/high-wall routing rule appears twice and the closing 'Use `plan` for the answer the raid calculator page gives' restates the earlier `plan` explanation, so several sentences do not earn their place in a definition of this length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and largely discharges it: it enumerates `total_sulfur`, `explosives_to_craft`, `raw_resources`, `page`, the `plan`-vs-totals split, and the `game_data_deployables` payload with `count`/`sulfur`/`cheapest`. Only minor points, such as error behavior for an unknown slug, are left uncovered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the enum values, defaults and `slug:count` format are already documented and the baseline applies. The description adds a little beyond the schema by explaining the consequence of `mix` (combining explosives when it saves sulfur) and of the staples/`all` choice, but it doesn't extend the `targets` grammar or give any syntax the schema lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Explosives needed to destroy a set of building pieces' — and immediately scopes the accepted target universe (building-piece slugs, doors, hatches, high walls, deployables via slug or item shortname). An agent can tell this is a calculator over raid targets rather than a generic damage or cost tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is usage guidance, but it is aimed at result interpretation rather than tool selection: it tells the agent to use `plan` for the page-style answer and that `options`/`cheapest` are whole-raid single-explosive totals. Nothing says when to prefer this over a sibling such as get_raid_costs or calculate_base_cost, and no exclusion conditions are given, so selection between similarly named raid tools stays implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources