Go2Clock MCP by usefulapi

Read clock records, timesheets and rotas; change employees and rotas, add clock records in Go2Clock.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
83%
命名品質
78%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(1)

  • LOWTool 'go2clock_list_clock_records_range' name length outside 3-30 range在 go2clock_list_clock_records_range 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~2,185Token(工具定義)
~1.6 KB典型回應大小
中等的注意力影響(128k 上下文的 1.71%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "go2clock": {
      "url": "https://go2clock.usefulapi.io/mcp"
    }
  }
}

遠端端點

https://go2clock.usefulapi.io/mcpstreamable-http

它能做什麼

工具清單

工具(10)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢go2clock_list_users

List every clock user with id, name, department, shift, payroll number and manager flag. Clock PINs are removed. Go2Clock API: POST /api/users/.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢go2clock_list_employees

List employee details: contact, department, trade, pay rates, roles, start and termination dates. Go2Clock API: POST /api/employees/.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢go2clock_list_clock_records(punch_date)

List every clocking record (punch) for one date. Go2Clock API: POST /api/punches/ with punch_date.

輸入結構描述

{
  "type": "object",
  "properties": {
    "punch_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date to read, yyyy-mm-dd."
    }
  },
  "required": [
    "punch_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢go2clock_list_clock_records_range(start_date, end_date, userid)

List clocking records between two dates, optionally for one employee. Keep the range to 7 days or fewer per call; Go2Clock advises against larger pulls. Go2Clock API: POST /api/punches_range/.

輸入結構描述

{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "First date, yyyy-mm-dd."
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Last date, yyyy-mm-dd."
    },
    "userid": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Employee ID (userid), numeric."
    }
  },
  "required": [
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢go2clock_get_timesheet_csv(start_date, nodays, dept, userid)

Generate the timesheet report as CSV for up to 7 days, optionally for one department or one employee. Returns the CSV text. Go2Clock API: POST /api/timesheet_csv_v1.

輸入結構描述

{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "First day of the report, yyyy-mm-dd."
    },
    "nodays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 7,
      "description": "Number of days, 1 to 7."
    },
    "dept": {
      "description": "Department name to filter by (default: all departments).",
      "type": "string"
    },
    "userid": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Employee ID (userid), numeric."
    }
  },
  "required": [
    "start_date",
    "nodays"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢go2clock_get_rota(userid, start_date, end_date)

Read an employee's rota (shift schedule) between two dates: shift name, colour and planned hours per day. Go2Clock API: GET /api/employee_rota.

輸入結構描述

{
  "type": "object",
  "properties": {
    "userid": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Employee ID (userid), numeric."
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "First date, yyyy-mm-dd."
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Last date, yyyy-mm-dd."
    }
  },
  "required": [
    "userid",
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴go2clock_update_employee(userid, name, email, mobilenumber, deptname, ...)

Change some details of one existing employee. Send only the fields to change. Go2Clock API: PUT /api/employee_update. Does not change sign-in passwords or roles.

輸入結構描述

{
  "type": "object",
  "properties": {
    "userid": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Employee ID (userid), numeric."
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "email": {
      "type": "string",
      "maxLength": 100
    },
    "mobilenumber": {
      "type": "string",
      "maxLength": 20
    },
    "deptname": {
      "type": "string",
      "maxLength": 255
    },
    "tradename": {
      "type": "string",
      "maxLength": 255
    },
    "payrollno": {
      "type": "string",
      "maxLength": 50
    },
    "payrate": {
      "type": [
        "string",
        "number"
      ]
    },
    "hourlypay": {
      "type": [
        "string",
        "number"
      ]
    },
    "max_hours_week": {
      "type": [
        "string",
        "number"
      ]
    },
    "max_hours_day": {
      "type": [
        "string",
        "number"
      ]
    },
    "holiday_total_allowed": {
      "type": [
        "string",
        "number"
      ]
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "termination_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "termination_reason": {
      "type": "string"
    },
    "home_phone": {
      "type": "string"
    },
    "home_address": {
      "type": "string"
    },
    "peoplehr_employeeid": {
      "type": "string"
    },
    "sagehr_employeeno": {
      "type": "string"
    }
  },
  "required": [
    "userid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴go2clock_upload_employees(employees)

Upload a list of employees (new or changed). Go2Clock keys each record on userid. Sends a JSON array. Go2Clock API: PUT /api/employees/. Does not set passwords or roles.

輸入結構描述

{
  "type": "object",
  "properties": {
    "employees": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "userid": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Employee ID (userid), numeric."
          },
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "email": {
            "type": "string",
            "maxLength": 100
          },
          "mobilenumber": {
            "type": "string",
            "maxLength": 20
          },
          "deptname": {
            "type": "string",
            "maxLength": 255
          },
          "tradename": {
            "type": "string",
            "maxLength": 255
          },
          "payrollno": {
            "type": "string",
            "maxLength": 50
          },
          "peoplehr_employeeid": {
            "type": "string"
          },
          "shiftmon": {
            "type": "string",
            "maxLength": 255
          },
          "shifttue": {
            "type": "string",
            "maxLength": 255
          },
          "shiftwed": {
            "type": "string",
            "maxLength": 255
          },
          "shiftthu": {
            "type": "string",
            "maxLength": 255
          },
          "shiftfri": {
            "type": "string",
            "maxLength": 255
          },
          "shiftsat": {
            "type": "string",
            "maxLength": 255
          },
          "shiftsun": {
            "type": "string",
            "maxLength": 255
          },
          "start_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "termination_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "userid",
          "name"
        ]
      },
      "description": "Employees to create or update."
    }
  },
  "required": [
    "employees"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴go2clock_upload_clock_record(userid, checktime, checktype, sensorid, worktype, ...)

Add one clocking record (punch) for an employee. Go2Clock refuses a duplicate record. Go2Clock API: PUT /api/punches/.

輸入結構描述

{
  "type": "object",
  "properties": {
    "userid": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Employee ID (userid), numeric."
    },
    "checktime": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
      "description": "When the employee clocked, yyyy-mm-ddThh:mm:ss."
    },
    "checktype": {
      "description": "0 = in, 1 = out, or another number your instance uses.",
      "type": [
        "string",
        "number"
      ]
    },
    "sensorid": {
      "type": [
        "string",
        "number"
      ]
    },
    "worktype": {
      "description": "Job code number.",
      "type": [
        "string",
        "number"
      ]
    },
    "latitude": {
      "type": [
        "string",
        "number"
      ]
    },
    "longitude": {
      "type": [
        "string",
        "number"
      ]
    },
    "eventdescription": {
      "type": "string"
    },
    "deviceserial": {
      "type": "string"
    }
  },
  "required": [
    "userid",
    "checktime",
    "checktype"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴go2clock_create_rota(userid, start_date, shift_name, nodays)

Put a named shift on an employee's rota for one or more days from a start date. An existing rota entry on the same date is replaced. The shift name must match a shift in Go2Clock's shift settings. Go2Clock API: POST /api/employee_rota.

輸入結構描述

{
  "type": "object",
  "properties": {
    "userid": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Employee ID (userid), numeric."
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "First day of the shift, yyyy-mm-dd."
    },
    "shift_name": {
      "type": "string",
      "minLength": 1,
      "description": "Shift name exactly as set in Go2Clock shift settings."
    },
    "nodays": {
      "description": "Consecutive days from the start date (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "userid",
    "start_date",
    "shift_name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本10 個工具