list_all_cards
Retrieve a complete list of all 78 tarot cards, optionally filtered by major or minor arcana, to support tarot readings and interpretations.
Instructions
List all 78 tarot cards
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_all_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arcana | No | Filter by arcana type (default: all) |
Implementation Reference
- src/index.ts:295-317 (handler)The tool handler for 'list_all_cards' - extracts optional 'arcana' filter, calls tarotTools.getAllCards(), filters by arcana if needed, and returns a mapped list of card names, arcana, suit, number, and id.
case 'list_all_cards': { const arcanaFilter = args.arcana as string || 'all'; let cards = tarotTools.getAllCards(); if (arcanaFilter !== 'all') { cards = cards.filter(c => c.arcana === arcanaFilter); } return { content: [ { type: 'text', text: JSON.stringify(cards.map(c => ({ name: c.name, arcana: c.arcana, suit: c.suit, number: c.number, id: c.id })), null, 2), }, ], }; } - src/index.ts:134-147 (schema)Input schema definition for the 'list_all_cards' tool - registers the tool with name, description, and an optional 'arcana' parameter (enum: major/minor/all).
{ name: 'list_all_cards', description: 'List all 78 tarot cards', inputSchema: { type: 'object', properties: { arcana: { type: 'string', enum: ['major', 'minor', 'all'], description: 'Filter by arcana type (default: all)', }, }, }, }, - src/index.ts:134-147 (registration)Tool registration within the TOOLS array - the 'list_all_cards' tool is registered as part of the MCP tool list with its name, description, and input schema.
{ name: 'list_all_cards', description: 'List all 78 tarot cards', inputSchema: { type: 'object', properties: { arcana: { type: 'string', enum: ['major', 'minor', 'all'], description: 'Filter by arcana type (default: all)', }, }, }, }, - src/tools/tarot-tools.ts:152-154 (helper)The getAllCards() method on TarotTools class that returns all 78 tarot cards from the data source, called by the handler.
getAllCards(): TarotCard[] { return allCards; } - src/data/cards.ts:497-497 (helper)The allCards data export - combines majorArcana and minorArcana arrays into the full collection of 78 tarot cards.
export const allCards: TarotCard[] = [...majorArcana, ...minorArcana];