Skip to main content
Glama

Get one shift

wheniwork_get_shift
Read-only

Fetch one shift by id, including its breaks and publish state. When I Work: GET /2/shifts/{id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shift_idYesThe shift id.
include_repeating_shifts_toNoAlso 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").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnlyHint=true), and the description adds real behavioral value by disclosing what the response contains (breaks and publish state) and the REST mapping. It stops short of noting auth requirements or error behavior, so it is not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action and benefit, with the endpoint mapping trailing. No filler words and nothing redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-resource read tool with 100% schema coverage and annotations carrying the safety profile, this is nearly complete; calling out breaks and publish state partially compensates for the absent output schema. Only missing pieces are auth/error expectations, which are minor here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% – both shift_id and include_repeating_shifts_to are already well documented, including date-time formats. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Fetch one shift by id') and even names the underlying endpoint (GET /2/shifts/{id}). The word 'one' plus the id requirement cleanly separates it from wheniwork_list_shifts without needing the sibling's schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'by id' – an agent can infer this is the single-record lookup versus list_shifts – but there is no explicit when-to-use/when-not guidance or mention of the alternative tools. Minimum viable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.