Skip to main content
Glama

When I Work MCP by usefulapi

Create a shift

wheniwork_create_shift
Destructive

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNoHex colour without #, e.g. cc0000.
notesNoShift notes shown to the employee.
site_idNoJob site for the shift.
user_idNoThe user to assign. 0 (or omitted on create) makes it an open shift.
end_timeYesShift end, date-time with offset.
is_sharedNoFor an open shift: a shared open shift.
publishedNoPublish it immediately (default: draft).
break_timeNoUnpaid break length in hours, e.g. 0.5.
start_timeYesShift start, date-time with offset, e.g. 2026-10-05T08:00:00-05:00.
location_idYesThe schedule (location) the shift belongs to id.
position_idNoPosition for the shift.

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

A4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true and a title; the description adds meaningful behavior — default draft state unless published=true, the open-shift option, and the undo path. It does not explain what 'destructive' entails for a create operation or mention permissions, but it adds real context beyond the annotation.

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?

Three tight sentences, front-loaded with the action and its scope, followed by lifecycle and undo detail. No wasted words.

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?

Given 11 params, 100% schema coverage, and no output schema, the description covers the key lifecycle facts (draft/published, open/assigned, undo). It stops short of describing the return payload or auth needs, but the schema does most of the heavy lifting.

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 each parameter is already documented. The description's notes on user_id 0 (open shift) and published duplicate schema text rather than extending it, so baseline 3 is appropriate.

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?

States a specific verb and resource ('Create one shift on a schedule') and clarifies the two variants (assigned vs open). This is clearly distinguishable from siblings like update_shift, publish_shifts, and unpublish_shifts without opening any 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?

Implies usage context (draft vs published, open vs assigned), and 'Undo by editing it or unpublishing' gestures toward update_shift and unpublish_shifts as alternatives. However, it never states when an agent should prefer publish_shifts at creation time versus publishing later, nor any prerequisites.

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.