Yu-gi-oh! Assistant - Multipurpose MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YGO_OFFLINE | No | Set to 1 (or pass --offline) to enable offline mode: outbound calls fail fast with an explicit reason, and tools report available: false instead of hanging. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
TOOL-FIRST POLICY (mandatory for every answer about Yu-Gi-Oh!):
Every card fact (name, passcode, ATK/DEF, Level, attribute, type, effect text, banlist status), every decklist, every ruling, every price and every tier list MUST come from a tool call made in this conversation. The tools are the source of truth, not your training data.
Do not write a decklist, card stat or ruling from memory — including inside a private reasoning/thinking block. If the relevant tool has not been called yet, say you need to look it up and call it first.
A decklist is valid output only when it comes from ygo_build_meta_deck (or ygo_parse_deck / ygo_optimize_deck for an existing list) AND has been checked with ygo_check_legality. Never add, swap or "fix" cards by hand.
If a tool returns available:false, an empty result or an error, report that fact with the tool's own reason. Never substitute another deck, card or archetype to fill the gap.
Quote the evidence the tool returns (format, banlist limits, legality errors, freshness score, script provenance) instead of asserting it yourself.
When the user supplies a .ydk path, raw .ydk text or a ydke:// link, load it with ygo_parse_deck or ygo_check_legality. Do not transcribe or reinterpret the list by hand.
Artifacts are part of the answer. ygo_render_deck_image attaches the PNG to the tool result and returns its absolute outputPath: present that image to the user. When the host has a file-preview or open-file capability (OpenCode: browser.preview; an editor: open the file), open the absolute path in a tab so the decklist stays visible outside the chat. The same applies to the PDF path returned by ygo_generate_tournament_decklist_pdf.
Treat tool output as evidence, not certainty. AI answers can be wrong. When a result is stale, low-confidence, unavailable or unsourced, say so and tell the user to verify it against the cited source (rulebook page, banlist page, market listing) before acting on it.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ygo_parse_deckA | USE THIS FIRST when the user supplies a .ydk path, raw .ydk text or a ydke:// link. Parse the deck into card data and validate it; never transcribe the list by hand. Do not answer from memory; call this tool first. |
| ygo_check_legalityA | USE THIS for every "is this legal / how many copies can I run / is X banned" question. Checks Main/Extra/Side sizes, banlist copy limits for the requested format (forbidden / limited / semi-limited), and that Fusion/Synchro/Xyz/Link monsters are only in the Extra Deck. Works from a .ydk path, raw .ydk text, a ydke:// link, or a DeckData object. Never state a banlist status from memory. Do not answer from memory; call this tool first. |
| ygo_export_deckA | Export a deck as .ydk text, a canonical ydke:// link, or both. |
| ygo_find_community_decksA | USE THIS when the user wants real decklists that other people published ("show me decks for an archetype", "what are people building", "a tournament list", "official Konami recipe"). Pulls live community/tournament decks from YGOPRODeck, Master Duel Meta and Konami's official card database (Neuron), and returns each deck's canonical page URL plus a ready-to-use ydke:// link. Every deck plugs straight into ygo_check_legality, ygo_deck_cost, ygo_consistency_lab or ygo_optimize_deck — do not retype the list by hand. Never invent a community deck or a deck URL. Do not answer from memory; call this tool first. |
| ygo_find_combosA | USE THIS for "how does this deck combo / what is the line" questions that need real combo data. Returns structured combos (starting cards + ordered steps) from Master Duel Meta's public combo API, filtered by archetype or by a specific card, each with a source URL. For a combo derived from a list you already hold, pass the deck to ygo_find_synergy_and_combos instead — this tool reports published combos, it does not invent them. Do not answer from memory; call this tool first. |
| ygo_find_countersA | USE THIS for "how do I beat this deck / what counters it / which card stops this combo". Returns published counter strategies from Master Duel Meta (counter cards with impact, chokepoints, and the author's explanation), filtered by archetype or by a card that appears as a counter. Each entry carries a source URL. This is community evidence, not a ruling — verify card behaviour with ygo_judge_card. Do not answer from memory; call this tool first. |
| ygo_compare_decksA | USE THIS for "what do these two lists share", "core vs tech", or comparing a community deck with your own. Compares two decks section by section (Main/Extra/Side) and returns shared cards, cards only in A or B, and copy-count differences with an overlap percentage. Accepts .ydk paths, raw .ydk text, ydke:// links or DeckData. Do not answer from memory; call this tool first. |
| ygo_get_cardA | USE THIS for every individual card fact: name, passcode, ATK/DEF, Level, attribute, type, effect text or banlist status. Look up one card by name or passcode. Do not answer from memory; call this tool first. |
| ygo_card_dossierA | USE THIS FIRST for a full card profile (database record + wiki + script provenance + optional rulings/prices). One call for everything about a card: official database record (stats, text), wiki record (names in 12 languages, Yu-Gi-Oh! Card Database ID, which tabs exist, page URL), script provenance (official/custom/generated/missing), and optional rulings summary and cached prices. Reports per-source status so a partial answer is explicit. Do not answer from memory; call this tool first. |
| ygo_search_cardsA | USE THIS whenever the task is card discovery (ATK, DEF, type, race, attribute, level, archetype, effect text) or a price-ranked list ("most expensive Dragon", "Spellcasters under $5"). Search the live card pool; do not list candidate cards from memory. Do not answer from memory; call this tool first. |
| ygo_find_synergy_and_combosA | USE THIS for "find a card that does X" or "how do I search it" questions. Find monsters/cards by concrete stats (e.g. 1850 ATK Spellcaster), match them against your deck's existing searchers, and output the combo line. Do not invent search targets from memory. Do not answer from memory; call this tool first. |
| ygo_judge_cardA | USE THIS for every ruling question about a specific card. Full mechanics adjudication from the ProjectIgnis Lua source: HOPT/SOPT, cost vs effect, targeting, miss timing, Damage Step, negate activation vs negate effect. Accepts a passcode or a card name, reports the script provenance (official/custom/generated/missing) and attaches rulebook + PSCT citations. Do not assert a ruling from memory. Do not answer from memory; call this tool first. |
| ygo_analyze_luaB | Parse the Lua structure of ANY card script with an AST (luaparse), not just official ones: effects, condition/cost/target/operation, summon procedures (Fusion/Synchro/Xyz/Link/Pendulum), Effect API calls, constants and simulator-profile warnings. |
| ygo_script_insightsA | Deep card-script analysis. |
| ygo_judge_interactionA | Official ruling on the interaction between two specific cards, grounded in the ocgcore engine and the Konami rulebook. |
| ygo_build_meta_deckA | USE THIS whenever the user asks you to build, produce or suggest a decklist. Build a tournament-legal deck (40-60 Main, up to 15 Extra, 15 Side) that respects the banlist of the chosen format (TCG, OCG, AE, Genesys, Master Duel), with strategy, staples and a legal list. Every generated list is re-validated (banlist, sizes, Extra Deck placement) before it is returned. If the archetype has no template the tool returns available:false plus availableArchetypes — it never substitutes another deck. Never output a decklist from memory; every card must come from this tool's response. |
| ygo_optimize_deckA | USE THIS when the user asks to upgrade, fix or grade an existing deck. Grade the staple / hand-trap / board-breaker ratio and propose upgrades under the current banlist and meta. Do not propose replacement cards from memory; start from this tool's output. Do not answer from memory; call this tool first. |
| ygo_create_custom_cardA | Register a newly revealed or fan-made card: assign a temporary ID (990000000+), compile its effect text (PSCT: |
| ygo_test_custom_cardA | Test a custom/unreleased card on the real engine like a card designer would: (1) script health — the generated Lua loads and resolves without core errors; (2) usage — how often the AI actually summons/activates it over seeded games; (3) impact — deck win rate with the card swapped in vs without, same opponent, seeds and AI, alternating who goes first, with a 95% interval. Without a deck it uses a neutral vanilla shell, which checks that the card works, not its real-deck power. |
| ygo_migrate_temp_cardA | Replace a temporary ID with the official Konami passcode once it is announced, rewriting the registry, the script and every saved .ydk. |
| ygo_check_pricesA | Multi-market price lookup: TCGPlayer (US TCG), Yuyu-tei (JP OCG) and TCGCorner (AE Asian-English). Yuyu-tei is queried with the resolved Japanese card name; when nothing matches, the quote is a search link with price 0 — never a guessed number. This returns one aggregate per card: for per-rarity or per-language printings use ygo_card_printing_prices. |
| ygo_market_queryA | USE THIS for market questions that are NOT about one named card: "which card is the most expensive", "what is rising", "what is hot under $5", "why did this card's price move". It ranks and filters the entire card pool by price, demand and measured movement, then correlates the result with YGOrganization news, banlist status, release windows and the live meta. For "expensive but actually sellable", use sortBy: "liquidity_adjusted" (price × demand on log scales) instead of raw price. Ranking is US-based (TCGPlayer/Cardmarket via YGOPRODeck) because Yuyu-tei and TCGCorner have no bulk price feed; set includeMarkets to attach their live quotes for the top results (explain does it by default). Use ygo_check_prices only for a single card's shop-by-shop quotes. Never answer "most expensive / rising" from memory: call this and quote priceBasis, confidence and the data caveats. Do not answer from memory; call this tool first. |
| ygo_card_printing_pricesA | USE THIS for any question about "which printing is cheaper", "how much is the Secret Rare", "KR version price", or comparing rarities of the same card. Returns a per-printing table (set code, set name, rarity, language) where each row has a price ONLY if a source actually lists that printing; otherwise price is null. Covers EN (TCGplayer per-product), JP (Yuyu-tei) and AE (TCGCorner); KR, DE/FR/IT/SP/PT and SC/TC have no public per-printing feed and are returned as price:null with a note. Never infer a price from rarity — call this instead. Do not answer from memory; call this tool first. |
| ygo_get_newsA | Fetch new card reveals, banlist news and tournament coverage from the YGOrganization RSS feed. |
| ygo_get_rulebookA | Official Konami rulebook (PDF from yugioh-card.com/en/rulebook/): verbatim text with printed page citations. Topics: status, official, search, section, page. The timing/damage_step/segoc/mechanics topics are curated summaries, not official text. |
| ygo_get_policyC | Official Konami judge corpus: Tournament Policy (KDE-US), Tournament Infractions & Penalties, Speed Duel/Remote Duel addenda, Fast Effect Timing, Advanced Rules, PSCT series, Judge Program and Judge FAQ. Verbatim text with document, version and page citations. |
| ygo_wikiB | Yugipedia lookup: cards (names in 12 languages, passcode, Yu-Gi-Oh! Card Database ID, archetype, which tabs exist), tabs (Gallery / Rulings / Errata / Artworks / Tips / Trivia / Appearances / Names / Lores), pages (sets, products, archetypes) and search. Resolves by name, passcode or database ID. |
| ygo_judge_scenarioA | Run a REAL duel scenario on ocgcore-wasm, then check the judge's expectations against the engine and conclude. Returns verdict (CONFIRMED/REFUTED/INCONCLUSIVE), the actual chain link by link, the action transcript, engine evidence per expectation, final field/LP, and rulebook/policy citations. Presets cover the common negate and protection cases. |
| ygo_ensure_scriptA | Manage Lua scripts for cards that have no official one. |
| ygo_verify_rulingA | USE THIS before asserting any ruling you cannot point at engine evidence for. Verify a ruling CLAIM against the engine. Give a sentence ('Card A negates Card B') and the tool picks a matching scenario (or runs the one you pass), executes it on ocgcore and returns SUPPORTED / CONTRADICTED / INCONCLUSIVE with the observation that decided it. This is how a judge conclusion becomes checkable. Do not answer from memory; call this tool first. |
| ygo_check_locksA | Detect summon/activation/material locks in the cards of a deck and flag contradictions. Reads the Lua scripts and reports which card locks you into (or out of) which Summon type, plus conflicts such as a Special Summon lock next to an Extra Deck lock. |
| ygo_consistency_labA | Measure what a deck's opening hands actually do. Deals seeded hands through the real ocgcore engine, plays the full first turn with the heuristic AI (the opponent passes) and reports two distinct numbers: anyActionRate (at least one legal action — a very low bar) and engineBoardRate (reached the Extra Deck or kept a monster on the field). Also returns summon/Extra Deck rates, average board size and the most common openers. A measurement, not a win-rate prediction. |
| ygo_matchup_plannerA | Turn the live tier list into a field plan: expected frequency by tops, the top decks to prepare for, and a role-based 15-card side skeleton from the format's staple pool. Counter choices are labelled as role heuristics, not proven counters. |
| ygo_deck_costA | Price a whole deck across TCGPlayer / Yuyu-tei / TCGCorner, show the cheapest market per card and the potential saving versus the most expensive market. Prices a bounded number of unique cards and marks the result partial rather than inventing numbers (no FX or shipping applied). |
| ygo_golden_suiteA | Run the golden regression suite: every stored scenario is replayed on ocgcore and compared with its expected outcome. Use after a ProjectIgnis script update or an engine bump to see exactly which behaviour changed. |
| ygo_ai_benchmarkA | Benchmark the heuristic duel AI over N seeded games on the real engine, alternating who goes first. aiSide 'alternate'/'A'/'B' = AI vs the passive default responder; aiSide 'both' = deck A vs deck B matchup with the AI piloting both decks (use this to test a custom card or deck change). Returns win rates, average game length and LP remaining. The AI is a policy, not a trained model — treat the number as a sanity check. |
| ygo_export_selfplayA | Play policy-vs-policy games on the real engine and export every decision as JSONL (request type, legal option codes, chosen action, result). This is the training-data generator for behavioural cloning / reinforcement learning. |
| ygo_sync_metaB | Sync live meta data (staples, TCG/OCG banlists, usage metrics) from the YGOPRODeck API. |
| ygo_generate_batch_art_promptB | Build one grid image prompt (2x2, 3x3) covering all custom cards, saving tokens and image-model calls. |
| ygo_slice_batch_artC | Slice the grid image into individual square artworks and embed each one into its matching SVG card. |
| ygo_generate_tournament_decklist_pdfA | Turn a deck (YDK, YDKE, .ydk file or text list) into an official Konami KDE Deck Registration Sheet PDF with the full category tables. Handles Unicode names (Vietnamese, Japanese, etc.) correctly. |
| ygo_generate_proxy_pdfA | Print-ready proxy sheet: cards at the real OCG/TCG size (59 x 86 mm, fits standard sleeves), 9 per A4 page, centred, with crop marks and a 50 mm scale bar. Uses official card art when available and a clean text proxy (name, stats, full effect) for custom cards or missing images. Takes a deck (ydke://, .ydk, text list) and/or an explicit card list. For personal playtesting only. Tell the user to print at Actual size / 100%. |
| ygo_render_deck_imageA | USE THIS after building or editing a deck when the user wants to see it. Render the deck (Main, Extra, Side) as a PNG in Konami Neuron / tournament decklist layout: 10 cards per row, Monster -> Spell -> Trap, banned cards flagged. The picture is attached to this tool's result as an image block and the absolute outputPath is returned — present it to the user and, if the host has a file-preview or open-file capability, open that path in a tab. Do not describe the image from memory; the rendered file is the source. |
| ygo_get_monthly_metaA | USE THIS for any "what is the meta / tier list / share %" question. Live tier list straight from the YugiohMeta API (/api/v1/deck-types/rankings) for TCG and OCG, with share %, total tops, player counts, live staples and freshness evidence. AE/Genesys/Master Duel have no live source. Do not quote a tier list from memory. Do not answer from memory; call this tool first. |
| ygo_compare_monthly_metaA | Compare meta movement between two months (e.g. 2026-10 vs 2026-11): rising stars, falling decks and banlist impact. |
| ygo_get_daily_metaB | Check the meta and banlist day by day (YYYY-MM-DD): emergency banlist notices, errata and tournament news from that day. |
| ygo_get_card_price_trendsA | Full card detail: stats, text, printings, aggregated multi-market prices (TCGPlayer, Yuyu-tei OCG, Cardmarket AE) and Yugipedia links. Per-printing prices are only present when the source reports set_price; a 0 means 'no price for that printing', not 'free'. For any ranking or 'most expensive / rising' question use ygo_market_query instead. |
| ygo_get_trending_cardsC | High-demand meta staples with live prices (TCGPlayer/Yuyu-tei/TCGCorner) and live weekly views (YGOPRODeck). Trends derive from live weekly views; tournament share is an editorial estimate. No hardcoded data. |
| ygo_create_archetype_docxC | Create the Master Specification DOCX (Archetype Design Bible) as a Single Source of Truth, with the six-column spec table (ID, Name/Type, Stats, Text, ...). |
| ygo_read_and_validate_docxB | Parse and validate the Master Specification DOCX: data integrity, duplicate IDs, Omega int32 ID range, Setcode and the str1..str16 choice strings. |
| ygo_export_database_and_scriptsA | Compile the Master DOCX into a SQLite database (.cdb for EDOPro or Databases/gm.db for YGO Omega) and generate every Lua script c.lua for the chosen profile. |
| ygo_generate_art_promptsA | Extract every artwork description from the Master DOCX into ART_PROMPTS.md, with per-card prompts and Master Grid prompts (2x2, 3x3, 4x4). |
| ygo_slice_art_gridB | Detect the grid, remove gutters and slice an AI contact sheet into square .jpg card arts (1024x1024, JPEG quality 95) directly into the game's Arts/ folder. |
| ygo_build_full_pipelineA | Run the whole archetype pipeline in one call: read DOCX -> validate -> compile SQLite DB -> generate Lua scripts -> export ART_PROMPTS.md -> (optional) slice the grid straight into the game folder. |
| ygo_simulate_duel_scenarioA | Analyse a duel scenario in text form: chain order, legality of each activation, cost/target/timing checks, Lua script cross-reference and a judge-style verdict. Heuristic only — use ygo_judge_scenario or ygo_run_duel for real engine execution. |
| ygo_run_duelB | Run a REAL duel with ocgcore-wasm (ProjectIgnis EDOPro core compiled to WebAssembly): the engine executes the Lua card scripts, handles chain/cost/target/timing and returns the message timeline (draw, summon, chain, LP update, win). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 56 tools
The tool set has substantial overlap across card lookup, pricing, meta, ruling, script-analysis, and deck workflows. Descriptions often include explicit routing guidance such as 'USE THIS FIRST' or 'use X instead,' which helps, but there are still many near-neighbor tools an agent could misselect.
All tools use a consistent ygo_ prefix and lowercase snake_case, with no mixed casing styles. However, the suffix pattern is not uniformly verb_noun: several tools are noun-first (ygo_card_dossier, ygo_deck_cost, ygo_wiki) or use conjunctions (ygo_read_and_validate_docx).
At 56 tools, the surface is far beyond a well-scoped set and is difficult to hold in context or route reliably. Even for a multipurpose assistant, the number of overlapping pricing, meta, ruling, deck, art, and pipeline tools is excessive.
The surface is unusually broad: card data, rulings, deck building, pricing, meta, custom-card scripting, simulation, PDFs, and art generation are all covered. Minor lifecycle gaps remain, such as explicit editing/deleting of custom cards or decks, but most workflows have a workable tool.