Skip to main content
Glama

Coin flip

random_coinflip

Flip one or more fair coins and get heads or tails, with the tally. Cryptographically random, not Math.random. For tie-breaks and A/B splits an agent has to decide on its own. $0.005 per call, paid over x402 (USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoHow many coins to flip, 1-100. Defaults to 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the randomness guarantee ('Cryptographically random, not Math.random') and the cost/payment model ('$0.005 per call, paid over x402 (USDC)'). These are meaningful behavioral facts beyond the schema. It still omits return format and per-call limits, keeping it from a 5.

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?

It is short and front-loads the core action before secondary facts (randomness quality, use cases, pricing). The clause 'an agent has to decide on its own' is slightly vague and could be tightened, but nothing is padded.

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 single-parameter tool with no output schema, the description covers purpose, randomness quality, cost, and example use cases. It lacks explicit detail on the return shape, but the scope is narrow enough that this is a minor gap.

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%, with the count parameter fully documented (1-100, default 1). The description's 'one or more fair coins' only restates the schema, adding no new syntax or constraint detail, so the baseline 3 applies.

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: 'Flip one or more fair coins and get heads or tails, with the tally.' An agent immediately understands the operation and result type. It does not explicitly distinguish itself from the nearby random_dice/random_number siblings, so it stops short of a 5.

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 names concrete use cases ('tie-breaks and A/B splits'), which implies when to reach for it. However, it offers no exclusions and does not route the agent to alternatives like random_number or random_pick, so guidance is inferred rather than explicit.

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