Skip to main content
Glama

Command Line Interface Enhancer

by jon2allen
item.py1.1 kB
import random # Lists of fruits and vegetables fruits = [ "apple", "banana", "cherry", "date", "elderberry", "fig", "grape", "honeydew", "kiwi", "lemon", "mango", "nectarine", "orange", "peach", "quince", "raspberry", "strawberry", "tangerine", "watermelon", "blueberry" ] vegetables = [ "carrot", "broccoli", "spinach", "potato", "onion", "garlic", "cucumber", "lettuce", "tomato", "pepper", "zucchini", "eggplant", "celery", "radish", "beet", "asparagus", "cabbage", "cauliflower", "green bean", "peas" ] # Ask user for input user_choice = input("Do you want a 'vegetable' or a 'fruit'? ").strip().lower() # Validate input while user_choice not in ["vegetable", "fruit"]: print("Invalid choice. Please enter 'vegetable' or 'fruit'.") user_choice = input("Do you want a 'vegetable' or a 'fruit'? ").strip().lower() # Generate random quantity and item quantity = random.randint(10, 30) if user_choice == "fruit": item = random.choice(fruits) else: item = random.choice(vegetables) # Output the result print(f"You get {quantity} {item}(s)!")

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/jon2allen/mcp_command_serv'

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