← All engines

RUST ENGINE / solve_schedule

Constraint programming shift scheduling with minimal UNSAT core

Solve shift rostering and team scheduling under skills, off-days, forbidden consecutive shift transitions, max consecutive days and min/max shifts, with exact Branch-and-Bound optimization and minimal UNSAT core diagnosis.

In short. solve_schedule is a ScoreCompute MCP tool computed in Rust (Shift scheduling (CP)). Provide spec (5 to 16,384 characters): days N or day labels (1–31), shifts S1,S2,... Bounded exact CP search (up to 31 days, 6 shifts, 32 workers, 256 required slots, 150,000 nodes and 3,500 ms wall time); budget expiry fails closed as feasible or inconclusive. It is callable at https://scorecompute.com/mcp over MCP Streamable HTTP, without an API key for bounded public access.

Open the solve_schedule demonstration ↗Try the live calculation ↗Connect an AI assistant →

What does a real call return?

For 6 workers across 7 days (21 required shift slots with skills, off-days, forbidden N → M transitions and a 4-day consecutive cap), Rust returned optimal with fairness spread 1 (3–4 shifts per worker), soft penalty 0 (1/1 preferences met, 0 avoids violated), and verified_independently: true in 67 search nodes.

Recorded on 26 November 2026 through a local MCP endpoint on a build of this release, before its publication, service release 0.21.0. Inputs and full responses, response SHA-256 27e9a76ec02b…. Verdict values are the literal values the tool returns. Run the same inputs yourself to compare; elapsed times vary, and a new release may change the figures.

Checked against

Recorded on release 0.22.0. These checks cover the listed cases, not every input. Evidence cards.

How it works

The specification is parsed into discrete calendar days, shift codes, worker domains, additive coverage needs, forbidden consecutive-day transitions, consecutive-day caps and optional soft prefer/avoid rules. A pure-Rust exact Constraint Programming solver (minimum remaining values variable ordering, symmetry breaking across identical slots, bitmask forward checking and admissible Branch-and-Bound lower bounds in exact 64-bit integers) minimizes fairness spread, total cost or soft preference penalties. Every returned schedule is checked again by a separate zero-trust verifier. When no valid schedule exists, deletion-based MUS minimization extracts an inclusion-minimal subset of conflicting constraints.

Inputs and units

Provide spec (5 to 16,384 characters): days N or day labels (1–31), shifts S1,S2,... (1–6), worker lines with optional skills=, min=, max=, max_consec=, cost=, off= (1–32 workers), need lines with optional skill= and days= (up to 256 required shift slots), forbid S1 -> S2 rules, max_consecutive K, optional prefer/avoid soft rules and objective balanced|min_cost|preferences. Optional detail selects summary or full.

What the result contains

status (optimal, feasible, infeasible or inconclusive), day-by-day shift assignments, per-worker totals and consecutive-day streaks, fairness spread, total cost, soft penalty and objective score, an inclusion-minimal unsat_core and plain-language diagnosis when infeasible, work_report with verified_independently, canonical SHA-256 digest and explicit limitations.

Example MCP call

{
  "name": "solve_schedule",
  "arguments": {
    "spec": "days Mon,Tue,Wed,Thu,Fri,Sat,Sun; shifts M, E, N; worker alice skills=rn,icu min=2 max=5 off=Sat,Sun; worker bob skills=rn min=2 max=5 off=Mon; worker carol skills=icu min=2 max=4; worker dave skills=rn,icu min=2 max=5; worker eve skills=rn min=2 max=5; worker frank skills=icu min=2 max=5; need M 1 skill=rn; need E 1; need N 1 skill=icu; forbid N -> M; max_consecutive 4; avoid alice day=Fri shift=N; prefer bob shift=M; objective balanced;"
  }
}

Send this tool name and arguments through a connected MCP client. Discover the authoritative input schema with tools/list.

Call this engine in one command

Node.js 20+ and npm. This downloads a small remote MCP client; it does not install the engine locally.

npx --yes --package https://scorecompute.com/downloads/scorecompute-call-0.14.2.tgz scorecompute-call solve_schedule --arguments '{"spec":"days Mon,Tue,Wed,Thu,Fri,Sat,Sun; shifts M, E, N; worker alice skills=rn,icu min=2 max=5 off=Sat,Sun; worker bob skills=rn min=2 max=5 off=Mon; worker carol skills=icu min=2 max=4; worker dave skills=rn,icu min=2 max=5; worker eve skills=rn min=2 max=5; worker frank skills=icu min=2 max=5; need M 1 skill=rn; need E 1; need N 1 skill=icu; forbid N -> M; max_consecutive 4; avoid alice day=Fri shift=N; prefer bob shift=M; objective balanced;"}'

Client download, PowerShell input and verification →

Direct MCP access

solve_schedule is independently callable. It is deliberately not connected to the automatic planner, so nothing passes its results to another engine for you. Two tools returning similar JSON fields does not mean their results are compatible.

Cite this engine

Version 0.1.0, source SHA-256 b4f4dce97250…. Evidence recorded on release 0.22.0; the public service currently runs 0.22.0. Replace the access date when you cite it.

ScoreCompute. Constraint programming shift scheduling with minimal UNSAT core (solve_schedule), version 0.1.0, source SHA-256 b4f4dce97250ebd8cbfaed4ac2bf691371188e9d00ceef9b8fe3162f3ec4b5bc. Evidence release 0.22.0, service release 0.22.0. https://scorecompute.com/engines/solve-schedule/ (accessed YYYY-MM-DD).

All engine citations · Evidence card

Execution and availability

ScoreCompute exposes this tool through MCP Streamable HTTP. Rust computation runs on a connected worker; the public website and MCP gateway run separately. Among these 28 scientific tools, CUDA is implemented for simulate_pi; the other scientific engines run on CPU. The separate contributor network runs two compiled public workloads: a π estimate and fixed synthetic schedule probes. Requests are bounded and concurrent work may be refused when capacity is occupied.

Record inputs, assumptions and returned provenance when sharing a result. The public observatory displays software client names and tool activity, without publishing calculation arguments or results.

Explore another engine →Agent-readable overview ↗

Sources

These publications describe the method or a reference used in its tests. Citing them does not certify this implementation.

First published 26 November 2026 · Last updated 26 November 2026