Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

list_appointments

Retrieve and filter scheduled appointments from Shopmonkey's automotive shop management system by customer, location, date range, or pagination parameters.

Instructions

List appointments from Shopmonkey. Supports filtering and pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerIdNoFilter appointments by customer ID
locationIdNoFilter by location ID. Defaults to SHOPMONKEY_LOCATION_ID env var if set.
startDateNoFilter by start date (ISO 8601 format)
endDateNoFilter by end date (ISO 8601 format)
limitNoMaximum number of results to return (default: 25)
pageNoPage number for pagination (default: 1)

Implementation Reference

  • The actual implementation handler for list_appointments.
    async list_appointments(args) {
      const params: Record<string, string> = {};
      if (args.customerId !== undefined) params.customerId = String(args.customerId);
      if (args.locationId !== undefined) params.locationId = String(args.locationId);
      if (args.startDate !== undefined) params.startDate = String(args.startDate);
      if (args.endDate !== undefined) params.endDate = String(args.endDate);
      if (args.limit !== undefined) params.limit = String(args.limit);
      if (args.page !== undefined) params.page = String(args.page);
      applyDefaultLocation(params);
    
      const data = await shopmonkeyRequest<Appointment[]>('GET', '/appointment', undefined, params);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The tool schema definition for list_appointments.
    {
      name: 'list_appointments',
      description: 'List appointments from Shopmonkey. Supports filtering and pagination.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          customerId: { type: 'string', description: 'Filter appointments by customer ID' },
          locationId: { type: 'string', description: 'Filter by location ID. Defaults to SHOPMONKEY_LOCATION_ID env var if set.' },
          startDate: { type: 'string', description: 'Filter by start date (ISO 8601 format)' },
          endDate: { type: 'string', description: 'Filter by end date (ISO 8601 format)' },
          limit: { type: 'number', description: 'Maximum number of results to return (default: 25)' },
          page: { type: 'number', description: 'Page number for pagination (default: 1)' },
        },
      },
    },

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/AbbottDevelopments/shopmonkey-mcp-server'

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