Workyard MCP by usefulapi

v1.16.1
io.usefulapi/workyard Checked 2 days ago Published 10 hours ago

Read Workyard employees, projects, time cards and geofences; approve time cards and add notes.

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

workyard_get_organization Get Workyard organization

The organization this connection uses (id, name, settings such as timezone) from GET /orgs/{org_id}.

workyard_list_employees List Workyard employees

List employees of the organization (employee_id, profile_id, name, title, role, status, contact data). Filter by status (active, removed, saas_disabled, expired; comma list), email, role name or free-text search. Paged: use next_page.

ParameterTypeDescription
emailstringExact email filter (comma list allowed; sent as eq:...).
employee_idstringOne or more employee ids, comma separated.
limitintegerResults per page, 1-200 (Workyard default 100).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
role_namestringRole filter: worker, manager, admin (comma list; sent as eq:...).
searchstringFree-text search over name, email and identifier.
statusstringEmployee status filter: active, removed, saas_disabled, expired (comma list; sent as eq:...).

workyard_list_projects List Workyard projects

List projects (id, name, identifier, customer, locations). Optionally filter by name or archived state. Paged: use next_page.

ParameterTypeDescription
include_computed_totalsbooleanInclude computed totals per project.
is_archivedbooleantrue = archived projects only, false = active only (default: Workyard's default).
limitintegerProjects per page, 1-200 (default 25).
namestringProject name: a plain name matches names starting with it (like:name%); eq:... and like:... forms are passed through.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.

workyard_get_project Get Workyard project

One project by id (workyard_list_projects gives the ids).

ParameterTypeDescription
project_id *integerThe project id (org_project_id).

workyard_list_time_cards List Workyard time cards

List time cards (id, employee_id, start_dt_unix, end_dt_unix, status, approver, totals). Workyard returns only status=working when no status is given, so pass status (for example submitted,approved) for finished work. Filter by employee and by start time (unix seconds, interpreted in the organization timezone). Paged: use next_page; the reply also carries time_summary.

ParameterTypeDescription
employee_idstringOne or more employee ids, comma separated.
include_last_locationbooleanInclude the employee's last known location (personal data).
limitintegerResults per page, 1-200 (Workyard default 50).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
sort_bystringSort in Workyard syntax: asc: or desc: plus start_dt or updated_at, joined with +, e.g. desc:start_dt.
start_before_unixintegerTime card started before this unix time (seconds).
start_from_unixintegerTime card started at or after this unix time (seconds).
statusstringStatus filter such as working, submitted, approved or submitted,approved (sent as eq:...). Omitted = working only.
time_approver_idstringFilter by approver employee id(s).

workyard_get_time_card Get Workyard time card

One time card by id, with its details (workyard_list_time_cards gives the ids).

ParameterTypeDescription
time_card_id *integerThe time card id.

workyard_list_time_card_activity_segments List Workyard time card activity segments

The activity segments of one time card (where and on which project the employee worked, segment by segment). Not paged.

ParameterTypeDescription
time_card_id *integerThe time card id.
include_archived_projectsbooleanInclude segments of archived projects.

workyard_list_geofences List Workyard geofences (work sites)

List geofences / work sites (id, name, place, enabled, radius). Filter by name, enabled state or project. Paged: use next_page.

ParameterTypeDescription
enabledbooleanOnly enabled (true) or disabled (false) geofences.
limitintegerResults per page, 1-1000 (Workyard default 1000).
namestringGeofence name: a plain name matches names starting with it; eq:... and like:... forms are passed through.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
project_idstringOnly geofences of this project id (comma list allowed).

workyard_list_active_geofences List active Workyard geofences

All active geofences with limited data (Workyard: GET active_geofences). It does not say who is clocked in; use workyard_list_time_cards with status working for that.

workyard_list_geofence_projects List projects of a Workyard geofence

The projects attached to one geofence (work site). Paged: use next_page.

ParameterTypeDescription
geofence_id *integerThe geofence id (workyard_list_geofences gives the ids).
is_archivedbooleantrue = archived projects only.
limitintegerResults per page, 1-200 (Workyard default 50).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.

workyard_approve_time_card Approve a Workyard time card

WRITE: approve ONE time card (PATCH .../time_cards/{id}/approve). Approval feeds payroll in Workyard and may not be undoable through the API: only call it when the user asked to approve this exact time card.

ParameterTypeDescription
time_card_id *integerThe time card id to approve.

workyard_add_time_card_note Add a note to a Workyard time card

WRITE: add a text note to one time card (POST .../time_cards/{id}/notes). Adds a new note on every call; it does not edit or delete existing notes.

ParameterTypeDescription
description *stringThe note text.
time_card_id *integerThe time card id.