b24_calendar_create
Create a calendar event with attendees, location, and reminders in Bitrix24.
Instructions
Crea un evento en el calendario con participantes, ubicación y recordatorios.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | user | |
| owner_id | No | ||
| name | Yes | Nombre/título del evento | |
| date_from | Yes | Fecha/hora inicio ISO8601. Ejemplo: "2026-06-15 10:00:00" | |
| date_to | Yes | Fecha/hora fin ISO8601. Ejemplo: "2026-06-15 11:00:00" | |
| description | No | ||
| location | No | ||
| attendees | No | IDs de usuarios invitados | |
| remind | No | Recordatorios. Ejemplo: [{ type: "min", count: 15 }] | |
| webhook_url | No |
Implementation Reference
- src/tools/calendar.js:48-63 (handler)Main handler for b24_calendar_create. Creates a calendar event via Bitrix24 'calendar.event.add' API with name, dates, description, location, attendees, and reminders.
export async function calendarCreate({ type = 'user', owner_id, name, date_from, date_to, description, location, attendees, remind, webhook_url }) { const client = new Bitrix24Client(resolveWebhook(webhook_url)); const res = await client.call('calendar.event.add', { type, ...(owner_id ? { ownerId: owner_id } : {}), name, date_from, date_to, skip_time: 'N', ...(description ? { description } : {}), ...(location ? { location } : {}), ...(attendees ? { attendees } : {}), ...(remind ? { remind } : {}), }); return { portal: client.portal, created_id: res.result, success: true }; } - src/tools/calendar.js:32-46 (schema)Zod schema defining the input parameters for the calendar create tool: type, owner_id, name, date_from, date_to, description, location, attendees, remind, and webhook_url.
export const calendarCreateSchema = z.object({ type: z.enum(['user', 'group', 'company_calendar']).optional().default('user'), owner_id: z.union([z.string(), z.number()]).optional(), name: z.string().describe('Nombre/título del evento'), date_from: z.string().describe('Fecha/hora inicio ISO8601. Ejemplo: "2026-06-15 10:00:00"'), date_to: z.string().describe('Fecha/hora fin ISO8601. Ejemplo: "2026-06-15 11:00:00"'), description: z.string().optional(), location: z.string().optional(), attendees: z.array(z.union([z.string(), z.number()])).optional().describe('IDs de usuarios invitados'), remind: z.array(z.object({ type: z.enum(['min', 'hour', 'day']), count: z.number(), })).optional().describe('Recordatorios. Ejemplo: [{ type: "min", count: 15 }]'), webhook_url: z.string().url().optional(), }); - index.js:226-228 (registration)Registration of the 'b24_calendar_create' tool on the MCP server with its description, schema, and wrapped handler.
server.tool('b24_calendar_create', 'Crea un evento en el calendario con participantes, ubicación y recordatorios.', calendarCreateSchema.shape, wrap(calendarCreate));