Skip to main content
Glama

Shots and time to kill through armour, per hit area

calculate_damage
Read-onlyIdempotent

[Calculators] Shots and time to kill through armour, per hit area. The damage calculator page's maths (https://rust.wiki/calculators/damage). Damage per hit = weapon damage x ammo x attachment x hit-area multiplier x (1 - protection); protection of every piece covering the area is added (cap 100%), +4% per metal insert. Per zone (head, chest, legs, hands, feet): protection_pct, damage_per_hit, shots_to_kill (null = never) and time_to_kill_s (fire rate plus reloads when the magazine runs out). Close range only - no damage falloff; shotguns assume every pellet hits. Limb multipliers are low confidence.

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": {
      "weapon": "<weapon>"
    },
    "name": "calculate_damage"
  }
}

Input Schema

NameRequiredDescriptionDefault
hpNoTarget health.
ammoNoAmmo name for that weapon (default: its standard ammo).
suitNoFull-body suit instead: hazmatsuit or bone.armor.suit.
armourNoComma-separated armour and clothing the target wears (shortnames or names). Per slot: one clothing piece under one armour piece; dual pieces take both.
weaponYesWeapon shortname or name (guns and bows).
insertsNoMetal armour inserts per slot, `slot:n` (head, chest, legs, hands, feet; 0-3).
attachmentNoMuzzle attachment: none, silencer, oilfilter, sodacan, muzzlebrake.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, closed-world read; on top of that the description discloses the actual computation model (weapon x ammo x attachment x hit-area x (1 - protection), protection capped at 100%, +4% per insert), the per-zone return fields, that null means never, that time-to-kill includes reloads, and that limb multipliers are low confidence. This is substantive behavioral context an agent cannot get from the annotations.

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

Conciseness4/5

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

The core purpose and output shape are front-loaded, followed by the formula and then caveats, which is a sensible order. It is dense and includes a URL that is not strictly needed for invocation, but every clause carries information since there is no output schema.

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

Completeness5/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 compensates by naming every returned per-zone field and the null convention. Combined with the explicit limitation caveats, an agent has enough to call the tool and interpret results correctly for a 7-parameter calculation tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that protection across every piece covering an area is summed to a 100% cap and that each metal insert contributes +4%, clarifying how the armour and inserts strings are consumed. It also implicitly explains that the hit-area multiplier governs per-zone output, though it does not restate defaults like standard ammo.

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?

The description states a specific verb and resource: computes shots and time to kill through armour per hit area, with the linked damage-calculator page as the reference model. It is clearly distinct from calculate_fall_damage and other calculate_* siblings, and the formula clause confirms exactly what is being computed.

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?

Scope limits are given ('close range only - no damage falloff; shotguns assume every pellet hits'), which tells the agent when results are valid. However, there is no explicit guidance on when to choose this over related tools such as get_damage_data or get_armour_inserts, so routing is only implied.

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