Skip to main content
Glama

Make a shift schedule

generate_shift_schedule
Read-onlyIdempotent

Use this when the user wants an employee schedule maker or work schedule maker: build a weekly staff or shift schedule for a restaurant, cafe, retail store, clinic front desk or similar from staff names, roles or skills, availability (days or times people cannot work), min/max hours, and the shifts to cover with headcount, e.g. "make a weekly schedule for 6 employees", "need 2 people on each shift, nobody over 40 hours", "make a rotating schedule so weekends are fair", "who should close on friday", "Sam cannot work Mondays". Accepts typed lists or an attached availability CSV/XLSX. A deterministic solver checks each hard rule (roles, availability, max hours, overtime cap, minimum rest between shifts, shifts per day, consecutive days), balances weekend and closing shifts, and when coverage is impossible returns each open shift with the binding reason. Returns hours per person, overtime flags, fairness ranges, and a printable PDF, Excel file and per-employee calendar (.ics) files. Overnight shifts and daylight-saving weeks are counted in real elapsed hours. Does not post schedules, message staff, track clock-ins or run payroll. Do not use for job searches or for checking a schedule the user already made (use check_schedule).

Input Schema

NameRequiredDescriptionDefault
staffNoThe team, one item per person (up to 80), e.g. [{"name":"Ana","roles":["cook"],"max_hours":40,"unavailable":["Sun"]}]. Can be combined with staff_file.
shiftsNoShifts to cover, e.g. [{"day":"Mon-Fri","start":"07:00","end":"15:00","role":"cook","headcount":2}]. Required unless the attached .xlsx has a Shifts sheet.
time_zoneNoThe business's time zone, IANA or US name, e.g. "America/Chicago", "Pacific". Default America/New_York. Used for daylight-saving weeks and calendar files.
staff_fileNoOptional staff availability spreadsheet the user attached (CSV or Excel .xlsx), e.g. availability.xlsx: a Name column plus Role, Max hours, Min hours, Unavailable, Preferred, and/or day columns (Mon..Sun) holding "off", "9-15" or blank for any time. An .xlsx may also hold a Shifts sheet (Day, Start, End, Role, Headcount).
week_startNoFirst day of the week to schedule, e.g. "2026-10-05". Default: next Monday. Dates pin calendar files and daylight-saving weeks to real hours.
business_nameNoOptional name printed on the PDF, e.g. "Blue Door Cafe".
allow_overtimeNofalse (default): nobody is scheduled past overtime_after_hours. true: overtime is allowed when needed for coverage, kept as low as possible, and flagged.
min_rest_hoursNoMinimum hours off between two shifts of the same person (the "clopening" rule), default 10, e.g. 8 or 11. 0 only blocks overlaps.
max_shifts_per_dayNoDefault shifts per person per day, default 1. Use 2 to allow split shifts (same-day shifts need no rest gap, only no overlap).
max_consecutive_daysNoMost days in a row anyone may work in this week, default 6, e.g. 5.
overtime_after_hoursNoWeekly hours after which time counts as overtime, default 40 (US federal FLSA workweek), e.g. 40. 0 turns overtime tracking off.

Output Schema

NameRequiredDescriptionDefault
weekYes
notesYes
rulesYes
staffYes
coverageYes
fairnessYes
scheduleYes
downloadsYes
assumptionsYes
open_shiftsYes
open_shifts_not_shownNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial context beyond the annotations: it explains the deterministic solver, which hard rules are checked, fairness balancing, what happens when coverage is impossible, and the output formats. It also clarifies operational boundaries such as not posting schedules, messaging staff, tracking clock-ins, or running payroll, consistent with the read-only and non-destructive annotations.

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

Conciseness4/5

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

The description is front-loaded with the primary use case and examples before moving into solver behavior, outputs, and exclusions. It is long but dense with relevant information for a complex scheduling tool, with little repetition, though the example list could be trimmed slightly without losing clarity.

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?

Given the tool's complexity, nested schema, and output schema, the description is complete enough for an agent to invoke it confidently. It covers inputs, solver behavior, edge cases like overnight shifts and daylight-saving weeks, output artifacts, and explicit non-goals.

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 the schema already documents all 11 parameters in detail. The description reinforces major input categories such as staff, roles, availability, min/max hours, shifts, and attached CSV/XLSX files, but does not add syntax or constraints beyond what the schema already provides. Baseline 3 is appropriate when the schema carries the parameter documentation.

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: build a weekly staff or shift schedule from staff, availability, hour limits, and shift coverage. It explicitly distinguishes itself from check_schedule and rules out job searches and payroll-related tasks, so an agent can identify its purpose without opening the schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance with several concrete user scenarios, including examples like "make a weekly schedule for 6 employees" and "Sam cannot work Mondays." It also states when not to use it and points to check_schedule for checking an existing schedule.

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.

Resources