Skip to main content
Glama
andrewboe

ygo-format

by andrewboe

finalize_deck

Idempotent

Save a finished Yu-Gi-Oh! deck only when validate_deck confirms legality, writing .ydk, ydke:// URL, decklist, and history; otherwise return issues without saving.

Instructions

Save a finished deck, but only if validate_deck says it is legal (otherwise nothing is written and the problems come back). Writes data/decks/..ydk and a .json with the ydke:// URL, a text decklist, the points or ban breakdown and the data "as of" date. Saving the same name again keeps the previous .ydk in data/decks/history/. Follow-up questions can pass the returned ydk path to validate_deck or find_links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
notesNo
formatYes
decklistNo
ydk_pathNo
ydk_textNo
point_capNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare a safe, idempotent, non-destructive write, and the description goes beyond them by disclosing exactly what gets written (data/decks/<name>.<format>.ydk plus a .json with ydke:// URL, decklist, points/ban breakdown, as-of date), the failure mode (nothing written, problems returned), and the overwrite/history behavior. This is rich behavioral context that matches the declared safety profile rather than contradicting it.

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?

Three sentences, front-loaded with the critical precondition before the output details. The parenthetical aside is slightly dense but each sentence earns its place; no filler.

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

Completeness3/5

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

For a no-output-schema tool the description usefully describes the returned artifacts and the ydk path handed to follow-ups. However, with 7 parameters at 0% coverage, an agent still lacks any guidance on how to supply decklist, ydk_text/ydk_path, notes, or point_cap, leaving a real gap for a complex mutation tool.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description carries the full documentation burden, yet it names no parameters. The path template "<name>.<format>" only faintly implies the name and format arguments, and nothing explains notes, decklist, ydk_path, ydk_text, or point_cap.

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 states a specific verb+resource ("Save a finished deck") and immediately differentiates itself from the sibling validate_deck by framing saving as conditional on validation. An agent can tell this is the terminal persistence step versus validation or lookup siblings without opening the schema.

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 gives an explicit precondition (only save if validate_deck says it is legal) and names the alternative flow (follow-up questions pass the returned ydk path to validate_deck or find_links). It lacks an explicit "do not use this when..." against a competing save tool, but the gating condition covers most of the routing decision.

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