get_cocktail

Pack: cocktails · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_cocktail for the schema, then POST the same URL with its arguments for the data.

Get full cocktail recipe by ID. Returns ingredients with exact measurements, preparation steps, glassware type, and garnish.

Parameters

NameTypeRequiredDescription
idstringyesTheCocktailDB cocktail ID (e.g., “11007”)

Example call

Arguments

{
  "id": "11007"
}

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":"get_cocktail","arguments":{"id":"11007"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_cocktail', {
  "id": "11007"
});

More examples

{
  "id": "11003"
}

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the cocktails pack
{
  "mcpServers": {
    "cocktails": {
      "url": "https://gateway.pipeworx.io/cocktails/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026