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": "dice_roll_probability", "description": "Calculates the probability of rolling a specific sum with a given number of dice, each having a certain number of faces.", "parameters": {"target_sum": {"description": "The target sum to calculate the probability for.", "type": "int", "default": 6}, "num_dice": {"description": "The number of dice being rolled.", "type": "int", "default": 6}, "num_faces": {"description": "The number of faces on each die. Defaults to 6.", "type": "int, optional"}}}]
Find the next greater element for each number in the list [15, 10, 20, 5, 18]. Furthermore, calculate the probability of rolling a sum of 30 with 4 dice, each having 20 faces.
user
assistant
[{"name": "find_next_greater_element", "arguments": {"nums": [15, 10, 20, 5, 18]}}, {"name": "dice_roll_probability", "arguments": {"target_sum": 30, "num_dice": 4, "num_faces": 20}}]