Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

list_timeclock

Track and manage technician clock-in/clock-out events for shop staff. Filter by user, location, date range, and paginate results to monitor work hours.

Instructions

List technician time clock events. Track clock-in/clock-out for shop staff.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdNoFilter by user/technician 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 handler implementation for the list_timeclock tool.
    async list_timeclock(args) {
      const params: Record<string, string> = {};
      if (args.userId !== undefined) params.userId = String(args.userId);
      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<TimeclockEntry[]>('GET', '/timeclock', undefined, params);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The tool definition and schema for list_timeclock.
    {
      name: 'list_timeclock',
      description: 'List technician time clock events. Track clock-in/clock-out for shop staff.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          userId: { type: 'string', description: 'Filter by user/technician 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