createCalendar() in src/tools/calendar-tools.ts builds its GHL API payload from params.teamMembers, and MCPCreateCalendarParams types this as teamMembers?: GHLTeamMember[] ({ userId, priority?, isPrimary? }) — the field exists in code and types.
However, the tool's declared inputSchema (same file, create_calendar definition) never exposes teamMembers as a parameter. There's no way for an MCP client to supply it.
Repro:
create_calendar({ calendarType: "personal", name: "Test" })
Fails with a generic API error. calendarType: "event" with identical other params succeeds.
Suspected cause: GHL's API likely requires personal calendars to have an assigned team member/owner. Without a way to pass teamMembers, that requirement can never be satisfied, so personal (and possibly round_robin/collective, which also assign users) fail via this tool even though they're valid enum values.
Suggested fix: add teamMembers (array of {userId, priority?, isPrimary?}) to the create_calendar tool's inputSchema.
createCalendar()insrc/tools/calendar-tools.tsbuilds its GHL API payload fromparams.teamMembers, andMCPCreateCalendarParamstypes this asteamMembers?: GHLTeamMember[]({ userId, priority?, isPrimary? }) — the field exists in code and types.However, the tool's declared
inputSchema(same file,create_calendardefinition) never exposesteamMembersas a parameter. There's no way for an MCP client to supply it.Repro:
Fails with a generic API error.
calendarType: "event"with identical other params succeeds.Suspected cause: GHL's API likely requires
personalcalendars to have an assigned team member/owner. Without a way to passteamMembers, that requirement can never be satisfied, sopersonal(and possiblyround_robin/collective, which also assign users) fail via this tool even though they're valid enum values.Suggested fix: add
teamMembers(array of{userId, priority?, isPrimary?}) to thecreate_calendartool'sinputSchema.