advancedChapter 11 of 12Exercise 1 of 1
Defining and Using Tools
Define one or more tools and write a prompt that causes Claude to call the correct tool with appropriate parameters.
Your Task
Define two tools: (1) a weather lookup tool and (2) a calendar scheduling tool. Then write a user message that should trigger the weather tool, not the calendar tool. Explain how Claude would decide which tool to use.
Success Criteria
Must include well-defined tool schemas with clear descriptions and parameter definitions. The user message should clearly map to one tool.
Recommended Background
Review Building Complex Prompts before attempting this exercise for the best experience.
Cmd/Ctrl + Enter to submit