Skip to main content
Glama

Weighted loot and drop tables

loot_table

Roll from a weighted loot table, or report each item's drop chance. Handles rarity weights and returns repeatable results with a seed. Cost: 1 credit per call.

Input Schema

NameRequiredDescriptionDefault
seedNo
itemsYes
rollsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does add real value by disclosing determinism via seed and a cost of 1 credit per call. However, it omits what happens with non-normalized weights, weight limits, or error behavior, so the disclosure is partial.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the primary action, with no filler. The cost note earns its place as an operational constraint.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a small three-parameter tool with no output schema and no annotations, the description covers mode, determinism, and cost but leaves parameter behavior (rolls) and return shape unaddressed. Adequate but with visible gaps.

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 coverage is 0% across three parameters. The description adds meaning for items ('rarity weights') and seed ('repeatable results'), but the rolls parameter, its default of 10, and its 0-1000 range are never addressed, leaving a key input unexplained.

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 specific verb and resource ('Roll from a weighted loot table') plus a second mode ('report each item's drop chance'). It is clearly distinguishable from siblings like dice_roller or xp_curve, though it never names an alternative to route against.

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?

The two modes (roll vs. report drop chance) are mentioned but nothing explains how to select between them; presumably rolls=0 triggers reporting, but that is left to inference. No explicit when-not-to-use guidance is given.

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.