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.
https://manayard.com/api/toolscurl -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
-
namestringrequiredName of the card.
Returns
-
oracle_idstringScryfall oracle ID of the card.
-
abilitiesarrayThe card's abilities in printed order.
-
kindstringAbility type, such as
static,triggeredoractivated. -
textstringoptionalRules text the ability was parsed from, in lowercase.
-
triggerobjectoptionalEvent a triggered ability listens for (
event) and the object it watches (subject). -
effectsarrayoptionalEffects of the ability, in order.
-
opstringoptionalEffect ID, listed in
wordsundereffect_ops.
-
-
themesarrayoptionalThemes the ability places the card in. Each has a
themeID, alabeland the card'srolein that theme.
-
-
unreadarrayRules text that no parsed ability covers.
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.
card_links
GET/api/tools?tool=card_links
Returns the cards a card links to, or the links between two cards. A link means one card's effect is something the other card's ability uses.
Parameters
-
cardsarrayrequiredOne card name to list its linked cards, or two to get the links between them.
Returns
-
cardsarrayThe cards in the request.
-
rowsarrayoptionalReturned for one card. Its linked cards grouped by kind of link, strongest group first.
-
kindstringKind of link, listed in
wordsunderlink_kinds. -
totalnumberNumber of cards linked by this kind.
-
cardsarrayThe strongest linked cards of this kind, each with
name,oracle_idandstrength.
-
-
linksarrayoptionalReturned for two cards. Every link between them, strongest first.
-
kindstringKind of link, listed in
wordsunderlink_kinds. -
fromstringName of the card that provides what the other card uses.
-
tostringName of the card that uses it.
-
quotestringClause on the
fromcard. -
payoff_quotestringClause on the
tocard. -
needsarrayConditions that must hold for the link to work.
-
strengthnumberStrength from 0.4 to 1.
-
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"]}'Example response
{
"cards": [
{
"name": "Viscera Seer",
"oracle_id": "f82a4e85-526d-4456-b700-7760043a31be"
},
{
"name": "Blood Artist",
"oracle_id": "310f141c-7f37-4729-aed6-dd9c09db448d"
}
],
"links": [
{
"kind": "dies",
"from": "Viscera Seer",
"to": "Blood Artist",
"quote": "sacrifice a creature: scry 1.",
"payoff_quote": "whenever this creature or another creature dies, target player loses 1 life and you gain 1 life.",
"needs": [
"sacrifice fodder matching payoff restrictions",
"pay the complete printed activation cost before the source produces this event"
],
"strength": 0.4
}
]
}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
-
themesarrayThemes, each with
id,label,descriptionand therolesa card can have in it. -
link_kindsarrayKinds of link, each with
idandlabel. An ID ending in<type>stands for one creature type. -
effect_opsarrayEffects, each with
idandlabel. -
deck_check.rolesarrayCard roles used by
validate_deck, each withkeyandlabel.
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.
Search
card_search uses the site's search syntax. For example t:equipment o:dies returns Equipment with "dies" in their rules text.
card_search
GET/api/tools?tool=card_search
Searches cards with the same syntax as the site's search.
Parameters
-
textstringrequiredSearch query.
-
limitintegerNumber of cards to return, from 1 to 60. Defaults to 30.
Returns
-
cardsarrayMatching cards in the site's order. Each has
nameandoracle_id. -
total_matchingnumberNumber of matching cards.
-
chipsarrayHow the query was parsed, one part per entry, each with a
label.
curl -G https://manayard.com/api/tools \
-A 'my-app/1.0 (you@example.com)' \
-d tool=card_search \
--data-urlencode 'args={"text":"t:equipment o:dies","limit":5}'Example response
{
"cards": [
{
"name": "Skullclamp",
"oracle_id": "65986c1b-8e51-4604-b685-d82fa7d1263a"
},
{
"name": "Halvar, God of Battle // Sword of the Realms",
"oracle_id": "acfc3e07-757f-4ccf-a65e-bee07ce87f40"
}
],
"total_matching": 24,
"chips": [
{
"kind": "type",
"type": "equipment",
"label": "Equipment"
},
{
"kind": "text",
"text": "dies",
"label": "Text: dies"
}
]
}Lists are cut to 2 items.
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
-
commanderstringrequiredName of the commander.
-
deck_textstringrequiredDecklist as text, one card per line. Moxfield and Archidekt exports work.
Returns
-
validbooleanWhether the deck is legal.
-
issuesarrayProblems that make the deck illegal, each with a
type. -
warningsarrayNotes about the deck that don't affect legality.
-
analysis.curveobjectNumber of nonland cards at each mana value.
-
analysis.rolesobjectNumber of cards in each role, such as ramp, removal and draw.
-
card_rolesarrayThe deck's cards. Each has
nameandoracle_id.-
rolesarrayThe card's roles, listed in
wordsunderdeck_check.roles. -
themesarrayThemes the card is part of in this deck.
-
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
-
commanderstringrequiredName of the commander.
-
deck_textstringrequiredDecklist as text, one card per line.
-
limitintegerNumber of cuts to return, from 1 to 50.
Returns
-
cutsarraySuggested cuts, best first. Each has
nameandoracle_id.-
whyarrayReasons to cut the card.
-
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.
https://manayard.com/mcpReporting 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.