Skip to main content
Glama

When I Work MCP by usefulapi

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. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes that this is a safe, non-mutating call, so the description's job here is lighter. It usefully discloses what comes back (breaks and publish state) plus the underlying endpoint (GET /2/shifts/{id}), but says nothing about auth requirements, rate limits, or behavior when the id does not resolve.

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 identification method and payload contents, with the endpoint appended as a compact reference. Nothing is padded or restated.

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

Completeness5/5

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

For a two-parameter, read-only lookup with a fully described schema, the description covers the missing output-schema gap by naming the notable return contents. An agent has everything needed to invoke it correctly without further documentation.

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%, so both shift_id and include_repeating_shifts_to are already fully documented, including the repeating-series expansion and date formats. The description only echoes the id-based lookup and adds no meaning beyond the schema, making the baseline 3 correct.

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

Purpose4/5

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

States a specific verb and resource with scope ('Fetch one shift by id') and adds what the payload contains ('including its breaks and publish state'), which cleanly separates it from the sibling wheniwork_list_shifts by cardinality. It never names a sibling explicitly, so an agent must infer the single-vs-list split, but the resource and scope are unambiguous.

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 only implied: an agent can infer this is the tool to call when it already has a shift id, versus wheniwork_list_shifts when it does not. There is no explicit when-to-use statement, no mention of the update/create siblings, and no note on when to pass include_repeating_shifts_to.

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.