Both tool types configured together on an assistant's model, using the {{now}} dynamic variable so the model always knows the current date and time:
{
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a scheduling assistant. Always check availability before creating an event. Notes\n- Current date: {{now}}"
}
],
"tools": [
{
"type": "google.calendar.availability.check",
"name": "checkAvailability",
"description": "Use this tool to check calendar availability. Current date/time: {{now}}"
},
{
"type": "google.calendar.event.create",
"name": "scheduleAppointment",
"description": "Use this tool to schedule appointments and create calendar events. All appointments are 30 minutes. Current date/time: {{now}}"
}
]
}
}
See Dynamic Variables for the full list of built-in variables like {{now}} and how to define your own.