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": "history_prices", "description": "Fetches historical stock prices including Date, Open, High, Low, Close, Adj Close, and Volume for a given stock symbol over a specified range.", "parameters": {"range": {"description": "The time period for which to fetch stock prices. Choices are ['1y', '5y', 'max']. Defaults to '1y'.", "type": "str", "default": "1y"}, "symbol": {"description": "The ticker symbol of the company. Defaults to 'TSLA'.", "type": "str", "default": "TSLA"}}}, {"name": "latest_information_for_symbol", "description": "Fetch the latest ticker information for a given symbol from the Bybit API.", "parameters": {"symbol": {"description": "The market symbol to retrieve information for.", "type": "str", "default": "BTCUSD"}}}, {"name": "ultosc", "description": "Fetches the Ultimate Oscillator (ULTOSC) data for a given financial instrument using the Twelve Data API. The Ultimate Oscillator takes into account three different time periods to enhance the quality of overbought and oversold signals.", "parameters": {"symbol": {"description": "Instrument symbol, can be any equity, index, ETF, forex, or cryptocurrency (e.g., 'AAPL', 'EUR/USD', 'ETH/BTC').", "type": "str", "default": "AAPL"}, "interval": {"description": "Interval between two consecutive points in the time series. Supported values are '1min', '5min', '15min', '30min', '45min', '1h', '2h', '4h', '1day', '1week', and '1month'.", "type": "str", "default": "1min"}, "time_period_1": {"description": "First time period for the oscillator calculation. Defaults to 7.", "type": "int, optional", "default": 7}, "time_period_2": {"description": "Second time period for the oscillator calculation. Defaults to 14.", "type": "int, optional", "default": 14}, "format": {"description": "Output format, either 'CSV' or 'JSON'. Defaults to 'json'.", "type": "str, optional", "default": "json"}, "time_period_3": {"description": "Third time period for the oscillator calculation. Defaults to 28.", "type": "int, optional", "default": 28}, "outputsize": {"description": "Number of data points to return. Defaults to 30.", "type": "int, optional", "default": 30}}}]
Fetch the Ultimate Oscillator data for Amazon (AMZN) with a 30-minute interval, custom time periods of 5, 10, and 20, and return 50 data points.
user
assistant
[{"name": "ultosc", "arguments": {"symbol": "AMZN", "interval": "30min", "time_period_1": 5, "time_period_2": 10, "time_period_3": 20, "outputsize": 50}}]