Skip to main content
Glama

Roll Dice

roll_dice
Read-only

Roll one or more dice and return each face plus the total. Defaults to two six-sided dice (total 2–12).

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

Input Schema

NameRequiredDescriptionDefault
countNoHow many dice to roll (1–100). Defaults to 2.
sidesNoNumber of sides on each die (2–1000). Defaults to 6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the return format (individual faces plus a total) and the default configuration with its resulting range.

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?

Two short sentences, front-loaded with the action and result, then the default behavior. No filler and nothing redundant beyond the useful default restatement.

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?

For a trivial two-parameter utility with full annotation coverage, the description covers action, output shape, and defaults. The absence of an output schema is partly offset by the inline description of the return value, though per-face ordering or error behavior is not mentioned.

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 100% and both parameters carry ranges, defaults, and descriptions, so the schema does the heavy lifting. The description's 'two six-sided dice (total 2–12)' merely restates the defaults already encoded in the schema.

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 (roll) and resource (dice) and immediately clarifies the return shape: each face plus the total. That distinguishes it cleanly from the other utility siblings, none of which involve randomness.

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?

No explicit when-to-use or when-not-to-use guidance is given, and no alternative is named. For a single-purpose random-number utility the implied usage is obvious enough that this is adequate, but nothing is stated.

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