QueueSim
Official11 toolsby queuesim
Run M/M/c queue simulations and four scenarios (call center, ER, coffee shop, single server).
Run M/M/c queue simulations for call centers, emergency rooms, coffee shops, and servers.
Captured live from the server via tools/list.
simulate_mmc
Run a generic M/M/c queue simulation. Provide an arrival rate (λ, arrivals/hour), a service rate per server (μ, customers/hour each server can finish), and a server count (c). Optional: distribution shapes, service coefficient of variation, run length. Returns per-hour metrics and an overall summary (avg wait, queue length, offered load, throughput). This is the primary tool for 'how many servers do I need?' / 'what's my average wait?' style questions. ALSO preferred over simulate_scenario for what-if questions about scheduled scenarios (Coffee Shop) when the user wants flat uniform numbers — pull the peak params from describe_scenario and run them here. That usually matches user intent better than collapsing a schedule. ANTI-FABRICATION: the returned numbers come from a real discrete-event simulation run. Quote them VERBATIM in your reply. Do not round, estimate, or compute derived figures from training-data recall. If the user asks a follow-up about the same configuration, re-call this tool rather than recalling numbers from earlier in the conversation.
Parameters (7)
- arrivalRatenumberrequired
Mean arrivals per hour (λ). Any positive value up to 200.
- serviceRatenumberrequired
Mean customers one server can finish per hour (μ). Must be > 0.
- serversintegerrequired
Number of parallel servers (c). Integer 1-50.
- arrivalDistributionstring
Shape of inter-arrival times. 'Exponential' = Poisson process (default). 'Constant' = evenly-spaced.
- serviceDistributionstring
Shape of service-time distribution. 'Exponential' = classical M/M/c (default).
- serviceCoVnumber
Coefficient of variation for service time — used when serviceDistribution is 'Normal' or 'LogNormal'. Ignored for Exponential/Constant. Range 0-5.
- simulationDaysinteger
Days to simulate (default 7). Range 1-30 — longer runs are not supported on the public surface; for production-scale studies contact queuesim@chiaha.com.
list_scenarios
List the four pre-built QueueSim scenarios. Returns key, title, and one-line description for each (Single Server, Coffee Shop, Grocery Checkout, Call Center). Call this when the user's problem matches one of the preset shapes — use describe_scenario for more detail and simulate_scenario to run one.
No parameters.
describe_scenario
Return full details for one preset scenario: title, description, teaching note, peak parameters, and per-hour arrival + staffing arrays. Use this before simulate_scenario to understand the default shape and what overrides make sense.
Parameters (1)
- namestringrequired
Scenario key from list_scenarios.
simulate_scenario
Run one of the four preset scenarios (single, coffee, grocery, callcenter) with optional overrides. Overrides apply UNIFORMLY across open hours — e.g. setting servers=5 on 'coffee' replaces the 4/6/4 staffing pattern with a flat 5 during open hours (closed hours stay at zero). Use this for (a) faithful reproduction of a scenario's defaults, or (b) uniform scaling (everywhere it was open, use these new numbers). Do NOT use this when the user wants to keep a scheduled scenario's shape but tweak just one part — there's no per-hour override here, and collapsing a 4/6/4 pattern to 5 often isn't what the user meant. For flat what-if analysis on scheduled scenarios, prefer simulate_mmc using peak params from describe_scenario. ANTI-FABRICATION: returned numbers come from a real discrete-event simulation run. Quote them VERBATIM in your reply. Do not round, estimate, or compute derived figures from training-data recall. If the user asks a follow-up about the same scenario+overrides, re-call this tool rather than recalling numbers from earlier in the conversation.
Parameters (2)
- namestringrequired
Scenario key from list_scenarios.
- overridesobject
Optional overrides applied uniformly across open hours (closed hours preserved at zero for scheduled scenarios). All fields optional — leave empty to run the scenario's published defaults.
simulate_schedule
Run a queueing simulation against an arbitrary 24-hour staffing schedule. Take this when the user describes a custom day shape that doesn't match a preset (e.g., 'my coffee shop is open 6am–10pm with 4 baristas off-peak, 7 at the 8am rush, 5 at the 4pm rush'). Inputs: `arrivalRates` (24-element array of customers/hr per hour-of-day) and `staffing` (24-element array of servers/hr); optional uniform `serviceTimeMinutes`. Use 0 in both arrays for closed hours (terminating system). Returns the same per-hour metrics + summary shape as simulate_mmc / simulate_scenario. Stronger fit than simulate_scenario when the user's shape doesn't match the four presets; stronger fit than simulate_mmc when they need per-hour variation. ANTI-FABRICATION: numbers come from a real DES run. Quote them VERBATIM. Do not round, estimate, or derive from training-data recall.
Parameters (7)
- arrivalRatesarrayrequired
24 hourly arrival rates (customers/hr, one per hour-of-day 0-23). Use 0 for closed hours (terminating system). Range 0-200 per hour.
- staffingarrayrequired
24 hourly staffing counts (servers/hr, one per hour-of-day 0-23). Use 0 for closed hours. Range 0-50 per hour.
- serviceTimeMinutesnumber
Mean service time in minutes per customer. Applies uniformly across hours. Range 0.1-180.
- simulationDaysinteger
Days to simulate. Range 1-30.
- arrivalDistributionstring
- serviceDistributionstring
- serviceCoVnumber
CoV for service time when distribution is Normal or LogNormal. Range 0-5.
compare_separate_vs_pooled
Run the classic operations-research teaching demo: pooled queueing (one shared queue, c servers) vs separate queues (c independent queues, one server each, λ/c traffic to each). Both runs have identical total capacity (c × μ) and identical total arrivals (λ), so the offered load ρ is the same; the only structural difference is whether arrivals share a queue or split into c isolated streams. The pooled configuration ALWAYS produces shorter waits — that's the whole teaching point. Use this when the user asks 'should we pool our resources?' / 'should we cross-train?' / 'why do banks have one line instead of c?' / 'what's the cost of siloing my call center into specialist queues?'. Returns both runs side by side with the pooled-vs-separate wait delta. ANTI-FABRICATION: numbers come from two real DES runs. Quote them VERBATIM.
Parameters (4)
- arrivalRatenumberrequired
Mean total arrival rate (λ). Pooled run takes all of it; separate run divides evenly across the c queues.
- serviceRatenumberrequired
Mean service rate per server (μ, customers/hour each server finishes). Identical across both runs.
- serversintegerrequired
Number of servers (c). Pooled: one queue feeds all c. Separate: c independent queues, each with one server and λ/c traffic. Range 2-50 (with c=1 there's nothing to compare).
- simulationDaysinteger
Days to simulate (same for both runs). Range 1-30.
explain_queueing_theory
Return a ~500-word educational explainer of M/M/c queueing theory: Little's Law, utilization, why averages mislead, how simulation relates to Erlang-C. No inputs. Use this when the user asks a conceptual 'why' or 'how does this work' question rather than asking for a number.
No parameters.
explain_advanced_patterns
Return a textbook-level description of six queueing complexity patterns beyond basic M/M/c: abandonment/reneging, priority tiers, overflow routing, skills-based routing, compound service, and server outages. Use this when the user describes real-world complexity (customers hanging up, VIP queues, specialist escalation, agent breaks, transfers) that plain M/M/c doesn't model. The tool frames each pattern conceptually and points users at ChiAha for custom modeling.
No parameters.
recommend_staffing
INVERSE of simulate_mmc — given an arrival rate, service rate, and a target average wait time, returns the SMALLEST number of servers needed to meet the target. Use this when the user asks 'how many servers do I need?' / 'what staffing keeps wait under N minutes?'. The tool runs a binary search over candidate server counts (up to maxServers, default 50), invoking the simulator for each candidate. Saves Claude from iterating simulate_mmc 3-5 times by hand. If even maxServers servers can't meet the target, the recommendation is null and the response includes the achieved wait so Claude can explain that the target is infeasible at the given load. ANTI-FABRICATION: `recommendedServers` and `achievedAvgWaitMinutes` come from real DES runs. Quote them VERBATIM. Do not propose a different number you think 'feels right'; this tool already binary-searches for the minimum that meets the target. If the user asks 'what if c=N?' for a specific N, call simulate_mmc with that c.
Parameters (8)
- arrivalRatenumberrequired
Mean arrivals per hour (λ).
- serviceRatenumberrequired
Mean customers one server can finish per hour (μ). Must be > 0.
- targetAvgWaitMinutesnumberrequired
Maximum average wait time you're willing to accept, in minutes. The tool returns the smallest server count that meets this target.
- maxServersinteger
Search ceiling (default 50, max 50). If even this many servers can't meet the target, the tool returns null with the achieved wait.
- simulationDaysinteger
Days to simulate per candidate (default 7). Range 1-30. Lower = faster search; higher = less seed-to-seed variance.
- arrivalDistributionstring
- serviceDistributionstring
- serviceCoVnumber
interpret_result
Given an M/M/c configuration (arrivalRate, serviceRate, servers) and optionally an observed average wait, returns a queueing-theory framed interpretation: where you sit on the utilization curve, what ρ means in plain language, what one more or fewer server would qualitatively do, and which complexity factors (priority, abandonment, skills routing) might be hiding in real data the M/M/c model can't see. Use this to TEACH while answering — when the user wants context around a number, not just the number itself. Pure text computation, no simulation, no RNG — deterministic output.
Parameters (4)
- arrivalRatenumberrequired
Mean arrivals per hour (λ).
- serviceRatenumberrequired
Mean customers one server finishes per hour (μ).
- serversintegerrequired
Server count (c).
- observedAvgWaitMinutesnumber
Optional. The avg wait the user observed (from simulate_mmc, an Erlang-C calculator, or real measurements). If omitted, the tool computes ρ from the inputs and gives a parameter-only interpretation.
compare_analytical_vs_simulated
Run the same M/M/c configuration through BOTH the closed-form Erlang-C formula AND the discrete-event simulator, returning a side-by-side comparison with deltas. Use this when the user is validating QueueSim's engine against textbook values, learning queueing theory by watching simulation converge on the formula, or auditing a result that 'feels off' — agreement within ~5%% is the canonical sanity check for an M/M/c run. Pure-Exponential M/M/c only; the closed-form Erlang-C is undefined for other service distributions. Large deltas usually mean the simulation run was too short for steady-state — raise simulationDays. ANTI-FABRICATION: both sides come from real computation — closed-form is deterministic, simulation is stochastic but engine-backed. Quote both verbatim. Do not synthesize an 'average of the two' or recompute the formula from training-data recall.
Parameters (4)
- arrivalRatenumberrequired
Mean arrivals per hour (λ).
- serviceRatenumberrequired
Mean customers one server can finish per hour (μ). Must be > 0.
- serversintegerrequired
Number of parallel servers (c). Integer 1-50.
- simulationDaysinteger
Days to simulate on the DES side. Closed-form is instant. Range 1-30; longer runs converge closer to the formula.
README not available yet.
Install
Remote endpoint
Streamable HTTPHosted server - connect over the network, no local install.
https://queuesim.com/mcp/v1claude_desktop_config.json
{
"mcpServers": {
"public": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://queuesim.com/mcp/v1"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.