Skip to main content
Glama

Fall damage from a height or a landing speed

calculate_fall_damage
Read-onlyIdempotent

[Calculators] Fall damage from a height or a landing speed. Damage = 500 x InverseLerp(15, 100, landing speed m/s), before clothing protection (BasePlayer. ApplyFallDamageFromVelocity), plus bleeding 0.5 x the same fraction. Returns damage, bleeding, speed_ms, height_m, safe_height_m (no damage below), lethal_height_m (100 damage), gravity_ms2 and height_is_estimate. Speed -> damage is exact; heights assume no air resistance. Speed to damage is exact; heights for awake players are an estimate (client-side movement). Link https://rust.wiki/survival-mechanics#fall.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_fall_damage"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoLanding speed in m/s (overrides height).
heightNoFall height in metres.
playerNoawake (gravity estimated - awake movement runs on the client) or sleeping (the server's own fall for sleeping/wounded players, from the code).awake

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only/idempotent/non-destructive, so the description correctly spends its space on physics behavior: the damage formula, the bleeding component, the no-air-resistance assumption, the exact-vs-estimate distinction, and the clothing-protection caveat. The 'BasePlayer.' fragment is a truncated reference and the exactness note is duplicated, but the substance is well beyond 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.

Conciseness3/5

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

The core formula is front-loaded, which is good, but the text is cluttered with a duplicated claim ('Speed -> damage is exact' appears twice in variant forms), a dangling 'BasePlayer.' fragment, and an unglossed API link. It is not bloated so much as unedited.

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 correctly enumerates every return field (damage, bleeding, speed_ms, height_m, safe_height_m, lethal_height_m, gravity_ms2, height_is_estimate), and it states units and assumptions. An agent has everything needed to call it and interpret the result; only the missing-input case is unaddressed.

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; the description earns above that by explaining the awake/sleeping distinction in physical terms (client-side awake movement vs server-side sleeping fall) and by clarifying that speed-derived damage is exact while heights are estimates. The precedence rule is only implicit, but it does add meaning beyond the schema text.

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 opens with a specific verb+resource ('Fall damage from a height or a landing speed') and names the exact game mechanic (BasePlayer.ApplyFallDamageFromVelocity). It is clearly distinguishable from the generic calculate_damage sibling because it covers fall-specific outputs (bleeding, safe height, lethal height, gravity).

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?

Usage is implied rather than stated: the tool is for falls, and 'speed overrides height' is conveyed through the schema, not the description. It never says when to prefer this over calculate_damage or what happens if neither speed nor height is supplied. Adequate but leaves the caller to infer routing.

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