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": "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]"}}}, {"name": "future_investment_value", "description": "Calculates the future value of an investment based on the present value, annual interest rate, and number of years.", "parameters": {"present_value": {"description": "The present value of the investment.", "type": "float"}, "annual_interest_rate": {"description": "The annual interest rate as a decimal (e.g., 0.05 for 5%).", "type": "float"}, "years": {"description": "The number of years the investment will grow.", "type": "int"}}}]
Find the next greater element for each number in the list [5, 4, 3, 2, 1]. Also, calculate the future value of a $500 investment with an annual interest rate of 3% over 5 years.
user
assistant
[{"name": "find_next_greater_element", "arguments": {"nums": [5, 4, 3, 2, 1]}}, {"name": "future_investment_value", "arguments": {"present_value": 500, "annual_interest_rate": 0.03, "years": 5}}]