Parse a mana cost
parse_mana_costParse a mana cost string (like '2WW' or '{X}{R}') to obtain its canonical form, converted mana cost, colors, and color identity. Use for validating and analyzing Magic: The Gathering mana costs.
Instructions
Parse a mana cost string (e.g. 'RUW', '2WW', '{X}{R}') and return its canonical form, converted mana cost, colors, and color identity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cost": "<cost>"
},
"name": "parse_mana_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Mana cost string, e.g. '2WW' or '{X}{U}{U}'. |