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": "tournamentnextmainevents", "description": "This function retrieves the next main events for a specified MMA tournament using the Toolbench RapidAPI service.", "parameters": {"page": {"description": "Zero-based page number to retrieve.", "type": "int", "default": ""}, "tournamentid": {"description": "Unique identifier for the MMA tournament.", "type": "int", "default": 19906}}}, {"name": "get_game_lineup", "description": "Fetches the full lineup for a specific game, along with its confirmation status or forecast.", "parameters": {"gameid": {"description": "The unique identifier for the game.", "type": "str", "default": "9576185"}}}, {"name": "leagues", "description": "Retrieves a list of sports leagues using the provided RapidAPI key.", "parameters": {"lang": {"description": "Language code for the response (e.g., 'en' for English).", "type": "str", "default": "en"}, "sp": {"description": "Sport identifier.", "type": "int", "default": "1"}}}, {"name": "list_of_periods", "description": "Retrieve a list of periods for a given sport ID from the Pinnacle Odds API.", "parameters": {"sport_id": {"description": "The ID of the sport for which to retrieve the periods.", "type": "int", "default": 1}}}]
What are the available leagues in Spanish for soccer and the list of periods for basketball?
user
assistant
[{"name": "leagues", "arguments": {"lang": "es", "sp": 1}}, {"name": "list_of_periods", "arguments": {"sport_id": 2}}]