Model Context Protocol Tool Definition Prompt

implementationChallenge

Prompt Content

Define a set of Model Context Protocol (Model Context Protocol) tool specifications for a simulated coffee machine, including actions like 'power_on', 'add_water', 'add_beans', 'brew_espresso', and 'place_cup'. Include their parameters, return types, and descriptions. Implement a Python class that acts as a `ToolController` for these simulated tools.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations