Skip to main content
Glama
Cladios34

mtg-mcp-server

by Cladios34

cost_reduction_check

Read-onlyIdempotent

Apply cost reduction from a card to mana costs, accurately reducing only generic mana while preserving colored pips, hybrids, and X. Eliminates mistakes from manual arithmetic.

Instructions

Apply a cost reducer to costs mechanically, and say what it does NOT reduce.

Rule 601.2f: a generic cost reduction reduces the generic component only. Coloured pips, {C}, hybrids and {X} survive it — two reducers do not take {U}{B} to {0}. Use this instead of doing the arithmetic in prose; the prose version has been wrong in both directions on the same card.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordNoWhen testing cards, the keyword whose ACTIVATION cost is the target (e.g. 'Ninjutsu') rather than the card's own mana cost
reducer_cardYesThe card doing the reducing — its oracle text sets the amount
target_cardsNoCard names to test instead of raw costs
target_costsNoRaw mana costs to test, e.g. ['{U}{B}', '{2}{U}{U}']
response_formatNoOutput verbosity: 'detailed' (default) or 'concise'detailed
Behavior5/5

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

The description reveals precise behavioral details beyond the readOnlyHint, openWorldHint, and idempotentHint annotations: it reduces only generic costs, leaves colored pips, hybrids, {C}, and {X} untouched, and clarifies that multiple reducers don't apply to colored portions. No contradiction with 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 two concise sentences plus a rule reference, all front-loaded with the core action. No filler—every sentence adds value, including the rationale for using the tool.

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?

Given the presence of annotations and full schema coverage, the description sufficiently covers the tool's purpose and handling of edge cases (e.g., hybrid mana, {X}). It lacks an explicit description of the output format, but the 'detailed' vs 'concise' parameter provides insight.

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?

With 100% schema coverage, the baseline is 3. The description does not significantly augment the schema's parameter descriptions; it only references the reducer_card's role. The schema's own descriptions are adequate for the parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool applies a cost reducer mechanically and reports what it does not reduce. This specific verb+resource (apply cost reducer) distinguishes it from sibling tools like rules_interaction or combat_calculator, which handle different aspects of Magic.

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?

The description explicitly advises using this tool instead of prose to avoid arithmetic errors, with a concrete example of past mistakes. It explains the rule's limitation (only reduces generic component). However, it does not explicitly state when to use an alternative, though the context is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cladios34/mtg-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server