Protime MCP by usefulapi

v1.9.1
io.usefulapi/protime Checked 1 day ago Published 7 hours ago

Read clockings, absences, assignments, contracts, people and departments in Protime.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

protime_list_clockings List clockings

List time clockings (in/out, reasons, activities) for a date range. Deleted clockings have status Deleted. Location data is left out. A date range is required (at most one year). Returns one page: pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-clockings.read.

ParameterTypeDescription
from *stringFirst day, yyyy-mm-dd.
to *stringLast day, yyyy-mm-dd.
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).
kindstring
personarrayInternal person IDs. Leave out for all people.

protime_list_absences List absences

List absence instances (leave, sickness) for a date range. A date range is required (at most one year). Returns one page: pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-absences.read.

ParameterTypeDescription
from *stringFirst day, yyyy-mm-dd.
to *stringLast day, yyyy-mm-dd.
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).
personarrayInternal person IDs. Leave out for all people.

protime_list_assignments List assignments

List work assignments (planned and registered activities) for a date range. A date range is required. Returns one page: pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-assignments.read.

ParameterTypeDescription
from *stringFirst day, yyyy-mm-dd.
to *stringLast day, yyyy-mm-dd.
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).
personarrayInternal person IDs. Leave out for all people.

protime_list_contracts List contracts

List employment contracts (percentage, hours, dates). Optional person filter. Returns one page: pass continuationToken for the next. Read only. Needs scope connector-protimeapi-contracts.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).
personarrayInternal person IDs. Leave out for all people.

protime_list_people List people

List people with name, work email and service dates. Home address, birth date, bank, passport and social security data are never returned. Optional person filter. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-people.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).
personarrayInternal person IDs. Leave out for all people.

protime_list_departments List departments

List all departments configured in the tenant. No filters. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-departments.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).

protime_list_jobs List jobs

List all jobs configured in the tenant. No filters. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-jobs.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).

protime_list_work_locations List work locations

List all work locations configured in the tenant. No filters. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-work-locations.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).

protime_list_shift_definitions List shift definitions (codes and names)

List all shift definitions (codes and names) configured in the tenant. No filters. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-shift-definitions.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).

protime_list_absence_definitions List absence definitions (codes, groups)

List all absence definitions (codes, groups) configured in the tenant. No filters. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-absence-definitions.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).

protime_list_absence_groups List absence groups

List all absence groups configured in the tenant. No filters. Pass continuationToken for the next page. Read only. Needs scope connector-protimeapi-absence-groups.read.

ParameterTypeDescription
continuationTokenstringcontinuationToken from the previous page (use the same other arguments).

protime_get_person Get person

Get one person by internal ID: name, work email, service dates. Sensitive personal data is never returned. Read only. Needs scope connector-protimeapi-people.read.

ParameterTypeDescription
id *integer