Create Calendar
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
write - Catalog version:
2026-07-12.2 - Descriptor hash:
d0c6c81a433593f955c9d3874b7909a4a920f62a417679de54b26ed998a723c4
Create a new calendar in GoHighLevel GHL category: Calendars. This writes to GoHighLevel and may change account data.
Request Body
{
"jsonrpc": "2.0",
"id": "ghl-create-calendar-example",
"method": "tools/call",
"params": {
"name": "ghl.create_calendar",
"arguments": {
"name": "name_example",
"calendarType": "round_robin",
"groupId": "groupId_123",
"isActive": false,
"tenantId": "tenantId_123",
"autoConfirm": false,
"description": "description_example",
"teamMembers": [],
"slotDuration": 1,
"allowReschedule": false
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"name",
"calendarType"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the calendar"
},
"groupId": {
"type": "string",
"description": "Calendar group ID to organize the calendar"
},
"isActive": {
"type": "boolean",
"default": true,
"description": "Make calendar active immediately (default: true)"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"autoConfirm": {
"type": "boolean",
"default": true,
"description": "Automatically confirm appointments (default: true)"
},
"description": {
"type": "string",
"description": "Description of the calendar"
},
"teamMembers": {
"type": "array",
"items": {
"type": "object",
"required": [
"userId"
],
"properties": {
"userId": {
"type": "string",
"description": "GHL user ID assigned to the calendar"
},
"priority": {
"type": "number",
"description": "Round-robin priority such as 0, 0.5, or 1"
},
"isPrimary": {
"type": "boolean",
"description": "Whether this is the primary assigned team member"
},
"locationConfigurations": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"enum": [
"custom",
"zoom_conference",
"google_conference",
"inbound_call",
"outbound_call",
"physical",
"booker",
"ms_teams_conference"
],
"type": "string",
"description": "Meeting location type for this assigned user, such as custom, physical, inbound_call, or a conferencing provider."
},
"location": {
"type": "string",
"description": "Human-readable meeting location details, such as a room name, address, phone number, or custom instructions."
},
"meetingId": {
"type": "string",
"description": "Provider meeting identifier when using a conferencing integration that supplies a meeting ID."
}
}
},
"description": "Meeting location configuration for this user."
}
}
},
"description": "Team members assigned to the calendar. Required by some calendar types such as service_booking. Each entry should include userId and optional priority/isPrimary/locationConfigurations."
},
"calendarType": {
"enum": [
"round_robin",
"event",
"class_booking",
"collective",
"service_booking",
"personal"
],
"type": "string",
"default": "event",
"description": "Type of calendar to create"
},
"slotDuration": {
"type": "number",
"default": 30,
"description": "Duration of appointment slots in minutes (default: 30)"
},
"allowReschedule": {
"type": "boolean",
"default": true,
"description": "Allow clients to reschedule appointments (default: true)"
},
"slotDurationUnit": {
"enum": [
"mins",
"hours"
],
"type": "string",
"default": "mins",
"description": "Unit for slot duration"
},
"allowCancellation": {
"type": "boolean",
"default": true,
"description": "Allow clients to cancel appointments (default: true)"
}
}
}
Output Schema
{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the GHL MCP operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Tool-specific GHL or local navigation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe execution, routing, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false; credential values are never returned."
}
},
"description": "Normalized GHL MCP response 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": "ghl-create-calendar-example",
"method": "tools/call",
"params": {
"name": "ghl.create_calendar",
"arguments": {
"name": "name_example",
"calendarType": "round_robin",
"groupId": "groupId_123",
"isActive": false,
"tenantId": "tenantId_123",
"autoConfirm": false,
"description": "description_example",
"teamMembers": [],
"slotDuration": 1,
"allowReschedule": 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": "ghl-create-calendar-example",
"method": "tools/call",
"params": {
"name": "ghl.create_calendar",
"arguments": {
"name": "name_example",
"calendarType": "round_robin",
"groupId": "groupId_123",
"isActive": false,
"tenantId": "tenantId_123",
"autoConfirm": false,
"description": "description_example",
"teamMembers": [],
"slotDuration": 1,
"allowReschedule": 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": "ghl-create-calendar-example",
"method": "tools/call",
"params": {
"name": "ghl.create_calendar",
"arguments": {
"name": "name_example",
"calendarType": "round_robin",
"groupId": "groupId_123",
"isActive": false,
"tenantId": "tenantId_123",
"autoConfirm": false,
"description": "description_example",
"teamMembers": [],
"slotDuration": 1,
"allowReschedule": 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 ghl.create_calendar 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."
}