When I Work MCP by usefulapi
io.usefulapi/when-i-work
Serveur MCP OK 21 outils
Check shifts, time clock entries, time-off requests, swaps and availability, and manage shifts.
Fiche technique
- Auteur
- usefulapi.io (espace de noms du registre)
- Dépôt
- github.com/m190/usefulapi-mcp
- Site
- usefulapi.io/when-i-work
- Version
- 1.40.6
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://when-i-work.usefulapi.io/mcp Streamable HTTP
- Outils
- 21
- Catégories
- —
- Dernière mise à jour
- 24 nov. 2026
- Publication
- 24 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.usefulapi/when-i-work)<a href="https://latlas.dev/mcp/io.usefulapi/when-i-work"><img src="https://latlas.dev/badge/fiche/io.usefulapi/when-i-work.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://when-i-work.usefulapi.io/mcp
- Dernier résultat
- OK 28 nov. 2026, 10:55
- Temps de réponse
- 1 242 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- when-i-work-mcp 1.40.6
- Outils
- 21
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 10:55 | OK | 1 242 ms | 21 |
Outils exposés (21, réponse à tools/list, 28 nov. 2026)
wheniwork_get_account
Get the account
Fetch the When I Work account (workplace) the token acts on — company name, plan and settings; for a parent account also its child accounts. A cheap way to confirm the credentials work. When I Work: GET /2/account.
Aucun paramètre.
wheniwork_list_users
List users
List the employees, supervisors, managers and admins in the account, optionally limited to some schedules or searched by name/email. Returns 25 per call by default; page with offset (next_offset is null on the last page). Role codes: 1 admin, 2 manager, 3 employee, 5 supervisor. When I Work: GET /2/users.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| location_id | array<integer> | non | One or more schedule (location) ids. |
| search | string | non | Search first name, last name or email. |
| show_pending | boolean | non | Include users who have not accepted their invite (default true). |
| only_pending | boolean | non | Only pending users. |
| show_deleted | boolean | non | Include deleted users (supervisor or above). |
| only_deleted | boolean | non | Only deleted/archived users (supervisor or above). |
| limit | integer | non | Records to return, 1-100 (default 25). |
| offset | integer | non | Records to skip, for paging (default 0; use next_offset from the previous reply). |
wheniwork_get_user
Get one user
Fetch one user by id — name, email, role, positions, schedules, wage. When I Work: GET /2/users/{id}.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| user_id | integer | oui | The user id. |
wheniwork_list_locations
List schedules (locations)
List the schedules in the account. The API calls a schedule a "location"; its id is the location_id every shift belongs to. When I Work: GET /2/locations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| only_unconfirmed | boolean | non | Only schedules whose address is unconfirmed. |
wheniwork_list_positions
List positions
List the positions (job roles such as Cashier or Dishwasher) in the account. When I Work: GET /2/positions.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| show_deleted | boolean | non | Include deleted positions. |
wheniwork_list_shifts
List shifts
List scheduled shifts in a time window — who works when, where and in which position — optionally including open shifts and unpublished drafts. Answers "who is on on Friday?" and "what open shifts are left?". Returns up to 25 shifts by default (limit up to 1000); narrow the window to see more. When I Work: GET /2/shifts.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | Start of the window. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| end | string | non | End of the window. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| user_id | integer | non | Only this user's shifts. |
| location_id | array<integer> | non | One or more schedule (location) ids. |
| all_locations | boolean | non | Include shifts from all schedules. |
| unpublished | boolean | non | Include unpublished (draft) shifts — supervisor or above. |
| include_open | boolean | non | Include open (unassigned) shifts from the user's schedules. |
| include_onlyopen | boolean | non | Return only open shifts. |
| include_allopen | boolean | non | Include open shifts across all schedules — manager or admin. |
| include_swaps | boolean | non | Include swap requests attached to the shifts. |
| deleted | boolean | non | Also return deleted_ids: shifts deleted in the window. |
| include_repeating_shifts_to | string | non | Also expand repeating shift series up to this date. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| limit | integer | non | Maximum number of shifts to return, 1-1000 (default 25). |
wheniwork_get_shift
Get one shift
Fetch one shift by id, including its breaks and publish state. When I Work: GET /2/shifts/{id}.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| shift_id | integer | oui | The shift id. |
| include_repeating_shifts_to | string | non | Also expand the shift's repeating series up to this date. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
wheniwork_list_eligible_users_for_shift
List users eligible for an open shift
Find who could take an open shift — either an existing shift (shift_id) or a hypothetical one (start, end, position_id and location_id all required). When I Work: GET /2/shifts/eligible.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| shift_id | integer | non | An existing shift's id. |
| start | string | non | Start of the potential shift (required without shift_id). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| end | string | non | End of the potential shift (required without shift_id). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| position_id | integer | non | Position of the potential shift (required without shift_id). |
| location_id | integer | non | Schedule of the potential shift (required without shift_id). |
| is_shared | boolean | non | Whether it is a shared open shift. |
| include_objects | boolean | non | Include the users' schedules and positions in the output. |
wheniwork_list_times
List clocked times (timesheets)
List clocked time entries — actual hours worked, clock-in/out times, length and approval state. Use only_open to see who is clocked in right now. Returns 25 per call by default; page with offset (next_offset is null on the last page). When I Work: GET /2/times.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | Start of the window. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| end | string | non | End of the window. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| user_id | array<integer> | non | One or more user ids. |
| only_open | boolean | non | Only times with no end yet (people currently clocked in). |
| updated_at | string | non | Only times updated since this timestamp. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| limit | integer | non | Records to return, 1-100 (default 25). |
| offset | integer | non | Records to skip, for paging (default 0; use next_offset from the previous reply). |
wheniwork_list_time_off_requests
List time-off requests
List time-off requests in a date range, with the requesting users. Status: 0 pending, 1 canceled, 2 accepted, 3 expired, 4 denied. When I Work: GET /2/requests.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | Start date, yyyy-mm-dd. |
| end | string | non | End date, yyyy-mm-dd. |
| user_id | array<integer> | non | One or more user ids. |
| location_id | integer | non | Only requests for this schedule. |
| status | integer | non | Only requests with this status. |
| type | integer | non | Only this request type. |
| sortby | string | non | 'created' sorts newest first; anything else sorts by status then last update. |
| include_deleted_users | boolean | non | Include requests made by deleted users. |
| since_id | integer | non | Only requests created after this request id. |
| max_id | integer | non | Only requests created before this request id. |
| limit | integer | non | Maximum number of results. |
| page | integer | non | Page of results to load (the response says whether there are `more`). |
wheniwork_get_time_off_request
Get one time-off request
Fetch one time-off request by id, with its message thread and users. When I Work: GET /2/requests/{request_id}.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| request_id | integer | oui | The time-off request id. |
wheniwork_list_time_off_types
List time-off types
List the time-off types (e.g. Personal, Sick, Holiday) and whether each allows paid time. Their ids are the type_id for a new request. When I Work: GET /2/requesttypes.
Aucun paramètre.
wheniwork_list_shift_swaps
List shift swaps and drops
List shift requests: swaps, drops and alerts, with the shifts and users involved. Status: 0 pending, 1 approved, 2 declined, 3 completed, 4 canceled, 5 expired. Type: 1 swap, 2 drop, 3 alert. start and end must be given together. When I Work: GET /2/swaps.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | Start of the shift window (give with end). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| end | string | non | End of the shift window (give with start). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| user_id | array<integer> | non | One or more user ids. |
| shift_id | array<integer> | non | One or more shift ids. |
| status | array<integer> | non | One or more statuses. |
| type | array<integer> | non | One or more types. |
| open_only | boolean | non | Only open swaps. |
| limit | integer | non | Maximum number of results. |
| page | integer | non | Page of results to load (the response says whether there are `more`). |
wheniwork_list_availability
List availability
List availability events — when people said they can or cannot work, including recurring patterns that fall in the window. Defaults to the caller, from now to two weeks out. When I Work: GET /2/availabilityevents.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | Start of the window (default now). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| end | string | non | End of the window (default two weeks from now). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| user_id | integer | non | Whose availability (default the calling user). |
| include_all | boolean | non | Everyone's availability, not just one user's — managers only. |
wheniwork_list_annotations
List schedule annotations
List schedule annotations — announcements, business-closed days and blackout dates when time off is not allowed. Defaults to today through one year out. When I Work: GET /2/annotations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start_date | string | non | Start of the range (default the start of today). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| end_date | string | non | End of the range (default one year after start). Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |
| no_time_off | boolean | non | Only annotations that block time off. |
wheniwork_create_shift
Create a shift
Create one shift on a schedule — assigned to a user, or open (user_id 0). Created as a draft unless published is true. Undo by editing it or unpublishing. When I Work: POST /2/shifts.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| location_id | integer | oui | The schedule (location) the shift belongs to id. |
| start_time | string | oui | Shift start, date-time with offset, e.g. 2026-10-05T08:00:00-05:00. |
| end_time | string | oui | Shift end, date-time with offset. |
| user_id | integer | non | The user to assign. 0 (or omitted on create) makes it an open shift. |
| position_id | integer | non | Position for the shift. |
| site_id | integer | non | Job site for the shift. |
| break_time | number | non | Unpaid break length in hours, e.g. 0.5. |
| notes | string | non | Shift notes shown to the employee. |
| color | string | non | Hex colour without #, e.g. cc0000. |
| published | boolean | non | Publish it immediately (default: draft). |
| is_shared | boolean | non | For an open shift: a shared open shift. |
wheniwork_update_shift
Update a shift
Change a shift — reassign it, move it, change position or notes. When I Work requires start_time, end_time and location_id on every update, so fetch the shift first and pass them back. This tool never sends a breaks array; When I Work documents that breaks omitted from an update's breaks list are removed, so re-check the shift's breaks afterwards. When I Work: PUT /2/shifts/{id}.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| shift_id | integer | oui | The shift id. |
| location_id | integer | oui | The schedule (location) id. |
| start_time | string | oui | Shift start (required by the API even if unchanged). |
| end_time | string | oui | Shift end (required by the API even if unchanged). |
| user_id | integer | non | The user to assign. 0 (or omitted on create) makes it an open shift. |
| position_id | integer | non | Position for the shift. |
| site_id | integer | non | Job site for the shift. |
| break_time | number | non | Unpaid break length in hours, e.g. 0.5. |
| notes | string | non | Shift notes shown to the employee. |
| color | string | non | Hex colour without #, e.g. cc0000. |
| published | boolean | non | Publish it immediately (default: draft). |
| is_shared | boolean | non | For an open shift: a shared open shift. |
wheniwork_publish_shifts
Publish shifts
Publish draft shifts so employees can see them. Publishing does not itself send notifications. Undo with wheniwork_unpublish_shifts. When I Work: POST /2/shifts/publish.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| ids | array<integer> | oui | The shift ids to publish. |
wheniwork_unpublish_shifts
Unpublish shifts
Return published shifts to draft, hiding them from employees. Undo with wheniwork_publish_shifts. When I Work: POST /2/shifts/unpublish.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| ids | array<integer> | oui | The shift ids to unpublish. |
wheniwork_create_time_off_request
Create a time-off request
Create a time-off request for a user (default the calling user). It starts pending; cancel it with wheniwork_update_time_off_request (status 1). Get type ids from wheniwork_list_time_off_types. When I Work: POST /2/requests.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start_time | string | oui | Start of the time off, full date-time. |
| end_time | string | oui | End of the time off, full date-time. |
| user_id | integer | non | Who is taking time off (default the calling user). |
| type_id | integer | non | Time-off type id (Personal, Sick, Holiday...). |
| paid | boolean | non | Whether it is paid time off. |
| hours | number | non | Hours of paid time off to use. |
wheniwork_update_time_off_request
Approve, deny or change a time-off request
Change a time-off request: set its status (0 pending, 1 canceled, 2 accepted/approved, 3 expired, 4 denied) and/or its dates or hours. Reversible — set the status back. start_time and end_time must be given together. When I Work: PUT /2/requests/{request_id}.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| request_id | integer | oui | The time-off request id. |
| status | integer | non | New status. |
| start_time | string | non | New start, full date-time (give with end_time). |
| end_time | string | non | New end, full date-time (give with start_time). |
| hours | number | non | Hours of paid time off to use. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://when-i-work.usefulapi.io/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http when-i-work https://when-i-work.usefulapi.io/mcpCustomize > Connectors > + Add > Add custom connector ; Name : when-i-work ; URL : https://when-i-work.usefulapi.io/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : when-i-work ; Server URL : https://when-i-work.usefulapi.io/mcp ; Create as a plugin{
"mcpServers": {
"when-i-work": {
"url": "https://when-i-work.usefulapi.io/mcp"
}
}
}{
"mcpServers": {
"when-i-work": {
"type": "http",
"url": "https://when-i-work.usefulapi.io/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"when-i-work": {
"url": "https://when-i-work.usefulapi.io/mcp"
}
}
}{
"mcpServers": {
"when-i-work": {
"httpUrl": "https://when-i-work.usefulapi.io/mcp"
}
}
}[mcp_servers.when-i-work]
url = "https://when-i-work.usefulapi.io/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
When I Work MCP by usefulapi · L’Atlas · Test du
[When I Work MCP by usefulapi — L’Atlas](https://latlas.dev/mcp/io.usefulapi/when-i-work)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.