# cards.openstacks.mtg.card

> Published by [openstacks.cards](https://lexicon.garden/identity/did:plc:w34fhwhm4pcgw6k6at6cd3qf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:w34fhwhm4pcgw6k6at6cd3qf/cards.openstacks.mtg.card)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w34fhwhm4pcgw6k6at6cd3qf/cards.openstacks.mtg.card/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w34fhwhm4pcgw6k6at6cd3qf/cards.openstacks.mtg.card/examples)

## Definitions

### `cards.openstacks.mtg.card`

**Type**: `record`

A Magic: The Gathering card (oracle data)

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cmc` | `integer` | No | Converted mana cost / mana value |
| `name` | `string` | Yes | Card name (front face name for multi-face cards) |
| `faces` | `array` | No | Individual faces for multi-face cards |
| `power` | `string` | No | Power (for creatures), can be '*' or other special values |
| `colors` | `array` | No | Colors in the card's mana cost (W, U, B, R, G) |
| `layout` | `string` | Yes | Card layout type |
| `loyalty` | `string` | No | Starting loyalty (for planeswalkers) |
| `keywords` | `array` | No | Keyword abilities, e.g. ['Flying', 'Haste'] |
| `manaCost` | `string` | No | Mana cost in MTG notation, e.g. '{2}{U}{U}' |
| `typeLine` | `string` | No | Full type line, e.g. 'Legendary Creature — Human Wizard' |
| `createdAt` | `string` (datetime) | No | When this record was created |
| `toughness` | `string` | No | Toughness (for creatures), can be '*' or other special values |
| `legalities` | `ref` → `#legalities` | No | Format legality status |
| `oracleText` | `string` | No | Rules text |
| `colorIdentity` | `array` | No | Colors for Commander color identity rules |
| `scryfallOracleId` | `string` | Yes | Scryfall oracle_id - shared across all printings |

### `cards.openstacks.mtg.card#cardFace`

**Type**: `object`

One face of a multi-face card

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Face name |
| `power` | `string` | No |  |
| `colors` | `array` | No | Colors for this face |
| `loyalty` | `string` | No |  |
| `manaCost` | `string` | No | Mana cost for this face |
| `typeLine` | `string` | No | Type line for this face |
| `toughness` | `string` | No |  |
| `oracleText` | `string` | No | Oracle text for this face |

### `cards.openstacks.mtg.card#legalities`

**Type**: `object`

Format legality information

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `duel` | `string` | No |  |
| `brawl` | `string` | No |  |
| `penny` | `string` | No |  |
| `predh` | `string` | No |  |
| `future` | `string` | No |  |
| `legacy` | `string` | No |  |
| `modern` | `string` | No |  |
| `pauper` | `string` | No |  |
| `alchemy` | `string` | No |  |
| `pioneer` | `string` | No |  |
| `vintage` | `string` | No |  |
| `historic` | `string` | No |  |
| `standard` | `string` | No |  |
| `timeless` | `string` | No |  |
| `commander` | `string` | No |  |
| `gladiator` | `string` | No |  |
| `oldschool` | `string` | No |  |
| `premodern` | `string` | No |  |
| `oathbreaker` | `string` | No |  |
| `standardbrawl` | `string` | No |  |
| `paupercommander` | `string` | No |  |

## Raw Schema

```json
{
  "id": "cards.openstacks.mtg.card",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "scryfallOracleId",
          "layout"
        ],
        "properties": {
          "cmc": {
            "type": "integer",
            "description": "Converted mana cost / mana value"
          },
          "name": {
            "type": "string",
            "description": "Card name (front face name for multi-face cards)"
          },
          "faces": {
            "type": "array",
            "items": {
              "ref": "#cardFace",
              "type": "ref"
            },
            "description": "Individual faces for multi-face cards"
          },
          "power": {
            "type": "string",
            "description": "Power (for creatures), can be '*' or other special values"
          },
          "colors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Colors in the card's mana cost (W, U, B, R, G)"
          },
          "layout": {
            "type": "string",
            "description": "Card layout type",
            "knownValues": [
              "normal",
              "split",
              "flip",
              "transform",
              "modal_dfc",
              "meld",
              "leveler",
              "class",
              "saga",
              "adventure",
              "mutate",
              "prototype",
              "battle",
              "planar",
              "scheme",
              "vanguard",
              "token",
              "double_faced_token",
              "emblem",
              "augment",
              "host",
              "art_series",
              "reversible_card"
            ]
          },
          "loyalty": {
            "type": "string",
            "description": "Starting loyalty (for planeswalkers)"
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keyword abilities, e.g. ['Flying', 'Haste']"
          },
          "manaCost": {
            "type": "string",
            "description": "Mana cost in MTG notation, e.g. '{2}{U}{U}'"
          },
          "typeLine": {
            "type": "string",
            "description": "Full type line, e.g. 'Legendary Creature — Human Wizard'"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was created"
          },
          "toughness": {
            "type": "string",
            "description": "Toughness (for creatures), can be '*' or other special values"
          },
          "legalities": {
            "ref": "#legalities",
            "type": "ref",
            "description": "Format legality status"
          },
          "oracleText": {
            "type": "string",
            "description": "Rules text"
          },
          "colorIdentity": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Colors for Commander color identity rules"
          },
          "scryfallOracleId": {
            "type": "string",
            "description": "Scryfall oracle_id - shared across all printings"
          }
        }
      },
      "description": "A Magic: The Gathering card (oracle data)"
    },
    "cardFace": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Face name"
        },
        "power": {
          "type": "string"
        },
        "colors": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Colors for this face"
        },
        "loyalty": {
          "type": "string"
        },
        "manaCost": {
          "type": "string",
          "description": "Mana cost for this face"
        },
        "typeLine": {
          "type": "string",
          "description": "Type line for this face"
        },
        "toughness": {
          "type": "string"
        },
        "oracleText": {
          "type": "string",
          "description": "Oracle text for this face"
        }
      },
      "description": "One face of a multi-face card"
    },
    "legalities": {
      "type": "object",
      "properties": {
        "duel": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "brawl": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "penny": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "predh": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "future": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "legacy": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "modern": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "pauper": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "alchemy": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "pioneer": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "vintage": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "historic": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "standard": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "timeless": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "commander": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "gladiator": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "oldschool": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "premodern": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "oathbreaker": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "standardbrawl": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        },
        "paupercommander": {
          "type": "string",
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ]
        }
      },
      "description": "Format legality information"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
