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": "type_parent_get_recent_investment_rating_change", "description": "Fetches the recent investment rating change as displayed in the Parent tab for a given security.", "parameters": {"type": {"description": "The type of security, either 'etf' or 'fund'.", "type": "str", "default": "etf"}, "securityid": {"description": "The security ID used to query the investment rating change.", "type": "str", "default": "F00000O2CG"}}}, {"name": "v1_mortgagecalculator", "description": "Calculates mortgage-related information using the API Ninjas Mortgage Calculator API endpoint.", "parameters": {"interest_rate": {"description": "Annual interest rate (in %). For example, a 3.5% interest rate would be 3.5. Cannot exceed 10000.", "type": "int", "default": "3.5"}, "downpayment": {"description": "Downpayment on the home or asset. Cannot exceed home_value.", "type": "int, optional", "default": ""}, "home_value": {"description": "Total value of the home or asset. Must be greater than downpayment.", "type": "int, optional", "default": ""}, "monthly_hoa": {"description": "Monthly homeowner association fees.", "type": "int, optional", "default": ""}, "annual_property_tax": {"description": "Annual property tax owed.", "type": "str, optional", "default": ""}, "duration_years": {"description": "Duration of the loan in years. Must be between 1 and 10000. If not set, default value is 30 years.", "type": "int, optional", "default": ""}, "loan_amount": {"description": "Principal loan amount. Default is 200000.", "type": "int, optional", "default": "200000"}, "annual_home_insurance": {"description": "Annual homeowner's insurance bill.", "type": "int, optional", "default": ""}}}]
Calculate the mortgage details for a home worth $300,000 with a 20% down payment, 3.5% interest rate, and 15-year duration.
user
assistant
[{"name": "v1_mortgagecalculator", "arguments": {"interest_rate": 3.5, "downpayment": 60000, "home_value": 300000, "duration_years": 15}}]