Skip to main content
Glama
bit2beat

Bitrix24 MCP server

b24_calendar_list

Retrieve calendar events filtered by date for personal, group, or company calendars.

Instructions

Lista eventos de calendario personal, de grupo o de empresa con filtro de fechas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoTipo de calendario: user (personal), group (grupo de trabajo), company_calendar (empresa)user
owner_idNoID del usuario o grupo propietario. Default: usuario del webhook
fromNoFecha inicio ISO8601. Ejemplo: "2026-01-01"
toNoFecha fin ISO8601. Ejemplo: "2026-12-31"
webhook_urlNo

Implementation Reference

  • Handler function that executes the b24_calendar_list tool logic. Calls Bitrix24 calendar.event.get API with type, ownerId, from, to parameters.
    export async function calendarList({ type = 'user', owner_id, from, to, webhook_url }) {
      const client = new Bitrix24Client(resolveWebhook(webhook_url));
      const params = {
        type,
        ...(owner_id ? { ownerId: owner_id } : {}),
        ...(from ? { from } : {}),
        ...(to ? { to } : {}),
      };
      const res = await client.call('calendar.event.get', params);
      const events = res.result ?? [];
      return { portal: client.portal, type, count: events.length, events };
    }
  • Zod schema defining input parameters: type (enum user/group/company_calendar), owner_id, from, to, webhook_url.
    export const calendarListSchema = z.object({
      type: z.enum(['user', 'group', 'company_calendar']).optional().default('user').describe(
        'Tipo de calendario: user (personal), group (grupo de trabajo), company_calendar (empresa)'
      ),
      owner_id: z.union([z.string(), z.number()]).optional().describe('ID del usuario o grupo propietario. Default: usuario del webhook'),
      from: z.string().optional().describe('Fecha inicio ISO8601. Ejemplo: "2026-01-01"'),
      to: z.string().optional().describe('Fecha fin ISO8601. Ejemplo: "2026-12-31"'),
      webhook_url: z.string().url().optional(),
    });
  • index.js:222-224 (registration)
    Registration of the tool named 'b24_calendar_list' with description, schema, and handler via server.tool().
    server.tool('b24_calendar_list',
      'Lista eventos de calendario personal, de grupo o de empresa con filtro de fechas.',
      calendarListSchema.shape, wrap(calendarList));
  • Imports for Zod, Bitrix24Client, and resolveWebhook helper used in the tool.
    import { z } from 'zod';
    import { Bitrix24Client } from '../bitrix24/client.js';
    import { resolveWebhook } from '../utils/resolve-webhook.js';
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It does not disclose that this is a read operation, nor any side effects, authorization needs, or return format. Only the basic listing function is mentioned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single clear sentence that front-loads the core purpose. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and moderate complexity (5 parameters, no required fields), the description adequately covers the input purpose but lacks information about return values or pagination. Schema fills many gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 80% (4 of 5 parameters have descriptions). The overall description adds minimal extra meaning: it frames the operation as a list with date filtering, which is already implied by the parameter names and schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists calendar events with date filters and specifies the calendar types (personal, group, company). It distinguishes from sibling tools like b24_calendar_create.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for listing events with date filters but does not provide explicit guidance on when to use versus alternatives or any exclusions. Sibling tools exist but are not referenced.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bit2beat/bitrix24-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server