query_freebusy
Retrieves free/busy periods for selected Google calendars within a time range, helping you check availability before scheduling meetings.
Instructions
Returns free/busy information for a set of calendars.
Args:
user_google_email (str): The user's Google email address. Required.
time_min (str): The start of the interval for the query in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12').
time_max (str): The end of the interval for the query in RFC3339 format (e.g., '2024-05-12T18:00:00Z' or '2024-05-12').
calendar_ids (Optional[List[str]]): List of calendar identifiers to query. If not provided, queries the primary calendar. Use 'primary' for the user's primary calendar or specific calendar IDs obtained from list_calendars.
group_expansion_max (Optional[int]): Maximum number of calendar identifiers to be provided for a single group. Optional. An error is returned for a group with more members than this value. Maximum value is 100.
calendar_expansion_max (Optional[int]): Maximum number of calendars for which FreeBusy information is to be provided. Optional. Maximum value is 50.
Returns: str: A formatted response showing free/busy information for each requested calendar, including busy time periods.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_google_email": "<user_google_email>",
"time_min": "<time_min>",
"time_max": "<time_max>"
},
"name": "query_freebusy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time_max | Yes | ||
| time_min | Yes | ||
| calendar_ids | No | ||
| user_google_email | Yes | ||
| group_expansion_max | No | ||
| calendar_expansion_max | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |