You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "is_prime", "description": "Checks if a number is prime.", "parameters": {"num": {"description": "The number to be checked.", "type": "int"}}}, {"name": "monthly_mortgage_payment", "description": "Calculates the monthly mortgage payment based on the loan amount, annual interest rate, and loan term.", "parameters": {"loan_amount": {"description": "The total amount of the loan.", "type": "float"}, "annual_interest_rate": {"description": "The annual interest rate as a decimal (e.g., 0.05 for 5%).", "type": "float"}, "loan_term_years": {"description": "The loan term in years.", "type": "int"}}}, {"name": "is_perfect_square", "description": "Checks if a number is a perfect square.", "parameters": {"num": {"description": "The number to check.", "type": "int"}}}, {"name": "calculate_card_game_probability", "description": "Calculate the probability of drawing a certain number of desired cards from a deck.", "parameters": {"total_cards": {"description": "Total number of cards in the deck.", "type": "int"}, "desired_cards": {"description": "Number of cards in the deck that satisfy the conditions.", "type": "int"}, "cards_drawn": {"description": "Number of cards drawn from the deck.", "type": "int"}}}, {"name": "find_next_greater_element", "description": "Finds the next greater element for each element in a list.", "parameters": {"nums": {"description": "The list of numbers.", "type": "List[int]"}}}]
Is 17 a prime number? Also, what's the monthly mortgage payment for a $250,000 loan with a 3.5% annual interest rate and a 30-year term?
user
assistant
[{"name": "is_prime", "arguments": {"num": 17}}, {"name": "monthly_mortgage_payment", "arguments": {"loan_amount": 250000, "annual_interest_rate": 0.035, "loan_term_years": 30}}]