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": "teamnearmatches", "description": "Fetches the near matches for a specific baseball team using the team ID.", "parameters": {"is_id": {"description": "The team ID for which to retrieve the near matches.", "type": "int", "default": 3633}}}, {"name": "tournament_list", "description": "Retrieves a list of all tennis tournaments to be played in a selected year, based on the specified category. It provides basic information about each tournament such as venue, surface, and winners.", "parameters": {"category": {"description": "The category of tournaments to retrieve. Options include:", "type": "str", "default": "atpgs"}, "year": {"description": "The year for which to retrieve the list of tournaments.", "type": "str", "default": "2022"}}}, {"name": "uniquestageimage", "description": "Retrieves the image for a specific Motorsport unique stage using the provided stage ID.", "parameters": {"is_id": {"description": "The unique stage ID for which to retrieve the image.", "type": "int", "default": 40}}}, {"name": "query_horses", "description": "Queries horses by name using the Horse Racing API and returns the results.", "parameters": {"name": {"description": "The name of the horse to search for. Must be a minimum of 3 characters.", "type": "str", "default": "ZANAHIYR"}}}]
List all Grand Slam tennis tournaments in 2022 and find information about a horse named 'Thunder'.
user
assistant
[{"name": "tournament_list", "arguments": {"category": "gs", "year": "2022"}}, {"name": "query_horses", "arguments": {"name": "Thunder"}}]