shuffle_deck
Pack: deckofcards · Endpoint: https://gateway.pipeworx.io/deckofcards/mcp
Reshuffle a deck and reset all drawn cards back in. Returns updated remaining card count.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
deck_id | string | yes | The deck ID to shuffle (e.g. “3p40paa87x90”). |
Example call
Arguments
{
"deck_id": "3p40paa87x90"
}
curl
curl -X POST https://gateway.pipeworx.io/deckofcards/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"shuffle_deck","arguments":{"deck_id":"3p40paa87x90"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('shuffle_deck', {
"deck_id": "3p40paa87x90"
});
Response shape
Always returns: deck_id, shuffled, remaining
| Field | Type | Description |
|---|---|---|
deck_id | string | Unique identifier for the deck |
shuffled | boolean | Whether the deck was shuffled |
remaining | number | Number of cards remaining in the deck |
Full JSON Schema
{
"type": "object",
"properties": {
"deck_id": {
"type": "string",
"description": "Unique identifier for the deck"
},
"shuffled": {
"type": "boolean",
"description": "Whether the deck was shuffled"
},
"remaining": {
"type": "number",
"description": "Number of cards remaining in the deck"
}
},
"required": [
"deck_id",
"shuffled",
"remaining"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"deckofcards": {
"url": "https://gateway.pipeworx.io/deckofcards/mcp"
}
}
}
See Getting Started for client-specific install steps.