Tool: list_calendars
Returns the calendars this user has access to (their calendar list). Use this tool to resolve calendar identifying data (for example, 'my family calendar') into its corresponding calendar_id (email identifier)
The following sample demonstrate how to use curl to invoke the list_calendars 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": "list_calendars", "arguments": { // provide these details according to the tool MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
ListCalendarsRequest
| JSON representation |
|---|
{ "pageSize": integer "pageToken": string } |
| Fields | |
|---|---|
Union field
|
|
pageSize |
Optional. Max results per page. Default |
Union field
|
|
pageToken |
Optional. Token specifying which result page to return. |
Output Schema
ListCalendarsResponse
| JSON representation |
|---|
{
"calendars": [
{
object ( |
| Fields | |
|---|---|
calendars[] |
List of calendars. |
Union field
|
|
nextPageToken |
Next page token. Omitted if no next page exists. |
CalendarListItem
| JSON representation |
|---|
{ "id": string, "summary": string, "description": string, "timeZone": string } |
| Fields | |
|---|---|
id |
Identifier. Email address of the calendar. |
summary |
Output only. Title. |
description |
Output only. Description. |
timeZone |
Output only. Time zone. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌