iwantmymtg-mcp
v0.8.1Query Magic: The Gathering cards, sets, and prices and manage your I Want My MTG collection.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_cards
Search Magic: The Gathering cards by name (substring), set code, rarity, type, or format legality. Returns a paginated list with prices and basic metadata. Use this for catalog lookups; for a specific printing prefer get_card with set+number.
| Parameter | Type | Description |
|---|---|---|
format | string | Filter to cards with a legality entry in this format (e.g. 'modern', 'commander'). |
legality | string | Used with 'format'. Defaults to 'legal' when format is set. |
limit | integer | Page size (max 100). |
page | integer | 1-based page index. |
q | string | Substring to search card name + flavor name. Optional; omit to filter purely by setCode/rarity/type/format. |
rarity | string | Filter by rarity. |
setCode | string | 3-5 character set code (e.g. 'lea', 'mh3'). |
type | string | Substring match against card type line (e.g. 'Goblin', 'Instant'). |
get_card
Look up a specific card printing by set code and collector number. Returns full card detail including current prices, rarity, type, and flavor name. For broader catalog search use search_cards.
| Parameter | Type | Description |
|---|---|---|
setCode * | string | Set code (e.g. 'lea'). |
setNumber * | string | Collector number within the set (e.g. '161'). String, not int - some sets use suffixes like '12a'. |
get_card_prices
Get current normal and foil prices for a specific card printing.
| Parameter | Type | Description |
|---|---|---|
setCode * | string | Set code (e.g. 'lea'). |
setNumber * | string | Collector number within the set (e.g. '161'). String, not int - some sets use suffixes like '12a'. |
get_card_price_history
Get the 30-day price history for a card printing (normal + foil). Older data is retained on a weekly/monthly cadence beyond 30 days.
| Parameter | Type | Description |
|---|---|---|
setCode * | string | Set code (e.g. 'lea'). |
setNumber * | string | Collector number within the set (e.g. '161'). String, not int - some sets use suffixes like '12a'. |
get_card_printings
List every printing of the card at this set code and collector number, most valuable first. Use this to compare what the same card costs across sets, or to find a cheaper printing. Prefer it over search_cards for that: search_cards matches names by substring, so it also returns unrelated cards whose names merely contain the term. The addressed printing is included in the results.
| Parameter | Type | Description |
|---|---|---|
setCode * | string | Set code (e.g. 'lea'). |
setNumber * | string | Collector number within the set (e.g. '161'). String, not int - some sets use suffixes like '12a'. |
limit | integer | Page size (max 100). |
page | integer | 1-based page index. |
get_price_movers
The week's biggest Magic: The Gathering price moves: the cards whose price rose (direction 'up', the default) or fell (direction 'down') the most over the last 7 days, one row per printing and finish, with today's price, the price a week ago, and the change in dollars and percent. Ranked by percent unless by is 'amount'. Cards worth less than minPrice (default $5) both before and after the move are left out, and so are prices that jumped back and forth during the week, which come from a missing vendor price rather than a real move. Narrow it with setCode, rarity, type, format legality or finis…
| Parameter | Type | Description |
|---|---|---|
by | string | Rank by 'percent' change (default) or dollar 'amount'. |
direction | string | 'up' for the biggest increases (default), 'down' for decreases. |
finish | string | Only this finish. Both by default. |
format | string | Filter to cards with a legality entry in this format (e.g. 'modern', 'commander'). |
legality | string | Used with 'format'. Defaults to 'legal' when format is set. |
limit | integer | Page size (max 100). |
minPrice | number | Ignore cards worth less than this many dollars both before and after the move. Defaults to 5. |
page | integer | 1-based page index. |
rarity | string | Filter by rarity. |
setCode | string | 3-5 character set code (e.g. 'lea', 'mh3'). |
type | string | Substring match against card type line (e.g. 'Goblin', 'Instant'). |
search_sets
List Magic: The Gathering sets, optionally paginated. Returns set code, name, release date, type, and aggregate prices.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
page | integer |
get_set
Get detail for a single set by code (e.g. 'lea', 'mh3').
| Parameter | Type | Description |
|---|---|---|
code * | string |
list_set_cards
List all cards in a set, paginated. Supports the same filters as search_cards (rarity, type, format, legality).
| Parameter | Type | Description |
|---|---|---|
code * | string | Set code. |
format | string | |
legality | string | |
limit | integer | |
page | integer | |
rarity | string | |
type | string |
get_sealed_products
List sealed products (booster boxes, bundles, commander decks, etc.) for a set. Each entry includes a TCGPlayer purchase URL.
| Parameter | Type | Description |
|---|---|---|
code * | string |
get_sealed_product
Get detail for a single sealed product by its UUID, including current pricing and a TCGPlayer purchase URL. List a set's sealed products with get_sealed_products.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Sealed product UUID, e.g. from get_sealed_products. |
get_set_price_history
Get the price history for a whole set by set code - the set's aggregate value over time. Optionally limit the window with days. For a single card's history use get_card_price_history.
| Parameter | Type | Description |
|---|---|---|
code * | string | Set code (e.g. 'mh3'). |
days | integer | Number of days of history to return. |
get_card_buylist
Get current buylist (sell-to-vendor) offers for a card printing, by set code and collector number. Returns offers grouped by finish (normal/foil/etched), best first, with the highest offer per finish marked. NM condition only. Use get_card_prices for retail (buy) prices instead.
| Parameter | Type | Description |
|---|---|---|
setCode * | string | Set code (e.g. 'lea'). |
setNumber * | string | Collector number within the set (e.g. '1', '234a'). |
get_market_sell_value
Market sell value of the authenticated user's whole inventory: matches every owned card against current buylist offers, picks the best offer per item (capped by the vendor's buy quantity), groups by vendor, and totals it. Returns vendor groups with per-item payouts plus overall totals. Requires IWMM_API_KEY.
get_cash_vs_credit
Cash vs. store-credit recommendation for the authenticated user. Compares taking the buylist cash payout for their inventory against taking store credit (worth a bonus %) and spending it on their buy list. Returns the recommendation, the credit advantage, out-of-pocket each way, and the priced buy-list lines. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
bonus | number | Store-credit bonus as a fraction (0.30 = +30%). Must be in [0, 2]; defaults to 0.30 (Card Kingdom). |
list_buy_list
List the authenticated user's buy-list (want-list): the cards they want to acquire, with quantities, finish, and current prices. Requires IWMM_API_KEY.
add_buy_list
Add a card to the authenticated user's buy-list, incrementing the quantity (creates the row if absent). This is a real write. Use update_buy_list to set an absolute quantity or remove_buy_list to delete a row. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. Get from search_cards or get_card. |
isFoil | boolean | Whether this is the foil variant. Foil and non-foil are separate rows. Defaults to false. |
quantity | integer | How many to add. Defaults to 1. |
update_buy_list
Set the absolute quantity for a buy-list card+finish (not a delta). A quantity of 0 removes the row. Use add_buy_list to increment instead. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. Get from search_cards or get_card. |
quantity * | integer | Absolute quantity to set. 0 removes the row. |
isFoil | boolean | Whether this is the foil variant. Foil and non-foil are separate rows. Defaults to false. |
remove_buy_list
Remove a card+finish row from the authenticated user's buy-list entirely. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. Get from search_cards or get_card. |
isFoil | boolean | Whether this is the foil variant. Foil and non-foil are separate rows. Defaults to false. |
import_buy_list
Bulk-add cards to the authenticated user's buy-list from pasted CSV text. Native format header: name,set_code,number[,quantity][,foil]. External exports (Moxfield, Archidekt, Deckbox, TCGPlayer) are auto-detected. Returns counts and per-row errors. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
text * | string | CSV text including a header row. |
list_inventory
List the authenticated user's card inventory, paginated. Returns cards with quantities, prices, and metadata. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
page | integer |
get_inventory_quantities
Batch lookup: given a list of card UUIDs, return how many of each (normal + foil) the user owns. Useful before recommending adds. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardIds * | array |
add_inventory
Add one or more cards to the authenticated user's inventory. Accepts a batch - pass a single-item array for one card. This is a real write. Use update_inventory to change quantities, remove_inventory to delete a row. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
items * | array |
update_inventory
Update quantities for one or more existing inventory rows. Accepts a batch. Use remove_inventory to delete a row entirely. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
items * | array |
remove_inventory
Remove a card+finish row from the authenticated user's inventory. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | |
isFoil * | boolean |
import_inventory_cards
Bulk-import cards into the authenticated user's inventory from pasted CSV text. Native header: name,set_code,number[,quantity][,foil]; Moxfield, Archidekt, Deckbox, and TCGPlayer exports are auto-detected. Returns counts of saved/deleted/skipped rows and per-row errors. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
text * | string | CSV text including a header row. |
export_inventory
Export the authenticated user's full card inventory as CSV (columns: id, name, set_code, number, quantity, foil). Reimport-compatible with import_inventory_cards. Requires IWMM_API_KEY.
list_sealed_inventory
List the authenticated user's sealed-product inventory (booster boxes, bundles, precons), paginated, with quantities and prices. For loose cards use list_inventory. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
page | integer |
set_sealed_inventory
Add or update a sealed product in the authenticated user's inventory by setting its absolute quantity (upserts the row for that product). This is a real write and is Premium-gated. Use remove_sealed_inventory to delete a row. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
quantity * | integer | Absolute quantity to set for this product. |
sealedProductUuid * | string | Sealed product UUID. Get it from get_sealed_products or get_sealed_product. |
remove_sealed_inventory
Remove a sealed product from the authenticated user's inventory entirely. Premium-gated. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
sealedProductUuid * | string | Sealed product UUID. Get it from get_sealed_products or get_sealed_product. |
list_transactions
List the authenticated user's transactions, paginated. Supports sort/filter query params. Free tier sees the last 30 days only; Premium gets full history. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
ascend | boolean | Sort direction: true for ascending, false for descending. |
limit | integer | |
page | integer | |
sort | string | Sort key (e.g. TX_DATE, TX_TYPE, TX_CARD, TX_PRICE). |
type | string |
record_transaction
Record a buy or sell transaction. By default this also adjusts inventory (BUY adds, SELL subtracts). This is a real write. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. |
date * | string | ISO 8601 date (YYYY-MM-DD). |
isFoil * | boolean | |
pricePerUnit * | number | Per-unit price in USD. |
quantity * | integer | |
type * | string | |
fees | number | |
notes | string | |
skipInventorySync | boolean | If true, record the transaction without adjusting inventory. Default false - transactions normally update inventory. |
source | string | Where the transaction happened (e.g. 'TCGPlayer', 'LGS'). |
update_transaction
Update an existing transaction by ID. Only the fields supplied are changed. Card identity and type (BUY/SELL) cannot be changed via this endpoint - delete and re-create instead. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Transaction ID from list_transactions. |
date | string | |
fees | number | |
notes | string | |
pricePerUnit | number | |
quantity | integer | |
source | string |
delete_transaction
Delete a transaction by ID. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
id * | integer |
get_cost_basis
Get FIFO cost basis for a specific card+finish for the authenticated user. Pass either cardId or (setCode, setNumber). Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId | string | |
isFoil | boolean | |
setCode | string | |
setNumber | string |
get_portfolio_summary
Get the authenticated user's portfolio summary - current value, total invested, unrealized P&L, ROI, card/unit counts. Free tier sees current value + total invested only; Premium gets the full P&L set. Requires IWMM_API_KEY.
get_portfolio_history
Get portfolio value history. Premium-gated - free tier receives 403. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
days | integer | How many days of history. Server default applies if omitted. |
get_card_performance
Get the user's best- or worst-performing cards by P&L. Default: best, top 10. Premium-gated. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
type | string |
get_cash_flow
Get the user's cash flow (money in vs money out from BUY/SELL transactions). Premium-gated. Requires IWMM_API_KEY.
get_realized_gains
Get the user's realized gains from SELL transactions using FIFO cost basis. Premium-gated. Requires IWMM_API_KEY.
get_portfolio_breakdown
Get the user's collection value broken down by a dimension into slices (each with value, count, and share). Premium-gated. Use get_portfolio_breakdown_cards to drill into one slice. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
by * | string | Dimension to break down by. 'cost-basis' buckets are gain/loss/at-cost; 'color' groups by color identity. |
colors | string | Only for by=color: comma-separated identity codes (W,U,B,R,G,C; C is colorless) to keep only cards whose color identity contains all of them. Ignored for other dimensions. |
get_portfolio_breakdown_cards
Get the cards inside one slice of a portfolio breakdown (the drill-down for get_portfolio_breakdown). Premium-gated. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
by * | string | Dimension the slice belongs to. Must match the get_portfolio_breakdown call. |
key * | string | Slice key from the breakdown: a set code, rarity, type, cost-basis bucket, or color code. |
colors | string | Only for by=color: the same superset filter (W,U,B,R,G,C) passed to get_portfolio_breakdown, so the drill-down matches the aggregate row. Ignored for other dimensions. |
refresh_portfolio
Recalculate the user's portfolio P&L. Use after recording a batch of transactions if you want immediate fresh numbers. Requires IWMM_API_KEY.
list_decks
List the authenticated user's decks (summaries: id, name, format, card counts). Requires IWMM_API_KEY.
get_deck
Get one deck with its cards (mainboard + sideboard). Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
deckId * | integer | Deck id. Get from list_decks or create_deck. |
create_deck
Create a new empty deck. This is a real write. Use add_deck_card to fill it, or import_deck to create from pasted text instead. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | Deck name. |
format | string | Target format. Omit for no format. |
import_deck
Create a deck from pasted decklist text, one entry per line (e.g. "4 Lightning Bolt"). Returns the new deck id plus any lines that could not be resolved to a card. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | Deck name. |
text * | string | Decklist text, one entry per line. |
format | string | Target format. Omit for no format. |
update_deck
Rename a deck or change its format. Omitting format clears it. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
deckId * | integer | Deck id. Get from list_decks or create_deck. |
name * | string | New deck name. |
format | string | Target format. Omit for no format. |
delete_deck
Delete a deck and all of its cards. This is permanent. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
deckId * | integer | Deck id. Get from list_decks or create_deck. |
add_deck_card
Add a card to a deck, incrementing its quantity (creates the row if absent). Use set_deck_card_quantity to set an absolute quantity or remove_deck_card to delete a row. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. Get from search_cards or get_card. |
deckId * | integer | Deck id. Get from list_decks or create_deck. |
isSideboard | boolean | Whether the card belongs to the sideboard. Mainboard and sideboard are separate rows. Defaults to false. |
quantity | integer | How many to add. Defaults to 1. |
set_deck_card_quantity
Set the absolute quantity for a card + board in a deck (not a delta). A quantity of 0 removes the row. Use add_deck_card to increment instead. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. Get from search_cards or get_card. |
deckId * | integer | Deck id. Get from list_decks or create_deck. |
isSideboard * | boolean | Which board the row belongs to. Mainboard and sideboard are separate rows. |
quantity * | integer | Absolute quantity to set. 0 removes the row. |
remove_deck_card
Remove a card + board row from a deck entirely. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. Get from search_cards or get_card. |
deckId * | integer | Deck id. Get from list_decks or create_deck. |
isSideboard * | boolean | Which board the row belongs to. Mainboard and sideboard are separate rows. |
deck_missing_to_buy_list
Add the deck's missing cards (the shortfall vs. the user's inventory) to their buy-list. Returns the count of distinct cards added. This is a real write to the buy-list. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
deckId * | integer | Deck id. Get from list_decks or create_deck. |
list_price_alerts
List the authenticated user's price alerts. Free tier is capped at 5 active alerts and a single threshold direction per alert; Premium removes both limits. Requires IWMM_API_KEY.
create_price_alert
Create a price alert for a card. Supply increasePct, decreasePct, or both (Premium). At least one threshold is required. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
cardId * | string | Internal IWMM card UUID. |
decreasePct | number | Trigger when price decreases by at least this percent. |
increasePct | number | Trigger when price increases by at least this percent. |
update_price_alert
Update an existing price alert. Pass null for a threshold to clear it (Premium only - free users must keep exactly one direction). isActive toggles enable/disable without deleting. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Alert ID from list_price_alerts. |
decreasePct | ||
increasePct | ||
isActive | boolean |
delete_price_alert
Delete a price alert by ID. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
id * | integer |
list_notifications
List the authenticated user's price alert notifications, newest first. Includes both read and unread. Requires IWMM_API_KEY.
get_unread_notification_count
Get the count of unread notifications for the authenticated user. Requires IWMM_API_KEY.
mark_notification_read
Mark a single notification as read. Requires IWMM_API_KEY.
| Parameter | Type | Description |
|---|---|---|
id * | integer |
mark_all_notifications_read
Mark every notification for the authenticated user as read. Requires IWMM_API_KEY.