Skip to main content
Glama

Expected loot from a run of crates, barrels and NPCs

simulate_loot_run
Read-onlyIdempotent

[Calculators] Expected loot from a run of crates, barrels and NPCs. The loot simulator page's exact statistics (https://rust.wiki/calculators/loot-simulator): every item each container can drop is rolled on its own chance, with an amount between the table's min and max. For the whole run, each item gets expected_amount (average total), chance_at_least_one and best_chance_per_container; expected_item_stacks is how many item stacks the run gives on average. Chances come from the game's loot tables (the /loot-tables data). To actually open crates with the game's own loot roll (seeded, shareable, with exact per-open chances), use /calculators/loot-simulator/open. Loot source names/ids come from list_loot_sources. To actually open crates with the game's own loot roll use simulate_crate_open.

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": {
      "run": "<run>"
    },
    "name": "simulate_loot_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYesComma-separated `source:count` pairs - a loot source by id (from /loot-tables) or name - count defaults to 1, max 500 each.
limitNoMost items to return (by expected amount).
searchNoOnly items whose name contains this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real substance beyond that: it explains the underlying model (each item rolled on its own chance, amounts between the table's min and max) and the provenance of the chances (the game's /loot-tables data), which tells an agent this is a deterministic expectation calculation rather than a randomized draw.

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 opening sentence is well front-loaded and the return-field enumeration earns its place, but the closing pair of sentences says the same thing twice about simulate_crate_open, and the second instance drops the useful parenthetical detail. That duplication is wasted length in an otherwise dense description.

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?

There is no output schema, so the description correctly carries the return-value burden by naming expected_amount, chance_at_least_one, best_chance_per_container and expected_item_stacks. It leaves minor gaps — it doesn't say that limit truncates by expected amount or how search interacts with the run — but nothing an agent needs to invoke it correctly is missing.

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 meaning the schema does not: loot source names/ids come from list_loot_sources, and the /loot-tables data is the canonical source. It does not add anything for `limit` or `search` beyond what the schema already documents.

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 — expected loot from a run of crates, barrels and NPCs — and immediately frames it as aggregate statistics rather than a single open. The contrast with simulate_crate_open makes the boundary between the two tools unmistakable.

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?

Explicitly names the alternative (simulate_crate_open) and the condition that selects it — wanting the game's own seeded loot roll rather than expected values — and points to list_loot_sources for valid source names/ids. The guidance is clear but the same alternative is stated twice in near-identical wording, which muddies rather than strengthens the 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