get_cocktail
Pack: cocktails · Endpoint: https://gateway.pipeworx.io/cocktails/mcp
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | TheCocktailDB 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
| Field | Type | Description |
|---|---|---|
id | string | Cocktail ID |
name | string | Cocktail name |
category | string | Drink category |
alcoholic | string | Alcoholic status |
glass | string | Glassware type |
instructions | string | Preparation instructions |
thumbnail | string | Thumbnail image URL |
ingredients | array | List 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.