Skip to main content
Glama

DeckCosmos

Draw odds

draw_odds
Read-onlyIdempotent

Exact (hypergeometric) chance of drawing at least N of something by a given turn, with the table for turns 1-10, the same as the website's odds calculator. Target: "lands", "role:" (e.g. role:land_ramp) or a card name.

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

Input Schema

NameRequiredDescriptionDefault
turnNoDefault 3.
cardsNoAlternative to decklist: [{"name": "Sol Ring", "qty": 1}, ...] or plain names.
targetNo"lands", "role:<key>" or a card name. Default lands.
on_playNoDefault true.
at_leastNoDefault 1.
decklistNoThe deck as text: one "1 Card Name" per line. Moxfield, Archidekt and Arena exports, .dek XML and CSV work; a "Commander" header line (or *CMDR*) marks the commander.
commanderNoCommander name, if the list does not mark it. Otherwise it is detected like on the website.

Output Schema

NameRequiredDescriptionDefault
turnNoTurn asked about.
methodNoHow it was calculated.
targetNoWhat was counted.
by_turnYesTurns 1-10.
percentYesChance by that turn, %.
at_leastNoHow many needed.
on_the_playNoOn the play (no draw on turn 1).
library_sizeNoLibrary size.
copies_in_libraryNoCopies of the target in the library.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real context beyond that: the exact hypergeometric method, the turns 1-10 table output, and parity with the website calculator. It stops short of stating that all parameters are optional with defaults, which would be the last piece.

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?

Two sentences, front-loaded with the core computation before the target syntax, with no filler. The dense parenthetical and quoted examples are justified by the information they carry, though the sentence is somewhat packed.

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?

An output schema exists, so return values need not be explained, and the description still usefully notes the turns 1-10 table. With seven optional, fully documented parameters, the definition is complete enough for correct invocation; only explicit sibling differentiation is missing.

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 all seven parameters including defaults are already documented. The description adds a small amount of meaning by enumerating the target forms ('lands', 'role:<role key>', card name) with a concrete example, but otherwise restates what the schema provides, so 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 names a specific computation (exact hypergeometric chance of drawing at least N of something by a given turn) and a specific resource (deck/card draw odds), plus a website-parity reference. It does not explicitly contrast itself with siblings like sample_hand or simulate_deck, so an agent must infer the distinction from the word 'exact'.

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 implied rather than stated: the 'exact (hypergeometric)' framing signals this is the analytical calculator as opposed to a simulation, but no sibling is named and there is no explicit when-to-use / when-not guidance. An agent can guess the right context but is not routed.

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