Skip to main content
Glama

Bar Assistant MCP Server

by zhdenny
MIT License

get_recipe

Retrieve cocktail recipes by name or ID, supporting single requests or batch processing for multiple drinks with parallel fetching and error isolation.

Instructions

🍸 Advanced recipe retrieval with powerful batch processing for multiple cocktails.

πŸš€ BATCH PROCESSING SYSTEM:

  • High Performance: 5-10x faster than sequential requests

  • Parallel Processing: Simultaneous API calls with error isolation

  • Smart Caching: 70%+ cache hit rate for repeated requests

  • Flexible Input: Mix cocktail names and IDs in single request

  • Error Resilience: Individual failures don't break entire batch

πŸ“‹ LLM Usage Patterns:

  • Single Recipe: When user asks for "how to make [cocktail]"

  • Recipe Comparison: When user wants to compare multiple cocktails

  • Menu Planning: Batch retrieve recipes for event planning

  • Variation Exploration: Get base recipe + similar cocktails

  • Research Mode: Efficient lookup of multiple specific recipes

🎯 Input Methods (Choose Based on Use Case):

  1. Single Recipe (Backwards Compatible):

    • cocktail_name: "Manhattan" β†’ One complete recipe

    • cocktail_id: 123 β†’ Recipe by database ID

  2. Batch by Names (Most Common):

    • cocktail_names: ["Negroni", "Manhattan", "Martini"] β†’ Multiple complete recipes

  3. Batch by IDs (When Available):

    • cocktail_ids: [1, 2, 3] β†’ Multiple recipes by database IDs

  4. Mixed Batch (Maximum Flexibility):

    • cocktail_names: ["Aviation"] + cocktail_ids: [123, 456] β†’ Combined approach

  5. With Variations (Exploration):

    • Any above + include_variations: true β†’ Base recipes + similar cocktails

πŸ“Š Response Format: Structured output with complete recipe data:

  • Precise ingredient measurements (auto-converted to oz)

  • Step-by-step preparation instructions

  • Cocktail specifications (ABV, glassware, method, garnish)

  • Direct database links for each recipe

  • Performance metrics (timing, cache usage)

  • Similar recipes when requested

  • Rich formatting with emojis and clear sections

⚑ Performance Examples:

  • Single recipe: ~150-300ms (cached responses faster)

  • Batch (3 cocktails): ~250-400ms (vs 900ms+ sequential)

  • Mixed batch (5 cocktails): ~300-500ms with parallel processing

  • Cache hit: <50ms instant response

πŸŽ›οΈ Batch Control Parameters:

  • limit: 1-20 recipes (default: 10) - controls batch size

  • include_variations: Boolean - adds similar cocktails to results

Input Schema

NameRequiredDescriptionDefault
cocktail_idNoπŸ†” Single cocktail database ID. Use for specific recipe lookup when ID is known.
cocktail_nameNo🍸 Single cocktail name. Use for individual recipe requests (e.g., "Manhattan", "Negroni").
cocktail_idsNoπŸš€ Array of cocktail IDs for batch processing. Enables parallel retrieval of multiple recipes by database ID. More efficient than multiple single requests.
cocktail_namesNoπŸš€ Array of cocktail names for batch processing. Enables parallel retrieval of multiple recipes by name (e.g., ["Manhattan", "Negroni", "Martini"]). Triggers name resolution + batch fetching.
include_variationsNoπŸ”„ Include similar/variation recipes in results. Adds related cocktails to expand exploration (default: false).
limitNoπŸŽ›οΈ Maximum number of recipes to return. Controls batch size for optimal performance (default: 10, max: 20). Higher limits may impact response time.

Input Schema (JSON Schema)

{ "properties": { "cocktail_id": { "description": "πŸ†” Single cocktail database ID. Use for specific recipe lookup when ID is known.", "type": "number" }, "cocktail_ids": { "description": "πŸš€ Array of cocktail IDs for batch processing. Enables parallel retrieval of multiple recipes by database ID. More efficient than multiple single requests.", "items": { "type": "number" }, "type": "array" }, "cocktail_name": { "description": "🍸 Single cocktail name. Use for individual recipe requests (e.g., \"Manhattan\", \"Negroni\").", "type": "string" }, "cocktail_names": { "description": "πŸš€ Array of cocktail names for batch processing. Enables parallel retrieval of multiple recipes by name (e.g., [\"Manhattan\", \"Negroni\", \"Martini\"]). Triggers name resolution + batch fetching.", "items": { "type": "string" }, "type": "array" }, "include_variations": { "default": false, "description": "πŸ”„ Include similar/variation recipes in results. Adds related cocktails to expand exploration (default: false).", "type": "boolean" }, "limit": { "default": 10, "description": "πŸŽ›οΈ Maximum number of recipes to return. Controls batch size for optimal performance (default: 10, max: 20). Higher limits may impact response time.", "maximum": 20, "minimum": 1, "type": "number" } }, "type": "object" }

Other Tools from Bar Assistant MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhdenny/bar-assistant-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server