{
"type": "endpoint",
"tool": {
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the weather for a city",
"parameters": {
"type": "object",
"properties": {
"longitude": {
"type": "number",
"description": "The longitude of the city"
},
"latitude": {
"type": "number",
"description": "The latitude of the city"
},
"start_date": {
"type": "string",
"description": "The starting date that users want the weather for in the format of YYYY-MM-DD (e.g., 2025-05-05)"
},
"end_date": {
"type": "string",
"description": "The ending date that users want the weather for in the format of YYYY-MM-DD (e.g., 2025-05-05)"
},
"timezone": {
"type": "string",
"description": "The user's current timezone (e.g., PST)"
}
},
"required": [
"longitude",
"latitude",
"start_date",
"end_date",
"timezone"
]
}
}
},
"endpoint": {
"url": "https://api.open-meteo.com/v1/forecast",
"method": "get",
"argumentLocation": "query"
},
"defaults": null,
"staticParameters": [
{
"name": "hourly",
"description": "Information to retrieve from the Open-Meteo API, comma-separated",
"required": true,
"type": "string",
"default": "temperature_2m,relative_humidity_2m,precipitation,rain,showers,snowfall,precipitation_probability,cloud_cover,wind_speed_10m,wind_direction_10m,visibility,uv_index"
},
{
"name": "temperature_unit",
"description": "Unit of temperature being used",
"required": false,
"type": "string",
"default": "fahrenheit"
},
{
"name": "wind_speed_unit",
"description": "Unit of wind speed being used",
"required": false,
"type": "string",
"default": "mph"
},
{
"name": "precipitation_unit",
"description": "Unit of precipitation being used",
"required": false,
"type": "string",
"default": "inch"
}
],
"result": null
}