Skip to main content
Glama

Agent Data Tools: Utilities

Flip a coin

coin
Read-only

Flip one or more fair coins using a cryptographic random source. Returns each result and the totals. Use for fair decisions and games. Example: count=1. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
countNoHow many coins (1-100, default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +100
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, openWorldHint=false and idempotentHint=false, but the description adds real value beyond them: the randomness source is cryptographic, failed calls are free, and 'each call is charged, so repeats are not free' explains the practical consequence of non-idempotency. It stops short of describing the return payload shape, but cost and failure behavior are unusually well disclosed.

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?

Purpose is front-loaded and the sentences are dense with useful detail, but there is some redundancy: 'Reads or computes only and changes nothing' restates readOnlyHint/destructiveHint=false, and the pricing clause is long relative to the rest. Nothing is wasted outright, but a tighter phrasing would preserve all information.

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 and full annotation coverage, the definition covers purpose, usage context, randomness quality, cost model, and failure billing — enough to call it correctly. The only gap is the exact shape of 'the totals' returned, which is left vague despite there being no output schema to fall back on.

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?

There is one optional parameter with 100% schema description coverage ('How many coins (1-100, default 1)'), so the schema already carries the semantics. The description only adds a trivial call example ('count=1'), which does not extend meaning; 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?

The description states a specific verb and resource — 'Flip one or more fair coins using a cryptographic random source' — and adds the mechanism (cryptographic RNG) and output shape ('each result and the totals'). It does not name or differentiate against any sibling such as pack_coin_research, so it falls short of the top band that requires explicit sibling differentiation.

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?

'Use for fair decisions and games' gives an implied usage context but names no alternatives and no when-not conditions. The pricing note ('first 10 free; failed calls free') indirectly informs cost-sensitive repeated use but is not framed as selection guidance.

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