On this page

Developers

A JSON API for Manayard's card facts, search and deck analysis. Cards are identified by Scryfall oracle ID, so card text and images come from the Scryfall API.

Set a User-Agent that names your app and how to contact you. Requests with no User-Agent, or with a library default such as curl/8.4, return HTTP 400.

Base URL
https://manayard.com/api/tools
Example request
curl -G https://manayard.com/api/tools \
  -A 'my-app/1.0 (you@example.com)' \
  -d tool=card_links \
  --data-urlencode 'args={"cards":["Viscera Seer","Blood Artist"]}'

Making requests

Send tool and args (a JSON object) as query parameters in a GET request, or POST a JSON body {"tool": …, "arguments": {…}}. Responses have the form {"result": …}. Errors return a 4xx status with {"error": …}.

Rate limit
300 requests per minute
Authentication
None
Stability
The endpoints and fields on this page are stable. Other fields may change.

Card facts

card_reading

GET/api/tools?tool=card_reading

Returns how Manayard parsed a card's rules text, one entry per ability.

Parameters

  • namestringrequired

    Name of the card.

Returns

  • oracle_idstring

    Scryfall oracle ID of the card.

  • abilitiesarray

    The card's abilities in printed order.

    • kindstring

      Ability type, such as static, triggered or activated.

    • textstringoptional

      Rules text the ability was parsed from, in lowercase.

    • triggerobjectoptional

      Event a triggered ability listens for (event) and the object it watches (subject).

    • effectsarrayoptional

      Effects of the ability, in order.

      • opstringoptional

        Effect ID, listed in words under effect_ops.

    • themesarrayoptional

      Themes the ability places the card in. Each has a theme ID, a label and the card's role in that theme.

  • unreadarray

    Rules text that no parsed ability covers.

Example request
curl -G https://manayard.com/api/tools \
  -A 'my-app/1.0 (you@example.com)' \
  -d tool=card_reading \
  --data-urlencode 'args={"name":"Skullclamp"}'
Example response
{
  "oracle_id": "65986c1b-8e51-4604-b685-d82fa7d1263a",
  "abilities": [
    {
      "kind": "static",
      "text": "equipped creature gets +1/-1.",
      "effects": [
        {
          "op": "boost"
        }
      ]
    },
    {
      "kind": "triggered",
      "text": "whenever equipped creature dies, draw two cards.",
      "trigger": {
        "event": "dies",
        "subject": {
          "host": true
        }
      },
      "effects": [
        {
          "op": "draw"
        }
      ],
      "themes": [
        {
          "theme": "creature_death_triggers",
          "label": "Creature-death triggers",
          "role": "listens"
        },
        {
          "theme": "death_card_draw",
          "label": "Creature deaths draw cards",
          "role": "listens"
        }
      ]
    }
  ],
  "unread": []
}

Lists are cut to 2 items.

words

GET/api/tools?tool=words

Returns every ID the other endpoints use, with its display name. They are also listed on the IDs page.

Returns

  • themesarray

    Themes, each with id, label, description and the roles a card can have in it.

  • link_kindsarray

    Kinds of link, each with id and label. An ID ending in <type> stands for one creature type.

  • effect_opsarray

    Effects, each with id and label.

  • deck_check.rolesarray

    Card roles used by validate_deck, each with key and label.

Example request
curl -G https://manayard.com/api/tools \
  -A 'my-app/1.0 (you@example.com)' \
  -d tool=words \
  --data-urlencode 'args={}'
Example response
{
  "themes": [
    {
      "id": "aristocrats_engine",
      "label": "Aristocrats",
      "kind": "archetype",
      "domains": [
        "sacrifice_death"
      ],
      "description": "Turn repeated controllable creature deaths into opponent life loss.",
      "roles": [
        "supply",
        "outlet"
      ]
    },
    {
      "id": "token_aristocrats",
      "label": "Token aristocrats",
      "kind": "archetype",
      "domains": [
        "sacrifice_death"
      ],
      "description": "Use replenishable creature tokens to feed sacrifice and death payoffs.",
      "roles": [
        "supply",
        "outlet"
      ]
    }
  ],
  "link_kinds": [
    {
      "id": "recursion_target",
      "label": "graveyard return"
    },
    {
      "id": "counted_by",
      "label": "counts a type it has"
    }
  ],
  "effect_ops": [
    {
      "id": "move",
      "label": "Move a card or object between zones"
    },
    {
      "id": "destroy",
      "label": "Destroy"
    }
  ],
  "deck_check": {
    "roles": [
      {
        "key": "removal",
        "label": "Removal",
        "group": "Interaction"
      },
      {
        "key": "wipes",
        "label": "Board wipes",
        "group": "Interaction"
      }
    ]
  }
}

Lists are cut to 2 items.

card_search uses the site's search syntax. For example t:equipment o:dies returns Equipment with "dies" in their rules text.

List analysis

validate_deck

POST/api/tools?tool=validate_deck

Checks a Commander deck's legality, card count and mana curve, and returns each card's roles and themes.

Parameters

  • commanderstringrequired

    Name of the commander.

  • deck_textstringrequired

    Decklist as text, one card per line. Moxfield and Archidekt exports work.

Returns

  • validboolean

    Whether the deck is legal.

  • issuesarray

    Problems that make the deck illegal, each with a type.

  • warningsarray

    Notes about the deck that don't affect legality.

  • analysis.curveobject

    Number of nonland cards at each mana value.

  • analysis.rolesobject

    Number of cards in each role, such as ramp, removal and draw.

  • card_rolesarray

    The deck's cards. Each has name and oracle_id.

    • rolesarray

      The card's roles, listed in words under deck_check.roles.

    • themesarray

      Themes the card is part of in this deck.

Example request
curl https://manayard.com/api/tools \
  -A 'my-app/1.0 (you@example.com)' \
  -H 'Content-Type: application/json' \
  -d '{"tool":"validate_deck","arguments":{"commander":"Juri, Master of the Revue","deck_text":"1 Juri, Master of the Revue\n1 Accursed Marauder\n1 Animate Dead\n1 Animation Module\n1 Arcane Signet\n1 Archpriest of Shadows\n1 Arid Mesa\n1 Ashnod'\''s Altar"}}'
Example response
{
  "valid": false,
  "issues": [
    {
      "type": "wrong_card_count",
      "expected": 100,
      "actual": 101,
      "remove": 1
    }
  ],
  "warnings": [
    "The commander is also listed in the deck; count it once."
  ],
  "analysis": {
    "curve": {
      "1": 10,
      "2": 14,
      "3": 12,
      "4": 11,
      "5": 11,
      "6": 5,
      "7": 1
    },
    "roles": {
      "ramp": 11,
      "mana_rocks": 4,
      "one_time_ramp": 1,
      "removal": 11,
      "draw": 12,
      "creatures": 32,
      "vehicles": 0
    }
  },
  "card_roles": [
    {
      "name": "Juri, Master of the Revue",
      "oracle_id": "3364bad6-6d0a-4141-b410-86e3d9e1916e",
      "roles": [],
      "themes": [
        "aristocrats",
        "death_triggers"
      ]
    },
    {
      "name": "Accursed Marauder",
      "oracle_id": "d8ad23a1-0b43-48ea-9fbe-d89b29194509",
      "roles": [
        "removal"
      ],
      "themes": [
        "aristocrats",
        "death_triggers"
      ]
    }
  ]
}

Lists are cut to 2 items. The response is for the full 100-card deck; the request shows its first 8 lines.

suggest_cuts

POST/api/tools?tool=suggest_cuts

Returns the cards the cut finder suggests cutting from a deck, with reasons.

Parameters

  • commanderstringrequired

    Name of the commander.

  • deck_textstringrequired

    Decklist as text, one card per line.

  • limitinteger

    Number of cuts to return, from 1 to 50.

Returns

  • cutsarray

    Suggested cuts, best first. Each has name and oracle_id.

    • whyarray

      Reasons to cut the card.

Example request
curl https://manayard.com/api/tools \
  -A 'my-app/1.0 (you@example.com)' \
  -H 'Content-Type: application/json' \
  -d '{"tool":"suggest_cuts","arguments":{"commander":"Juri, Master of the Revue","deck_text":"1 Juri, Master of the Revue\n1 Accursed Marauder\n1 Animate Dead\n1 Animation Module\n1 Arcane Signet\n1 Archpriest of Shadows\n1 Arid Mesa\n1 Ashnod'\''s Altar","limit":5}}'
Example response
{
  "cuts": [
    {
      "name": "Precursor Golem",
      "oracle_id": "668fc293-1b8f-4870-9784-4ac660925e30",
      "why": [
        "Contributes to the plan"
      ]
    },
    {
      "name": "Callous Bloodmage",
      "oracle_id": "96c12c12-140a-462d-bff0-0554d192b1f4",
      "why": [
        "12 draw cards here; 11 rank above it to keep, and 7 is the usual minimum",
        "Contributes to the plan"
      ]
    }
  ]
}

Lists are cut to 2 items. The response is for the full 100-card deck; the request shows its first 8 lines.

MCP

The MCP server exposes the site's tools to AI agents over Streamable HTTP. Its tools change with the site, so applications should use the endpoints above.

MCP server
https://manayard.com/mcp

Reporting errors

To report an incorrect fact, email cardspace@wylie.sh with the card name and the request. Requests are logged to improve Manayard; see the privacy policy and terms.