UNPKG

@tomaspavlin/rohlik-mcp

Version:

MCP server for controlling Rohlik.cz grocery shopping website

143 lines (115 loc) • 5.15 kB
export function createShoppingScenariosTool() { return { name: "get_shopping_scenarios", definition: { title: "Get Shopping Scenarios", description: "Shows example scenarios and use cases for the Rohlik MCP - helps users understand what's possible", inputSchema: {} }, handler: async () => { const output = `šŸ›’ ROHLIK MCP - WHAT YOU CAN DO ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ šŸ“‹ SMART SHOPPING SCENARIOS: 1ļøāƒ£ MEAL-BASED SHOPPING šŸ’¬ "Add breakfast items I typically order" šŸ’¬ "Show me lunch suggestions for this week" šŸ’¬ "I need dinner ingredients - suggest what I usually buy" šŸ’¬ "Add my usual snacks to the cart" šŸ”§ Tool: get_meal_suggestions 2ļøāƒ£ QUICK REORDERING šŸ’¬ "Show my 20 most frequently purchased items" šŸ’¬ "What do I buy most often?" šŸ’¬ "Add my top 10 frequent items to cart" šŸ”§ Tool: get_frequent_items 3ļøāƒ£ CATEGORY-BASED SHOPPING šŸ’¬ "What dairy products do I usually buy?" šŸ’¬ "Show my top bakery purchases" šŸ’¬ "Add my usual fruits and vegetables" šŸ”§ Tool: get_frequent_items (with categories) 4ļøāƒ£ SPECIFIC PRODUCT SEARCH šŸ’¬ "Find organic milk and add to cart" šŸ’¬ "Search for gluten-free bread" šŸ’¬ "Show me all chocolates on sale" šŸ”§ Tool: search_products + add_to_cart 5ļøāƒ£ WEEKLY PLANNING šŸ’¬ "I need groceries for the whole week - suggest based on my history" šŸ’¬ "Show what I typically buy for breakfast, lunch, and dinner" šŸ’¬ "Help me plan my weekly shopping" šŸ”§ Combination of meal suggestions 6ļøāƒ£ ORDER MANAGEMENT šŸ’¬ "What's in my cart?" šŸ’¬ "Show my last 5 orders" šŸ’¬ "What did I order last week?" šŸ’¬ "Show details of order #1234567" šŸ”§ Tools: get_cart_content, get_order_history, get_order_detail 7ļøāƒ£ DELIVERY PLANNING šŸ’¬ "When is my next delivery?" šŸ’¬ "What delivery slots are available tomorrow?" šŸ’¬ "Show the cheapest delivery slots this week" šŸ”§ Tools: get_upcoming_orders, get_delivery_slots 8ļøāƒ£ ACCOUNT & SAVINGS šŸ’¬ "How much have I saved with Premium?" šŸ’¬ "What are my Premium benefits?" šŸ’¬ "Check my reusable bags count" šŸ”§ Tools: get_premium_info, get_reusable_bags_info ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ šŸŽÆ MEAL TYPES AVAILABLE: • breakfast šŸ³ - Morning essentials (bread, milk, cereals, fruits) • lunch šŸ½ļø - Midday meal ingredients (meat, vegetables, pasta, rice) • dinner šŸ“ - Evening meal items (meat, fish, vegetables, sides) • snack šŸæ - Quick bites (sweets, fruits, nuts, yogurt) • baking 🧁 - Baking supplies (flour, sugar, chocolate, butter) • drinks 🄤 - Beverages (coffee, tea, juices, water, alcohol) • healthy šŸ„— - Health-focused (bio, vegan, gluten-free, vegetables) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ šŸ’” POWER TIPS: ✨ Combine suggestions with actions: "Show breakfast suggestions and add top 5 to cart" ✨ Use natural language: "I forgot to buy milk last time, add it to my cart" ✨ Ask for alternatives: "Find cheaper alternative to product #123456" ✨ Plan ahead: "What should I order for weekend breakfast?" ✨ Be specific: "Add ingredients for apple pie - only gluten-free" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ šŸ”§ AVAILABLE TOOLS (${16}): šŸ“¦ Shopping: • search_products - Find products by name • add_to_cart - Add products to cart • get_cart_content - View current cart • remove_from_cart - Remove items • get_shopping_list - View shopping lists šŸ¤– Smart Features: • get_meal_suggestions - Meal-based suggestions (NEW!) • get_frequent_items - Most purchased items • get_shopping_scenarios - This help (NEW!) šŸ“Š Orders: • get_order_history - Past orders • get_order_detail - Order details • get_upcoming_orders - Scheduled orders 🚚 Delivery: • get_delivery_info - Current delivery info • get_delivery_slots - Available time slots šŸ‘¤ Account: • get_account_data - Full account info • get_premium_info - Premium subscription • get_announcements - Current announcements • get_reusable_bags_info - Bag tracking ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ šŸš€ TRY IT NOW: Start with: "Show me breakfast suggestions based on what I usually order" šŸ’¬ Need help? Just ask: "What can I do with Rohlik MCP?"`; return { content: [ { type: "text", text: output } ] }; } }; } //# sourceMappingURL=shopping-scenarios.js.map