## Tool: `suggest_time`

> [!WARNING]
> **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features.

Suggests time periods across one or more calendars.

The following code sample shows how to use `curl` to call the `suggest_time` MCP tool.

| Curl Request |
|---|
| ```bash curl --location 'https://calendarmcp.googleapis.com/mcp/v1' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "suggest_time", "arguments": { // Provide these details according to the MCP tool specification. } }, "jsonrpc": "2.0", "id": 1 }' ``` |

## Input Schema

Request message for SuggestTime.

### SuggestTimeRequest

| JSON representation |
|---|
| ``` { "attendeeEmails": [ string ], "startTime": string, "endTime": string, "timeZone": string, "durationMinutes": integer, "preferences": { object (`Preferences`) } } ``` |

| Fields ||
|---|---|
| `attendeeEmails[]` | `string` Required. Attendee emails to find free time for. |
| `startTime` | `string` Required. Query interval start (ISO 8601). Pass the local time with no UTC offset and no trailing `Z` (for example `2026-04-30T10:00:00`); only include an offset if the user themselves stated one. If the user named a time zone, leave this without offset and put its IANA name in this request's top-level `timeZone` field. |
| `endTime` | `string` Required. Query interval end (ISO 8601). Follows the same rules as `startTime`. |
| Union field `_time_zone`. `_time_zone` can be only one of the following: ||
| `timeZone` | `string` Optional. The time zone the search times should be interpreted in (IANA ID, for example `Europe/Zurich`). Only use this parameter if the user explicitly states a time zone, but always set it when they do, even if that time zone looks like the user's own. Otherwise leave it unset: the server resolves the user's time zone automatically. |
|   ||
| Union field `_duration_minutes`. `_duration_minutes` can be only one of the following: ||
| `durationMinutes` | `integer` Optional. Min duration of free slot in minutes. Default: `30`. |
|   ||
| Union field `_preferences`. `_preferences` can be only one of the following: ||
| `preferences` | ``object (`Preferences`)`` Preferences to find suggested time. |
|   ||

### Preferences

| JSON representation |
|---|
| ``` { "startHour": string, "endHour": string, "excludeWeekends": boolean, "pageSize": integer } ``` |

| Fields ||
|---|---|
| Union field `_start_hour`. `_start_hour` can be only one of the following: ||
| `startHour` | `string` Preferred start hour as "HH:mm" (24-hour format). |
|   ||
| Union field `_end_hour`. `_end_hour` can be only one of the following: ||
| `endHour` | `string` Preferred end hour as "HH:mm" (24-hour format). |
|   ||
| Union field `_exclude_weekends`. `_exclude_weekends` can be only one of the following: ||
| `excludeWeekends` | `boolean` Exclude weekends. |
|   ||
| Union field `_page_size`. `_page_size` can be only one of the following: ||
| `pageSize` | `integer` Max number of slots to return. Default: `5`. |
|   ||

## Output Schema

Response message for SuggestTime.

### SuggestTimeResponse

| JSON representation |
|---|
| ``` { "timeSlots": [ { object (`TimeSlot`) } ] } ``` |

| Fields ||
|---|---|
| `timeSlots[]` | ``object (`TimeSlot`)`` Suggested time slots. |

### TimeSlot

| JSON representation |
|---|
| ``` { "startTime": string, "endTime": string, "durationMinutes": integer, "start": { object (`DateOrDateTime`) }, "end": { object (`DateOrDateTime`) } } ``` |

| Fields ||
|---|---|
| `startTime (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated: use `start` instead. |
| `endTime (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated: use `end` instead. |
| `durationMinutes (deprecated)` | `integer` > [!WARNING] > This item is deprecated! Deprecated: use `start` and `end` to compute duration instead. |
| `start` | ``object (`DateOrDateTime`)`` The start time of the time slot. |
| `end` | ``object (`DateOrDateTime`)`` The end time of the time slot. |

### DateOrDateTime

| JSON representation |
|---|
| ``` { "date": string, "dateTime": string, "timeZone": string } ``` |

| Fields ||
|---|---|
| `date` | `string` ISO 8601 date in `yyyy-mm-dd` format (for example, `'2019-11-20'`). |
| `dateTime` | `string` ISO 8601 timestamp (for example, `'2019-11-20T08:19:06-07:00'`). |
| `timeZone` | `string` The original time zone in IANA Time Zone Database format (for example, `'America/Los_Angeles'`). The returned `dateTime` might be in a different display time zone (for example the viewer's current time zone). |

### Tool Annotations


[Tool annotations](https://modelcontextprotocol.io/specification/latest/schema#toolannotations) are sent to MCP clients to describe the basic risk of a given tool. Most clients treat these hints as untrusted, but they can be used to decide when a confirmation prompt might be sent to a user.


Along with the title string, the following boolean hints are defined as follows:

- `readOnlyHint`: If true, the tool doesn't modify its environment. Default: false.
- `destructiveHint`: If true, then the tool can perform destructive actions. If false, then the tool can only perform additive actions. Default: true.
- `idempotentHint`: If true, then calling the tool repeatedly with the same arguments will have no additional effect on its environment. Default: false.
- `openWorldHint`: If true, then the tool can interact with an 'open world' of external entities. If false, then the tool can only interact with internal entities. For example, a web search tool would be open world, while a memory tool would not be open world.

Destructive Hint: ❌ \| Idempotent Hint: ✅ \| Read Only Hint: ✅ \| Open World Hint: ❌

## Authorization Scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/calendar`
- `https://www.googleapis.com/auth/calendar.readonly`
- `https://www.googleapis.com/auth/calendar.events`
- `https://www.googleapis.com/auth/calendar.events.freebusy`
- `https://www.googleapis.com/auth/calendar.freebusy`