Skip to main content
Glama
Yu-gi-oh! Assistant - Multipurpose MCP

Yu-gi-oh! Assistant - Multipurpose MCP

ygo_ensure_script

Generates and verifies Yu-Gi-Oh! Lua scripts for cards without official versions, using reveal articles or card database text, and swaps in official ProjectIgnis scripts when available.

Instructions

Manage Lua scripts for cards that have no official one. from-news reads a reveal article (e.g. YGOrganization), extracts the card name, artwork URLs, text and stats, assigns a temporary ID and generates the script; resolve generates from the cards.cdb text when the card is already in the database. Every generated script is verified by loading it into ocgcore and is automatically replaced by the official ProjectIgnis script as soon as one exists. Returns provenance (manual/custom/official/generated), confidence, recognised patterns, engine errors and the replacedGenerated flag.

Input Schema

NameRequiredDescriptionDefault
urlNoArticle URL for topic=from-news (e.g. a YGOrganization reveal post)
topicYesresolve = fetch/generate a script for one card; from-news = read a reveal article, extract the card and generate its script; upgrade = sweep every generated script and replace it if an official one exists; inventory = counts; list = generated scripts
tempIdNoTemporary ID to assign (defaults to the next free 990000000+ value)
cardNameNoOverride the card name extracted from the article
passcodeNoCard passcode (required for topic=resolve)
skipVerifyNoSkip engine verification (faster, but not guaranteed to run)
allowGenerateNoAllow generating a script when no official one exists
refreshOfficialNoBypass the cache and check ProjectIgnis now

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full behavioral burden and does well: it discloses that every script is verified by loading into ocgcore, that official ProjectIgnis scripts auto-replace generated ones, and what the response contains (provenance, confidence, recognised patterns, engine errors, replacedGenerated). It stops short of stating prerequisites (network access for article reading, filesystem writes, cache staleness) or side effects of assigning temp IDs and replacing scripts.

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?

Purpose is front-loaded in the first clause, followed by mode-specific explanations and then the return contract; semicolons keep it compact. It is dense but every sentence carries information, with only the return-value enumeration bordering on redundant given the lack of an output schema (which actually justifies it).

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?

For an 8-parameter tool with no annotations and no output schema, the description supplies enough to call it correctly: scope, two primary modes, the verification guarantee and the returned fields. Gaps remain around the three secondary topics (upgrade/inventory/list), error behaviour when extraction fails, and environmental prerequisites, which a careful agent would still have to discover.

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 coverage is 100% and each parameter already carries a description, so the baseline is 3. The prose adds a little meaning by tying `from-news` to a reveal article and `resolve` to database text, but it does not explain the remaining topics (upgrade, inventory, list) or the interaction between allowGenerate, skipVerify and refreshOfficial beyond what the schema states.

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 gives a specific verb+resource ('Manage Lua scripts for cards that have no official one') and sharpens it with two named modes (`from-news` article extraction, `resolve` database generation). It implicitly separates itself from sibling analyzers (ygo_analyze_lua, ygo_test_custom_card) by scoping to cards lacking official scripts, but never names those siblings, so differentiation is inferred rather than stated.

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?

It clearly states a usage condition ('cards that have no official one') and gives concrete when-to-use guidance for the two main topics: `from-news` for a reveal article, `resolve` when the card is already in cards.cdb. What is missing is explicit when-NOT-to-use guidance or routing to sibling tools such as ygo_analyze_lua or ygo_test_custom_card for validation work.

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