Skip to main content
Glama

MTG Sim

MTG mana sim: land count and color sources

mtg_land_count
Read-only

MTG mana sim: land count and color sources. How many lands should my deck play, and how many sources of each color do I need? Returns the land count needed to hit each land drop on curve at your target probability (default 90%), checks your current land count turn by turn, and gives colored-source counts for casting e.g. RR on turn 2. Works for 60-card, Commander (99) and Limited (40). Exact hypergeometric. Costs $0.001 per call, paid with MPP on Tempo (send an MPP Payment credential in the Authorization header of the MCP request, or call POST https://mtg-sim.fmf-x402.workers.dev/mpp/mtg/land-count with mppx). Without payment the tool returns the price and how to pay; invalid input is never charged.

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

Input Schema

NameRequiredDescriptionDefault
landsNoYour current land count (optional)
colorsNo[{"color":"R","pips":2,"turn":2}]
formatNomtg | commander | limited
on_playNoDefault true
curve_topNoMana value you want to cast on curve (e.g. 4)
probabilityNoTarget probability, default 0.9

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses pricing ($0.001 per call), the authentication mechanism (MPP Payment credential in the Authorization header or the mppx endpoint), graceful no-payment behavior (returns price and payment instructions), and the no-charge-on-invalid-input guarantee. These are operationally critical facts an agent cannot infer from annotations or schema.

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?

Front-loaded with the purpose and core computation, then moves to the operational payment details. The payment paragraph is lengthy but earns its place for a paid tool; the sentences are dense with no filler, though the definition is longer than average.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of explaining returns and does so precisely: land count per land drop at target probability, turn-by-turn check of the current land count, and colored-source counts. Combined with format coverage, payment behavior, and full schema coverage, nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, but the description adds real meaning: the default target probability of 90%, illustrative use of the colors parameter ('casting e.g. RR on turn 2', which clarifies the color/pips/turn tuple), and format-dependent behavior for 60/99/40 cards. It does not clarify on_play or curve_top semantics, keeping it below a 5.

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 concrete computational resource: land count to hit land drops and colored-source counts using exact hypergeometric math. The framing question ('How many lands should my deck play, and how many sources of each color do I need?') makes the output unambiguous. It does not explicitly contrast itself with siblings like mtg_draw_odds or mtg_opening_hand_odds, relying on the distinct resource to differentiate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear use context is provided: deckbuilding questions about land counts and color sources, with explicit format coverage for 60-card, Commander (99) and Limited (40). No exclusions or named alternatives are given, so it lands at a clear-context-but-no-routing score rather than a 5.

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.