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": "stock_get_financials", "description": "Fetches financial information for a given stock.", "parameters": {"is_id": {"description": "The identifier of the stock. Use the market/auto-complete API to get the correct values.", "type": "str", "default": "aapl:us"}}}, {"name": "listportfolios", "description": "Fetches a list of portfolios from the Trader Wagon API based on the given parameters.", "parameters": {"limit": {"description": "The number of results to return. Default is 10.", "type": "int, optional", "default": "10"}, "portfoliotype": {"description": "The type of portfolio to filter by. Default is None.", "type": "str, optional", "default": ""}, "available": {"description": "Specifies whether to list only available portfolios. Default is 0.", "type": "int, optional", "default": "0"}}}]
Can you fetch the financials for Apple Inc. (AAPL) and list the top 5 available portfolios on Trader Wagon?
user
assistant
[{"name": "stock_get_financials", "arguments": {"is_id": "AAPL"}}, {"name": "listportfolios", "arguments": {"limit": 5}}]