Skip to main content
Glama

drop_chances

Calculates exact item drop chances per kill from a version's own data tables—treasure classes, NoDrop, players, magic find, quality rolls—and returns '1 in N' odds for any monster, super unique, or treasure class.

Instructions

Exact drop chances per kill, worked out from a version's own tables (any vanilla patch or mod loaded in the game data), not simulated. Follows the game's code: the monster's treasure class by type, its upgrade by monster level in Nightmare/Hell (group/level columns), NoDrop by players, picks and negative picks, nested and item-type classes (armo/weap...), the ItemRatio quality roll with magic find's diminishing returns and the class's quality modifiers, unique/set level checks, and the limit of 6 items. source: a monster (MonStats Id such as 'mephisto', 'fallen1', or its name), a super unique ('Pindleskin'), or a treasure class ('tc:Act 5 (H) Equip B'). difficulty: normal, nightmare, hell. players: 1-8 in the game; party: how many of them are in the killer's party in that area (NoDrop uses (players - party) / 2 + party). mf: the killer's magic find percent. item: a base item code or name, or a unique / set item name, to get that item's chance and '1 in N'; quality (unique, set, rare, magic, superior, normal, low) with a base item gives it at that quality and lists the base's uniques or set items. Without item: the most likely drops (limit, at most 50), of any quality or of the given quality. monster_type: normal, champion, unique, minion (super uniques are always unique). area: the Levels.txt Name, LevelName or Id the monster is in; needed in Nightmare/Hell for monsters that take the area's level, and the tool asks for it when it can't tell. quest: the first-kill quest drop (TreasureClass4). mlvl: the monster level to assume for a 'tc:' source. version: a game data version, default the server's default; the answer names it. Limits: 1.10 and later Legacy rules only, expansion game; 1.09 and earlier and Resurrected are refused. Names are the tables' own (no string tables): use codes or the names in weapons/armor/misc/UniqueItems. Chests and other objects aren't sources, only their classes by name. State the version and the notes.

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": {
      "source": "<source>"
    },
    "name": "drop_chances"
  }
}

Input Schema

NameRequiredDescriptionDefault
mfNo
areaNo
itemNo
mlvlNo
limitNo
partyNo
questNo
sourceYes
playersNo
qualityNo
versionNo
difficultyNohell
monster_typeNonormal

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden well: it discloses the computation path (treasure class, NoDrop via (players - party)/2 + party, ItemRatio with diminishing MF, 6-item cap), the supported-version limits, and that it will prompt for 'area' when it cannot infer it. It does not cover failure modes for invalid sources beyond the version refusals, and output format is deferred to the output schema.

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?

Front-loaded with purpose, then parameter semantics in a compact telegraphic style; nearly every clause carries information. Minor redundancy in restating that the answer names the version twice ('the answer names it' and 'State the version and the notes'), which could be trimmed.

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?

For a 13-parameter, computation-heavy tool with no annotations but an output schema, the description supplies the rules, limits, source validity, and parameter meanings an agent needs to call it correctly. Return value details are appropriately left to the output schema.

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

Parameters5/5

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

Schema description coverage is 0% across 13 parameters, and the description compensates for essentially all of them: source forms with examples, difficulty values, players range 1-8, party semantics tied to the NoDrop formula, mf as percent, item/quality interaction, monster_type options, area identification via Levels.txt Name/LevelName/Id, quest mapping to TreasureClass4, mlvl for 'tc:' sources, version defaulting, and limit (max 50). This is meaning well beyond bare field names.

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?

Opening sentence states a specific verb+resource: exact per-kill drop chances computed from a version's own tables, explicitly 'not simulated'. It also distinguishes itself from siblings like monster_stats by emphasizing replication of the game's drop code rather than raw table lookup, so an agent can pick it without opening the schema.

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 explicit when-to-use context per parameter (source types such as monster id, super unique, or 'tc:' class; difficulty; item vs. no-item behavior) and clear when-not exclusions: 1.09 and earlier and Resurrected are refused, chests/objects are not valid sources. It stops short of naming a sibling tool to use instead for adjacent questions, so not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.