Skip to main content
Glama

Lookup Kit

dice_roll

Read-only

Dice roller, roll dice (d20, 2d6), random dice for games. Roll dice in standard notation such as 2d6, 1d20+5 or 4d6-1 (up to 100 dice, up to 1000 sides). Returns each die and the total. Cryptographic random. Price: $0.001 per call (x402, USDC on Base).

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": "dice_roll"
  }
}

Input Schema

NameRequiredDescriptionDefault
diceNo1d6

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description goes well beyond them: it discloses the return shape (each die and the total), the RNG quality (cryptographic), hard limits (100 dice, 1000 sides), and a per-call cost with payment rail (x402, USDC on Base). The cost and limit disclosures are genuinely decision-relevant for an agent; only edge-case failure behavior is left unstated.

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?

Short and front-loaded, with the notation format and limits early and cost last, which is the right order. The only waste is the tricolon of near-synonyms at the start ('Dice roller, roll dice, random dice for games') that adds no information.

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 one-parameter tool with no output schema, the description covers input format, caps, randomness quality, return contents, and price — everything an agent needs to call it and anticipate the result. Nothing material 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 0%, so the description must carry the parameter, and it does: it names the accepted notation (NdM±K) and enumerates examples covering a plain die, a positive modifier, and a negative modifier, plus the numeric caps that the regex alone doesn't explain. It omits the schema's default of 1d6, which would have made it fully self-sufficient.

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 dice') and gives concrete notation examples (d20, 2d6) that make it clearly distinct from the sibling coin_flip. The opening clause ('Dice roller, roll dice... random dice for games') is redundant keyword repetition rather than added clarity.

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 only implied through 'random dice for games' — there is no explicit statement of when to prefer this over alternatives like coin_flip, nor any when-not guidance. An agent can infer the context but must do the work itself.

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