random_cocktail

Pack: cocktails · Endpoint: https://gateway.pipeworx.io/cocktails/mcp

Get a random cocktail recipe. Returns ingredients with measurements, instructions, glassware, and garnish details.

Example call

Arguments

{}

curl

curl -X POST https://gateway.pipeworx.io/cocktails/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"random_cocktail","arguments":{}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('random_cocktail', {});

Response shape

Always returns: id, name, category, alcoholic, glass, instructions, thumbnail, ingredients

FieldTypeDescription
idstringCocktail ID
namestringCocktail name
categorystringDrink category
alcoholicstringAlcoholic status
glassstringGlassware type
instructionsstringPreparation instructions
thumbnailstringThumbnail image URL
ingredientsarrayList of ingredients with measurements
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Cocktail ID"
    },
    "name": {
      "type": "string",
      "description": "Cocktail name"
    },
    "category": {
      "type": "string",
      "description": "Drink category"
    },
    "alcoholic": {
      "type": "string",
      "description": "Alcoholic status"
    },
    "glass": {
      "type": "string",
      "description": "Glassware type"
    },
    "instructions": {
      "type": "string",
      "description": "Preparation instructions"
    },
    "thumbnail": {
      "type": "string",
      "description": "Thumbnail image URL"
    },
    "ingredients": {
      "type": "array",
      "description": "List of ingredients with measurements",
      "items": {
        "type": "object",
        "properties": {
          "ingredient": {
            "type": "string",
            "description": "Ingredient name"
          },
          "measure": {
            "type": "string",
            "description": "Measurement/quantity"
          }
        },
        "required": [
          "ingredient",
          "measure"
        ]
      }
    }
  },
  "required": [
    "id",
    "name",
    "category",
    "alcoholic",
    "glass",
    "instructions",
    "thumbnail",
    "ingredients"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "cocktails": {
      "url": "https://gateway.pipeworx.io/cocktails/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026