Skip to main content
Glama

When a base decays once the Tool Cupboard runs out, piece or layer by layer

calculate_decay
Read-onlyIdempotent

[Calculators] When a base decays once the Tool Cupboard runs out, piece or layer by layer. The decay page's maths (https://rust.wiki/calculators/decay): with no upkeep, an outside piece goes from full health to nothing in 1 h (twig), 3 h (wood), 5 h (stone), 8 h (sheet metal) or 12 h (armoured); inside pieces decay at a tenth of that. destroyed_in_hours counts from now (upkeep first). For layers, each layer behind the outer one decays at 10% until the one in front is gone, then at full speed. Vanilla server defaults.

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_decay"
  }
}

Input Schema

NameRequiredDescriptionDefault
gradeNoBuilding grade: twig, wood, stone, metal, hqm.stone
insideNoTrue = the piece is inside the base (decays at 10% speed).
layersNoOptional honeycomb: comma-separated grades from the outside in (max 6).
health_pctNoThe piece's health left, %.
upkeep_hoursNoHours of upkeep left in the Tool Cupboard.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds substantial behavioural context beyond that: the concrete decay times per grade (1 h twig through 12 h armoured), the 10% inside-piece rate, layer-by-layer decay behaviour, and the fact that `destroyed_in_hours` counts from now with upkeep applied first.

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 description is front-loaded with the purpose, then supplies the decay constants and the layer rule in a compact, ordered way. Every sentence carries information; the wiki URL parenthetical is the only marginally disposable element.

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 five optional parameters, no output schema, and a computation whose result field (`destroyed_in_hours`) is explained inline, the description covers what an agent needs to call it and interpret the result. Only the exact response shape remains implicit.

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 schema already documents all five parameters and the baseline is 3. The description does add meaning to `layers` (each layer behind the outer one decays at 10% until the one in front is gone, then at full speed) and clarifies the interaction of `upkeep_hours` with the reported `destroyed_in_hours`, but it is a modest increment over an already complete schema.

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

Purpose4/5

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

The description states a specific computation: decay timing for a building piece after the Tool Cupboard runs out, parameterised by grade, inside/outside, layers, health and upkeep. It is far more than a restatement of the name. It does not explicitly name a sibling such as calculate_upkeep to differentiate itself, so it lands at 4 rather than 5.

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 description describes the scenario ('once the Tool Cupboard runs out') in which the calculation applies, and notes 'Vanilla server defaults', hinting that modded servers may differ. There is no explicit when-to-use/when-not guidance or pointer to an alternative tool for upkeep or raid cost questions.

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