Skip to main content
Glama

list-endpoints

Discover available Kalendis API endpoints with descriptions to understand scheduling operations for users, availability, bookings, and client generation.

Instructions

List all available Kalendis API endpoints with descriptions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:86-93 (registration)
    Tool registration in the TOOLS array, defining the name, description, and empty input schema for the list-endpoints tool.
    {
      name: 'list-endpoints',
      description: 'List all available Kalendis API endpoints with descriptions',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema definition for the list-endpoints tool (empty object, no parameters required).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • The switch case handler that iterates over ENDPOINTS, formats each endpoint's details (method, path, description, params, body, response), and returns a formatted text list of all Kalendis API endpoints.
    case 'list-endpoints': {
      const endpointsList = Object.entries(ENDPOINTS)
        .map(([name, endpoint]) => {
          const params = endpoint.params ? '\n    Query params: ' + Object.keys(endpoint.params).join(', ') : '';
          const body = endpoint.body ? '\n    Body params: ' + Object.keys(endpoint.body).join(', ') : '';
          const responseInfo = endpoint.response
            ? `\n    Response: ${endpoint.response.type} - ${endpoint.response.description}`
            : '';
          return `${name}:\n  ${endpoint.method} ${endpoint.path}\n  ${endpoint.description}${params}${body}${responseInfo}`;
        })
        .join('\n\n');
    
      return {
        content: [
          {
            type: 'text',
            text: `Kalendis API Endpoints:\n\n${endpointsList}`,
          },
        ],
      };
    }
  • Supporting data structure defining all Kalendis API endpoints used by the list-endpoints handler to generate the endpoint list.
    export const ENDPOINTS: Record<string, EndpointDefinition> = {
      getUsersByAccountId: {
        path: '/v1/user/getUsersByAccountId',
        method: 'GET',
        description: 'Get all users for the authenticated account',
        response: {
          type: '{ data: User[]; meta: { total: number; apiVersion?: string } }',
          description: 'Users array with metadata',
        },
        headers: ['x-api-key'],
      },
    
      addUser: {
        path: '/v1/user/addUser',
        method: 'POST',
        description: 'Create a new user',
        body: {
          id: { type: 'string', required: false, description: 'User ID to set (optional, auto-generated if not provided)' },
          name: { type: 'string', required: true, description: 'User name' },
        },
        response: {
          type: 'User',
          description: 'Created user object',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      updateUser: {
        path: '/v1/user/updateUser',
        method: 'PUT',
        description: 'Update an existing user',
        body: {
          id: { type: 'string', required: true, description: 'User ID to update' },
          name: { type: 'string', required: false, description: 'New name' },
          timeZone: { type: 'string', required: false, description: 'New timezone' },
        },
        response: {
          type: 'User',
          description: 'Updated user object',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      deleteUser: {
        path: '/v1/user/deleteUser',
        method: 'DELETE',
        description: 'Delete a user',
        params: {
          id: { type: 'string', required: true, description: 'User ID to delete' },
        },
        response: {
          type: '{message: string}',
          description: 'Deletion confirmation message',
        },
        headers: ['x-api-key'],
      },
    
      getAvailability: {
        path: '/v1/availability/getAvailability',
        method: 'GET',
        description: 'Get availability for a specific user',
        params: {
          userId: { type: 'string', required: true, description: 'User ID to get availability for' },
          start: { type: 'string', required: true, description: 'Start date for availability' },
          end: { type: 'string', required: false, description: 'End date for availability' },
          includeExceptions: {
            type: 'string',
            required: false,
            description: 'Include exceptions in calculation (true/false)',
          },
          includeBookings: { type: 'string', required: false, description: 'Include bookings in calculation (true/false)' },
          timezone: { type: 'string', required: false, description: 'Timezone for date interpretation' },
        },
        response: {
          type: 'Array<{start: string, end: string, timeZone: string, offset: number, segments: Array<{start: string, end: string, id?: string, recurring?: boolean, expiration?: string | null, daysOfWeek?: Types.DaysOfWeek[], timeZone?: string}>}>',
          description: 'Calculated availability windows with metadata',
        },
        headers: ['x-api-key'],
      },
    
      getAllAvailability: {
        path: '/v1/availability/getAllAvailability',
        method: 'GET',
        description: 'Get availability for all users in the account',
        params: {
          start: { type: 'string', required: true, description: 'Start date to check from' },
          end: { type: 'string', required: false, description: 'End date (defaults to 7 days after start)' },
          timezone: { type: 'string', required: false, description: 'IANA timezone (defaults to America/New_York)' },
        },
        response: {
          type: 'Array<{userId: string, start: string, end: string, timeZone: string, offset: number, segments: Array<{start: string, end: string, id?: string, recurring?: boolean, expiration?: string | null, daysOfWeek?: Types.DaysOfWeek[]}>}>',
          description: 'Unmerged availability chunks per user with metadata',
        },
        headers: ['x-api-key'],
      },
    
      getMultiUserCalculatedAvailability: {
        path: '/v1/availability/getMultiUserCalculatedAvailability',
        method: 'POST',
        description: 'Get calculated availability for multiple users',
        body: {
          userIds: { type: 'string[]', required: true, description: 'Array of user IDs' },
          start: { type: 'string', required: true, description: 'Start date to check from' },
          end: { type: 'string', required: false, description: 'End date (omit for full day of start)' },
          timezone: { type: 'string', required: false, description: 'IANA timezone (defaults to America/New_York)' },
        },
        response: {
          type: 'Array<{userId: string, availability: Array<{start: string, end: string, timeZone: string, offset: number, segments: Array<{start: string, end: string, id?: string, recurring?: boolean, expiration?: string | null, daysOfWeek?: Types.DaysOfWeek[], timeZone?: string, originalItemOffset?: number}>}>, offset: number, timeZone: string}>',
          description: 'Availability per user with timezone, segments, and offsets',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      getRecurringAvailabilityByDate: {
        path: '/v1/availability/getRecurringAvailabilityByDate',
        method: 'POST',
        description: 'Get recurring availability based on cadence',
        body: {
          userId: { type: 'string', required: true, description: 'User ID to check' },
          start: { type: 'string', required: true, description: 'Start date' },
          cadence: { type: 'string', required: true, description: 'DAILY or WEEKLY' },
          frequency: { type: 'number', required: true, description: 'How often cadence occurs' },
          numberOfOccurrences: { type: 'number', required: true, description: 'Times to check' },
          timezone: { type: 'string', required: false, description: 'IANA timezone' },
        },
        response: {
          type: 'Array<Array<{start: string, end: string, offset: number}>>',
          description: 'Nested arrays of availability per occurrence',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      getMatchingAvailabilityByDate: {
        path: '/v1/availability/getMatchingAvailabilityByDate',
        method: 'POST',
        description: 'Get overlapping availability for multiple users',
        body: {
          userIds: { type: 'string[]', required: true, description: 'User IDs to check' },
          start: { type: 'string', required: true, description: 'Start date' },
          end: { type: 'string', required: false, description: 'End date' },
          timezone: { type: 'string', required: false, description: 'IANA timezone' },
        },
        response: {
          type: 'Array<{start: string, end: string, timeZone: string, offset: number}>',
          description: 'Times when all users are available with timezone and offset',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      addAvailability: {
        path: '/v1/availability/addAvailability',
        method: 'POST',
        description: 'Add availability for a user',
        body: {
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: true, description: 'Start DateTime' },
          end: { type: 'string', required: true, description: 'End DateTime' },
          timezone: { type: 'string', required: false, description: 'Timezone (defaults to America/New_York)' },
        },
        response: {
          type: 'Availability',
          description: 'Created availability object',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      updateAvailability: {
        path: '/v1/availability/updateAvailability',
        method: 'PUT',
        description: 'Update existing availability',
        body: {
          availabilityId: { type: 'string', required: true, description: 'Availability ID' },
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: false, description: 'New start time' },
          end: { type: 'string', required: false, description: 'New end time' },
          timezone: { type: 'string', required: false, description: 'New timezone' },
        },
        response: {
          type: 'Availability',
          description: 'Updated availability object',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      deleteAvailability: {
        path: '/v1/availability/deleteAvailability',
        method: 'DELETE',
        description: 'Delete availability',
        params: {
          id: { type: 'string', required: true, description: 'Availability ID to delete' },
          userId: { type: 'string', required: true, description: 'User ID' },
        },
        response: {
          type: '{message: string}',
          description: 'Deletion confirmation message',
        },
        headers: ['x-api-key'],
      },
    
      getRecurringAvailability: {
        path: '/v1/recurringAvailability/getRecurringAvailability',
        method: 'GET',
        description: 'Get all recurring availability for a user',
        params: {
          userId: { type: 'string', required: true, description: 'User ID' },
        },
        response: {
          type: 'RecurringAvailability[]',
          description: 'Array of recurring availability objects',
        },
        headers: ['x-api-key'],
      },
    
      addRecurringAvailability: {
        path: '/v1/recurringAvailability/addRecurringAvailability',
        method: 'POST',
        description: 'Add recurring availability for a user',
        body: {
          userId: { type: 'string', required: true, description: 'User ID' },
          daysOfWeek: { type: 'DaysOfWeek[]', required: true, description: 'Days this occurs on' },
          start: {
            type: 'string',
            required: true,
            description:
              'Start time (ISO 8601 DateTime format - full timestamp required, time portion defines recurring pattern)',
          },
          end: {
            type: 'string',
            required: true,
            description:
              'End time (ISO 8601 DateTime format - full timestamp required, time portion defines recurring pattern)',
          },
          expiration: { type: 'string', required: false, description: 'Expiration date (null = infinite)' },
          timezone: { type: 'string', required: false, description: 'Timezone (defaults to America/New_York)' },
        },
        response: {
          type: 'RecurringAvailability',
          description: 'Created recurring availability',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      updateRecurringAvailability: {
        path: '/v1/recurringAvailability/updateRecurringAvailability',
        method: 'PUT',
        description: 'Update recurring availability',
        body: {
          id: { type: 'string', required: true, description: 'Recurring availability ID' },
          userId: { type: 'string', required: true, description: 'User ID' },
          daysOfWeek: { type: 'DaysOfWeek[]', required: false, description: 'New days' },
          start: {
            type: 'string',
            required: false,
            description:
              'New start time (ISO 8601 DateTime format - full timestamp required, time portion defines recurring pattern)',
          },
          end: {
            type: 'string',
            required: false,
            description:
              'New end time (ISO 8601 DateTime format - full timestamp required, time portion defines recurring pattern)',
          },
          expiration: { type: 'string', required: false, description: 'New expiration' },
          makeInfinite: { type: 'boolean', required: false, description: 'Set to true to remove expiration' },
          timezone: { type: 'string', required: false, description: 'New timezone' },
        },
        response: {
          type: 'RecurringAvailability',
          description: 'Updated recurring availability',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      deleteRecurringAvailability: {
        path: '/v1/recurringAvailability/deleteRecurringAvailability',
        method: 'DELETE',
        description: 'Delete recurring availability',
        params: {
          userId: { type: 'string', required: true, description: 'User ID' },
          id: { type: 'string', required: true, description: 'Recurring availability ID' },
        },
        response: {
          type: '{message: string}',
          description: 'Deletion confirmation',
        },
        headers: ['x-api-key'],
      },
    
      getAvailabilityException: {
        path: '/v1/availabilityException/getAvailabilityException',
        method: 'GET',
        description: 'Get availability exceptions for a user',
        params: {
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: true, description: 'Start date (ISO 8601 format)' },
          end: {
            type: 'string',
            required: false,
            description: 'End date (ISO 8601 format). If not provided, returns exceptions for the entire day of start',
          },
        },
        response: {
          type: 'AvailabilityException[]',
          description: 'Array of availability exceptions',
        },
        headers: ['x-api-key'],
      },
    
      addAvailabilityException: {
        path: '/v1/availabilityException/addAvailabilityException',
        method: 'POST',
        description: 'Add an availability exception',
        body: {
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: true, description: 'Start DateTime' },
          end: { type: 'string', required: true, description: 'End DateTime' },
          timezone: { type: 'string', required: false, description: 'Timezone' },
        },
        response: {
          type: 'AvailabilityException',
          description: 'Created exception',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      addRecurringAvailabilityException: {
        path: '/v1/availabilityException/addRecurringAvailabilityException',
        method: 'POST',
        description: 'Add recurring availability exception',
        body: {
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: true, description: 'Start DateTime' },
          end: { type: 'string', required: true, description: 'End DateTime' },
          numberOfWeeks: { type: 'number', required: true, description: 'Number of weeks to repeat' },
          timezone: { type: 'string', required: false, description: 'Timezone (defaults to America/New_York)' },
        },
        response: {
          type: '{count: number}',
          description: 'Number of exceptions created',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      updateAvailabilityException: {
        path: '/v1/availabilityException/updateAvailabilityException',
        method: 'PUT',
        description: 'Update availability exception',
        body: {
          availabilityExceptionId: { type: 'string', required: true, description: 'Exception ID' },
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: false, description: 'New start' },
          end: { type: 'string', required: false, description: 'New end' },
          timezone: { type: 'string', required: false, description: 'New timezone' },
        },
        response: {
          type: 'AvailabilityException',
          description: 'Updated exception',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      deleteAvailabilityException: {
        path: '/v1/availabilityException/deleteAvailabilityException',
        method: 'DELETE',
        description: 'Delete availability exception',
        params: {
          id: { type: 'string', required: true, description: 'Exception ID' },
          userId: { type: 'string', required: true, description: 'User ID' },
        },
        response: {
          type: '{message: string}',
          description: 'Deletion confirmation',
        },
        headers: ['x-api-key'],
      },
    
      getBooking: {
        path: '/v1/booking/getBooking',
        method: 'GET',
        description: 'Get all bookings for a specific user within a date range',
        params: {
          userId: { type: 'string', required: true, description: 'User ID' },
          start: { type: 'string', required: true, description: 'Start date' },
          end: { type: 'string', required: false, description: 'End date (optional)' },
        },
        response: {
          type: 'Booking[]',
          description: 'Array of booking objects',
        },
        headers: ['x-api-key'],
      },
    
      getBookingsByIds: {
        path: '/v1/booking/getBookingsByIds',
        method: 'POST',
        description: 'Get multiple bookings by IDs',
        body: {
          bookingIds: { type: 'string[]', required: true, description: 'Array of booking IDs' },
        },
        response: {
          type: 'Array<{id: string, start: string, end: string, timeZone: string}>',
          description: 'Array of booking objects with basic fields',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      addBooking: {
        path: '/v1/booking/addBooking',
        method: 'POST',
        description: 'Create a new booking',
        body: {
          users: { type: 'string[]', required: true, description: 'User IDs for booking' },
          start: { type: 'string', required: true, description: 'Start DateTime' },
          end: { type: 'string', required: true, description: 'End DateTime' },
          allowDoubleBooking: { type: 'boolean', required: false, description: 'Allow double booking (defaults to false)' },
          timezone: { type: 'string', required: false, description: 'Timezone' },
        },
        response: {
          type: 'Booking',
          description: 'Created booking',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      updateBooking: {
        path: '/v1/booking/updateBooking',
        method: 'PUT',
        description: 'Update a booking',
        body: {
          bookingId: { type: 'string', required: true, description: 'Booking ID' },
          users: { type: 'string[]', required: false, description: 'New user IDs' },
          start: { type: 'string', required: false, description: 'New start' },
          end: { type: 'string', required: false, description: 'New end' },
          timezone: { type: 'string', required: false, description: 'New timezone' },
        },
        response: {
          type: 'Booking',
          description: 'Updated booking',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    
      deleteBooking: {
        path: '/v1/booking/deleteBooking',
        method: 'DELETE',
        description: 'Delete a booking',
        params: {
          id: { type: 'string', required: true, description: 'Booking ID' },
        },
        response: {
          type: '{message: string}',
          description: 'Deletion confirmation',
        },
        headers: ['x-api-key'],
      },
    
      getAccount: {
        path: '/v1/account/getAccount',
        method: 'GET',
        description: 'Get account information',
        response: {
          type: 'Account',
          description: 'Account object',
        },
        headers: ['x-api-key'],
      },
    
      updateAccount: {
        path: '/v1/account/updateAccount',
        method: 'PUT',
        description: 'Update account information',
        body: {
          name: { type: 'string', required: false, description: 'New account name' },
        },
        response: {
          type: 'Account',
          description: 'Updated account',
        },
        headers: ['x-api-key', 'Content-Type'],
      },
    };
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool lists endpoints but doesn't mention if it's read-only, safe, requires authentication, has rate limits, or what the output format looks like. This is a significant gap for a tool with zero annotation coverage.

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, efficient sentence that directly states the tool's purpose without any wasted words. It is appropriately sized and front-loaded, making it easy for an agent to parse quickly.

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

Completeness2/5

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

Given the tool's complexity is low (0 parameters), but with no annotations and no output schema, the description is incomplete. It doesn't explain what the return values look like (e.g., list format, endpoint details) or behavioral aspects, leaving gaps for the agent to infer.

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

Parameters4/5

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

The tool has 0 parameters, and schema description coverage is 100%, so there are no parameters to document. The description doesn't need to add parameter semantics, and a baseline score of 4 is appropriate for this case as it avoids misleading or redundant information.

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

Purpose4/5

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

The description clearly states the verb ('List') and resource ('all available Kalendis API endpoints with descriptions'), making the purpose specific and understandable. It doesn't explicitly differentiate from sibling tools like 'generate-api-routes', but the purpose is well-defined.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'generate-api-routes' or other sibling tools. It lacks context about prerequisites, timing, or exclusions, leaving the agent without usage direction.

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/kalendis-dev/kalendis-mcp'

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