Skip to main content
Glama

Flip Coins

flip_coins
Read-onlyIdempotent

Pipeworx dice engine: flip fair coins with real randomness, up to 1,000 per call. Returns the sequence (H/T), heads and tails counts, and the longest run. Omit seed for fresh flips; pass the returned seed to reproduce them exactly. The outcome is random, the calling agent decides what it means.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "count": 10
    },
    "name": "flip_coins"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional seed. Same seed + same count = same flips. Omit for fresh flips; the seed used is always returned.
countNoNumber of coins to flip (default 1, max 1000).

Output Schema

NameRequiredDescriptionDefault
metaNo
seedNo
countNo
headsNo
tailsNo
sequenceNo
longest_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "type": "number"
      +    },
      +    "heads": {
      +      "type": "number"
      +    },
      +    "longest_run": {
      +      "properties": {
      +        "length": {
      +          "type": "number"
      +        },
      +        "side": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "meta": {
      +      "properties": {
      +        "deck": {
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "version": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "procedure": {
      +          "type": "string"
      +        },
      +        "seed": {
      +          "type": "string"
      +        },
      +        "source": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "seed": {
      +      "type": "string"
      +    },
      +    "sequence": {
      +      "type": "string"
      +    },
      +    "tails": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, the description discloses randomness, the 1,000-coin limit, returned summaries, and reproducibility via the returned seed. It does not need to repeat the read-only and idempotent hints, which are already captured in annotations.

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?

The description is front-loaded with purpose and scope, then covers seed behavior and randomness in a few efficient sentences. No sentence is clearly wasteful for this simple tool.

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?

The tool is simple and the description covers its core behavior, but it lacks explicit selection guidance against similar tools. Given the output schema, the return-value details are somewhat redundant, and the description could more clearly explain when this tool is appropriate versus dice_odds.

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 description coverage is 100%, so both parameters are already fully documented. The description reinforces seed and count behavior, but it largely repeats what the schema already states rather than adding new syntax or edge-case meaning.

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?

The description states a specific verb and resource (flip fair coins), its scope (up to 1,000 per call), and what is returned. It is clear without opening the schema, though it does not explicitly differentiate itself from sibling tools such as dice_odds.

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?

It gives useful seed-specific guidance: omit seed for fresh flips and pass the returned seed to reproduce results. However, it does not explain when to choose this tool over related sibling tools like dice_odds or other random-generation tools.

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.