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": "get_balance", "description": "Retrieves the account balance for the given API key using the Sms77.io API through RapidAPI.", "parameters": {"p": {"description": "Your API key from Sms77.io.", "type": "str", "default": ""}}}, {"name": "get_analytics", "description": "Retrieve detailed statistics for your account using the specified parameters through the API.", "parameters": {"p": {"description": "The API Key to authenticate the API request.", "type": "str", "default": ""}, "start": {"description": "The start date for the statistics in the format YYYY-MM-DD. Defaults to 30 days ago if not specified.", "type": "str, optional", "default": ""}, "label": {"description": "Filter data by a specific label. Allowed values: 'all' (default) or a specific label.", "type": "str, optional", "default": "all"}, "end": {"description": "The end date for the statistics in the format YYYY-MM-DD. Defaults to the current date if not specified.", "type": "str, optional", "default": ""}, "subaccounts": {"description": "Specifies which account data to retrieve. Allowed values: 'only_main' (default), 'all', or a specific subaccount ID.", "type": "str, optional", "default": "only_main"}, "group_by": {"description": "Specifies the grouping of the data.", "type": "str, optional", "default": ""}}}]
Could you pull the analytics for all subaccounts labeled 'promo' for the last quarter of 2022? Use the API key 'lmn456789'.
user
assistant
[{"name": "get_analytics", "arguments": {"p": "lmn456789", "start": "2022-10-01", "end": "2022-12-31", "label": "promo", "subaccounts": "all"}}]