Skip to main content
Glama
wspotter

MCP Art Supply Store

by wspotter

check_appointments

View scheduled appointments for specific dates or customers to manage your art supply store's calendar and customer bookings.

Instructions

Check scheduled appointments for a specific date or customer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format (default: today)

Implementation Reference

  • Tool schema definition including name, description, and input schema for the check_appointments tool. Part of the tools array returned by ListToolsRequestHandler.
      name: 'check_appointments',
      description: 'Check scheduled appointments for a specific date or customer.',
      inputSchema: {
        type: 'object',
        properties: {
          date: { type: 'string', description: 'Date in YYYY-MM-DD format (default: today)' },
        },
      },
    },
  • Handler implementation for check_appointments tool. Filters mock appointments data by date and returns formatted text response.
    case 'check_appointments': {
      const date = String(args?.date || new Date().toISOString().split('T')[0]);
      const appointments = storeData.appointments.filter(a => a.date === date);
      
      return {
        content: [{
          type: 'text',
          text: appointments.length > 0
            ? `📅 Appointments for ${date}:\n\n${appointments.map(apt =>
                `⏰ ${apt.time} - ${apt.service}\n👤 Customer: ${apt.customerName}\n⏱️ Duration: ${apt.duration}`
              ).join('\n\n')}`
            : `No appointments scheduled for ${date}`
        }]
      };
  • Mock appointments data used by the check_appointments handler.
    appointments: [
      { id: 'APT001', customerName: 'Sarah Martinez', service: 'Custom Framing Consultation', date: '2025-10-05', time: '14:00', duration: '30 min' },
      { id: 'APT002', customerName: 'Lisa Park', service: 'Art Technique Workshop', date: '2025-10-06', time: '10:00', duration: '2 hours' },
    ],
  • src/index.ts:516-518 (registration)
    Registration of all tools list including check_appointments via ListToolsRequestHandler.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools };
    });
  • src/dashboard.ts:58-58 (registration)
    Mock tool registration in the dashboard server for UI display.
    { name: 'check_appointments', description: 'View appointments', category: 'Operations' },

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/wspotter/mcpart'

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