Create Appointment
Immutable Catalog + Curated Guide
This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.
- Contract tier:
agent_ready - Risk:
write - Catalog version:
2026-07-12.2 - Descriptor hash:
bdf60130eaae9eb0d64172d86adc700433a4f8e7bce85eb08b850d356b6a7269
Book an appointment for a contact in a target calendar.
Request Body
{
"jsonrpc": "2.0",
"id": "ghl-create-appointment-example",
"method": "tools/call",
"params": {
"name": "ghl.create_appointment",
"arguments": {
"calendarId": "cal_sales",
"contactId": "cont_294",
"startTime": "2026-04-05T14:00:00-05:00",
"title": "Discovery Call"
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"calendarId",
"contactId",
"startTime"
],
"properties": {
"title": {
"type": "string",
"description": "Title/subject of the appointment"
},
"address": {
"type": "string",
"description": "Meeting location or address"
},
"endTime": {
"type": "string",
"description": "End time in ISO format (optional, will be calculated from slot duration if not provided)"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"toNotify": {
"type": "boolean",
"default": true,
"description": "Send notifications for this appointment"
},
"contactId": {
"type": "string",
"description": "The contact ID for whom to book the appointment"
},
"startTime": {
"type": "string",
"description": "Start time in ISO format (e.g., \"2024-01-15T10:00:00-05:00\")"
},
"calendarId": {
"type": "string",
"description": "The calendar ID to book the appointment in"
},
"assignedUserId": {
"type": "string",
"description": "User ID to assign this appointment to"
},
"ignoreDateRange": {
"type": "boolean",
"default": false,
"description": "Ignore minimum scheduling notice and date range restrictions"
},
"appointmentStatus": {
"enum": [
"new",
"confirmed"
],
"type": "string",
"default": "confirmed",
"description": "Initial status of the appointment"
},
"meetingLocationType": {
"enum": [
"custom",
"zoom",
"gmeet",
"phone",
"address"
],
"type": "string",
"default": "custom",
"description": "Type of meeting location"
}
}
}
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-appointment-example",
"method": "tools/call",
"params": {
"name": "ghl.create_appointment",
"arguments": {
"calendarId": "cal_sales",
"contactId": "cont_294",
"startTime": "2026-04-05T14:00:00-05:00",
"title": "Discovery Call"
}
}
}'
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-appointment-example",
"method": "tools/call",
"params": {
"name": "ghl.create_appointment",
"arguments": {
"calendarId": "cal_sales",
"contactId": "cont_294",
"startTime": "2026-04-05T14:00:00-05:00",
"title": "Discovery Call"
}
}
}),
});
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-appointment-example",
"method": "tools/call",
"params": {
"name": "ghl.create_appointment",
"arguments": {
"calendarId": "cal_sales",
"contactId": "cont_294",
"startTime": "2026-04-05T14:00:00-05:00",
"title": "Discovery Call"
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 409 Slot Conflict
{
"ok": true,
"appointment": {
"id": "apt_721",
"calendarId": "cal_sales",
"startTime": "2026-04-05T14:00:00-05:00"
}
}
{
"ok": false,
"error": "slot_unavailable",
"message": "Selected slot is no longer available"
}