Skip to main content
Glama

Open a crate, barrel or NPC 1-1,000 times with the game's loot roll

simulate_crate_open
Read-onlyIdempotent

[Calculators] Open a crate, barrel or NPC 1-1,000 times with the game's loot roll. Opens a Rust container with the loot roll ported from the game's server code (LootContainer.PopulateLoot -> LootSpawn.SpawnIntoContainer -> Item.MoveToContainer; data from the server files, vanilla settings) - the engine of https://rust.wiki/calculators/loot-simulator. Returns the haul: items totals (amount, how many opens had it, average condition for items that spawn damaged), scrap_value (everything recycled at recycler, all the way down, plus loot scrap), lost_for_room (loot destroyed because the container was full, as in game), the first breakdown opens one by one, and chance_per_open: every item's exact chance of at least one per open and its average amount (chance_basis says when a container that can fill up was simulated instead). page opens the same result on the site. A seed reproduces a result; it doesn't predict a real server. Opens a Rust crate, barrel or NPC body with the loot roll ported from the game's server code (seeded: same container, count and seed = same loot). Use for 'what do I get from N locked crates' or 'odds of an AK from an elite crate' (chance_per_open; chance_basis says whether it's exact). Give the user the page link: it shows the same haul. Container keys: locked-crate, elite-crate, military-crate, supply-drop, bradley-crate, heli-crate, blue-barrel, scientist, heavy-scientist, ...

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": {
      "container": "<container>"
    },
    "name": "simulate_crate_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoa-z0-9 seed; the same container, count and seed always give the same loot (here and on the page). Random if left out.
countNoHow many to open (1-1,000).
chancesNoHow many rows of the exact chance-per-open table to include.
recyclerNoRecycler for scrap_value: recycler (monument, 50%), safe_zone (40%), powered (Power Plant grid stage 2+, 60%) or red (75%).recycler
breakdownNoHow many of the opens to list one by one.
containerYesContainer key or name, e.g. locked-crate, elite-crate, supply-drop, bradley-crate, heli-crate, military-crate, blue-barrel, scientist, heavy-scientist. A wrong name lists every key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantially more: seeds are reproducible but not predictive of a real server, containers that can fill up cause loot loss (`lost_for_room`), and `chance_basis` flag indicates when an approximating fill-up simulation was used instead of exact odds. It also spells out the return shape in detail, which annotations alone never convey.

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

Conciseness2/5

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

The opening premise is stated twice near-verbatim ('Opens a Rust container with the loot roll ported from the game's server code' and 'Opens a Rust crate, barrel or NPC body with the loot roll ported from the game's server code'), and one sentence sprawls across the entire return contract. Structure is front-loaded, but the redundancy and dense run-ons cost the reader.

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?

There is no output schema, so the description carries the return contract and does so fully key by key: `items` totals with average condition, `scrap_value`, `lost_for_room`, `breakdown`, `chance_per_open` with `chance_basis`, and `page`. For a six-parameter simulation tool, an agent has everything needed to call it and to explain results.

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 ties parameters to outputs in ways the schema doesn't: `recycler` drives `scrap_value` (everything recycled all the way down plus loot scrap), `chances` sizes the exact chance-per-open table, and `breakdown` is the number of opens listed one by one. It also reinforces seed reproducibility and the 1-1,000 open range.

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?

States a concrete verb and resource ('Open a crate, barrel or NPC body') plus the mechanism: the loot roll ported from LootContainer.PopulateLoot -> LootSpawn.SpawnIntoContainer, vanilla settings. It also names concrete container keys, so an agent knows exactly what domain it covers. It never distinguishes itself from the similar-sounding sibling simulate_loot_run, leaving that ambiguity unresolved.

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

Usage Guidelines4/5

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

Gives direct use cases: "'what do I get from N locked crates' or 'odds of an AK from an elite crate'", and instructs the agent to hand the user the page link. It also lists valid container keys and notes a wrong name lists every key, which is a recovery hint. There is no explicit when-not or alternative-tool routing (e.g. vs simulate_loot_run or get_loot_table).

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