Defines the reduced LLM card data transferred from the Scryfall DB.

SCHEMA: LLMCard[] DOMAIN: Magic: The Gathering (MTG) SOURCE: Scryfall API PRODUCER: Scrydex CLI

interface LLMCard {
    card_faces?: LLMCardFace[];
    cmc: number;
    color_identity: string[];
    colors: string[];
    defense?: string;
    game_changer: boolean;
    keywords: string[];
    loyalty?: string;
    mana_cost: string;
    name: string;
    norm_type: string;
    object: "llm_card";
    oracle_text?: string;
    power?: string;
    produced_mana?: string[];
    quantity: number;
    rarity: string;
    reserved: boolean;
    scryfall_id: string;
    toughness?: string;
    type_line: string;
    user_tags: string[];
}
Index

Properties

card_faces?: LLMCardFace[]

An array of Card Face objects, if this card is multifaced.

cmc: number

The card’s mana value. Note that some funny cards have fractional mana costs.

color_identity: string[]

This card’s color identity.

colors: string[]

This card’s colors, if the overall card has colors defined by the rules. Otherwise, the colors will be on the card_faces objects.

defense?: string

This card’s defense, if any. Battle cards.

game_changer: boolean

True if this card is on the Commander Game Changer list.

keywords: string[]

An array of keywords that this card uses, such as 'Flying' and 'Cumulative upkeep'.

loyalty?: string

This loyalty if any. Note that some cards have loyalties that are not numeric, such as X.

mana_cost: string

The mana cost for this card. This value will be any empty string "" if the cost is absent. Remember that per the game rules, a missing mana cost and a mana cost of {0} are different values. Multi-faced cards will report this value in card faces.

name: string

The name of this card. If this card has multiple faces, this field will contain both names separated by ␣//␣.

norm_type: string

Normalized card type based on type line parsing.

object: "llm_card"

Discriminator identifying this record as a card.

oracle_text?: string

The Oracle text for this card, if any.

power?: string

This card’s power, if any. Note that some cards have powers that are not numeric, such as *.

produced_mana?: string[]

Colors of mana that this card could produce.

quantity: number

Total count of this card.

rarity: string

This card’s rarity. One of common, uncommon, rare, special, mythic, or bonus.

reserved: boolean

True if this card is on the Reserved List.

scryfall_id: string

Scryfall ID / UUID.

toughness?: string

This card’s toughness, if any. Note that some cards have toughnesses that are not numeric, such as *.

type_line: string

The type line of this card.

user_tags: string[]

User or platform derived categorization tags.