Calendar Search Events
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
read - Catalog version:
google-2026.07.12.2 - Descriptor hash:
0a8a133039ad6c5ab45741c0abd87b58ea200c7c0c04a3dedb5b9bbeb5306255
Use this read-only Google Calendar tool to search events with a query and optional time window. Returns compact event metadata and pagination. It reads the configured user's Google data through per-request OAuth, does not mutate provider state, and returns a normalized bounded envelope.
Request Body
{
"jsonrpc": "2.0",
"id": "google-calendar-search-events-example",
"method": "tools/call",
"params": {
"name": "google.calendar_search_events",
"arguments": {
"query": "query_example",
"fields": "fields_example",
"order_by": "order_by_example",
"time_max": "time_max_example",
"time_min": "time_min_example",
"page_token": "page_token_example",
"calendar_id": "calendar_id_123",
"max_results": 1,
"single_events": false
}
}
}
Arguments Schema
{
"type": "object",
"title": "calendar_search_eventsArguments",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"title": "Query",
"description": "Provider query string used to filter results."
},
"fields": {
"type": "string",
"title": "Fields",
"default": "",
"description": "Optional Google partial-response fields selector for compact output."
},
"order_by": {
"type": "string",
"title": "Order By",
"default": "startTime",
"description": "Optional provider order expression."
},
"time_max": {
"type": "string",
"title": "Time Max",
"default": "",
"description": "Exclusive upper event time bound as RFC3339 timestamp."
},
"time_min": {
"type": "string",
"title": "Time Min",
"default": "",
"description": "Inclusive lower event time bound as RFC3339 timestamp."
},
"page_token": {
"type": "string",
"title": "Page Token",
"default": "",
"description": "Provider pagination token returned by a previous list call."
},
"calendar_id": {
"type": "string",
"title": "Calendar Id",
"default": "primary",
"description": "Google Calendar calendar ID, often 'primary'."
},
"max_results": {
"type": "integer",
"title": "Max Results",
"default": 100,
"description": "Maximum number of items to request from Google for this page."
},
"single_events": {
"type": "boolean",
"title": "Single Events",
"default": true,
"description": "Whether recurring events should be expanded into instances."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or Google provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded local navigation or Google provider result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe timing, pagination, cache, request, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Google MCP normalized operation envelope.",
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-calendar-search-events-example",
"method": "tools/call",
"params": {
"name": "google.calendar_search_events",
"arguments": {
"query": "query_example",
"fields": "fields_example",
"order_by": "order_by_example",
"time_max": "time_max_example",
"time_min": "time_min_example",
"page_token": "page_token_example",
"calendar_id": "calendar_id_123",
"max_results": 1,
"single_events": false
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "google-calendar-search-events-example",
"method": "tools/call",
"params": {
"name": "google.calendar_search_events",
"arguments": {
"query": "query_example",
"fields": "fields_example",
"order_by": "order_by_example",
"time_max": "time_max_example",
"time_min": "time_min_example",
"page_token": "page_token_example",
"calendar_id": "calendar_id_123",
"max_results": 1,
"single_events": false
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "google-calendar-search-events-example",
"method": "tools/call",
"params": {
"name": "google.calendar_search_events",
"arguments": {
"query": "query_example",
"fields": "fields_example",
"order_by": "order_by_example",
"time_max": "time_max_example",
"time_min": "time_min_example",
"page_token": "page_token_example",
"calendar_id": "calendar_id_123",
"max_results": 1,
"single_events": false
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool google.calendar_search_events executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}