Authenticate with the 7shifts API (OAuth 2.0, Bearer token + x-company-guid header).
GET the sales projection for a future date range using the Custom Sales Projections endpoint for each location; these values represent predicted revenue by daypart or day.
GET the published shift schedule for the same date range and location; each shift includes the employee, start/end times, position, and wage rate (if accessible via the API).
Calculate projected labor cost per shift by multiplying each shift's duration by the employee's hourly wage; sum by day and compare against the revenue projection to compute a labor-cost percentage.
POST updated sales projections to 7shifts if your external POS or forecasting system produces more accurate forward-looking numbers, which 7shifts will use to generate revised labor recommendations.
Surface the labor cost percentage as an alert if it exceeds a configured threshold (e.g., 30% of projected sales), triggering a manager notification to adjust the schedule.
Known gotchas
Wage rate data may not be available via the 7shifts API for privacy or permission reasons; you may need to maintain a separate employee wage lookup sourced from your payroll system.
Sales projections in 7shifts are per-location; if a location has multiple revenue centers (e.g., dine-in and takeout), the projection may aggregate them—verify the granularity matches your cost model.
Forecast accuracy degrades for dates far in the future; the pipeline should re-run daily as the schedule date approaches and actual sales data becomes available.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp