Tool: suggest_time
Suggests time periods across one or more calendars.
The following sample demonstrate how to use curl to invoke the suggest_time MCP tool.
| Curl Request |
|---|
curl --location 'https://calendarmcp.googleapis.com/mcp' \ --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 tool MCP 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 ( |
| Fields | |
|---|---|
attendeeEmails[] |
Required. Attendee emails to find free time for. |
startTime |
Required. Query interval start (ISO 8601). |
endTime |
Required. Query interval end (ISO 8601). |
Union field
|
|
timeZone |
Optional. Time zone for search times (IANA ID, for example |
Union field
|
|
durationMinutes |
Optional. Min duration of free slot in minutes. Default: |
Union field
|
|
preferences |
Preferences to find suggested time. |
Preferences
| JSON representation |
|---|
{ "startHour": string "endHour": string "excludeWeekends": boolean "pageSize": integer } |
| Fields | |
|---|---|
Union field
|
|
startHour |
Preferred start hour as "HH:mm" (24-hour format). |
Union field
|
|
endHour |
Preferred end hour as "HH:mm" (24-hour format). |
Union field
|
|
excludeWeekends |
Exclude weekends. |
Union field
|
|
pageSize |
Max number of slots to return. Default: |
Output Schema
Response message for SuggestTime.
SuggestTimeResponse
| JSON representation |
|---|
{
"timeSlots": [
{
object ( |
| Fields | |
|---|---|
timeSlots[] |
Suggested time slots. |
TimeSlot
| JSON representation |
|---|
{ "startTime": string, "endTime": string, "durationMinutes": integer, "start": { object ( |
| Fields | |
|---|---|
startTime |
Deprecated: use |
endTime |
Deprecated: use |
durationMinutes |
Deprecated: use |
start |
The start time of the time slot. |
end |
The end time of the time slot. |
DateOrDateTime
| JSON representation |
|---|
{ "date": string, "dateTime": string, "timeZone": string } |
| Fields | |
|---|---|
date |
ISO 8601 date at midnight UTC (for example, |
dateTime |
ISO 8601 timestamp (for example, |
timeZone |
TZDB timezone name. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌