QueueSim
Queueing simulation: M/M/c, staffing, Erlang C checks, and multi-step models built from nodes.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (1)
- LOWin compare_analytical_vs_simulated
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"public": {
"url": "https://queuesim.com/mcp/v1"
}
}
}Remote-Endpunkte
https://queuesim.com/mcp/v1streamable-httpWas es kann
Tool-Inventar
Tools (14)
🟢simulate_mmc(arrivalRate, serviceRate, servers, arrivalDistribution, serviceDistribution, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"arrivalRate": {
"type": "number",
"description": "Mean arrivals per hour (λ). Any positive value up to 200.",
"default": 20,
"exclusiveMinimum": 0,
"maximum": 200
},
"serviceRate": {
"type": "number",
"description": "Mean customers one server can finish per hour (μ). Must be > 0.",
"default": 12,
"exclusiveMinimum": 0
},
"servers": {
"type": "integer",
"description": "Number of parallel servers (c). Integer 1-50.",
"default": 2,
"minimum": 1,
"maximum": 50
},
"arrivalDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant"
],
"description": "Shape of inter-arrival times. 'Exponential' = Poisson process (default). 'Constant' = evenly-spaced.",
"default": "Exponential"
},
"serviceDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant",
"Normal",
"LogNormal"
],
"description": "Shape of service-time distribution. 'Exponential' = classical M/M/c (default).",
"default": "Exponential"
},
"serviceCoV": {
"type": "number",
"description": "Coefficient of variation for service time — used when serviceDistribution is 'Normal' or 'LogNormal'. Ignored for Exponential/Constant. Range 0-5.",
"minimum": 0,
"maximum": 5
},
"simulationDays": {
"type": "integer",
"description": "Days to simulate (default 7). Range 1-30 — longer runs are not supported on the public surface; for production-scale studies contact [email protected].",
"default": 7,
"minimum": 1,
"maximum": 30
}
},
"required": [
"arrivalRate",
"serviceRate",
"servers"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"inputs": {
"type": "object",
"description": "Echo of the run's parameters."
},
"summary": {
"type": "object",
"properties": {
"totalArrivals": {
"type": "integer"
},
"totalServed": {
"type": "integer"
},
"effectiveDays": {
"type": "integer"
},
"overallAvgWaitMinutes": {
"type": "number"
},
"offeredLoad": {
"type": [
"number",
"null"
]
}
},
"required": [
"totalArrivals",
"totalServed",
"effectiveDays",
"overallAvgWaitMinutes"
]
},
"hourly": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hour": {
"type": "integer"
},
"label": {
"type": "string"
},
"avgArrivals": {
"type": "number"
},
"maxArrivals": {
"type": "integer"
},
"avgDepartures": {
"type": "number"
},
"maxDepartures": {
"type": "integer"
},
"avgWaitMinutes": {
"type": "number"
},
"maxWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"maxQueueLength": {
"type": "number"
},
"serversOnDuty": {
"type": "integer"
}
}
}
}
},
"required": [
"inputs",
"summary",
"hourly"
]
}🟢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.
Eingabe-Schema
{
"type": "object",
"properties": {}
}Ausgabe-Schema
{
"type": "object",
"properties": {
"scenarios": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"key",
"title",
"description"
]
}
}
},
"required": [
"scenarios"
]
}🟢describe_scenario(name)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"single",
"coffee",
"grocery",
"callcenter"
],
"description": "Scenario key from list_scenarios.",
"default": "coffee"
}
},
"required": [
"name"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"teachingNote": {
"type": "string"
},
"defaults": {
"type": "object"
},
"supportedOverrides": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"key",
"title",
"defaults"
]
}🟢simulate_scenario(name, overrides)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"single",
"coffee",
"grocery",
"callcenter"
],
"description": "Scenario key from list_scenarios.",
"default": "coffee"
},
"overrides": {
"type": "object",
"description": "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.",
"properties": {
"arrivalRate": {
"type": "number",
"description": "Override arrival rate (customers/hr) applied to every hour the scenario was open.",
"exclusiveMinimum": 0,
"maximum": 200
},
"servers": {
"type": "integer",
"description": "Override server count applied to every hour the scenario had staff.",
"minimum": 1,
"maximum": 50
},
"serviceTimeMinutes": {
"type": "number",
"description": "Override mean service time (minutes per customer).",
"exclusiveMinimum": 0
},
"simulationDays": {
"type": "integer",
"description": "Days to simulate (default 7). Range 1-30 — longer runs are not supported on the public surface.",
"default": 7,
"minimum": 1,
"maximum": 30
},
"arrivalDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant"
]
},
"serviceDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant",
"Normal",
"LogNormal"
]
},
"serviceCoV": {
"type": "number",
"minimum": 0,
"maximum": 5
}
}
}
},
"required": [
"name"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"inputs": {
"type": "object",
"description": "Echo of the run's parameters."
},
"summary": {
"type": "object",
"properties": {
"totalArrivals": {
"type": "integer"
},
"totalServed": {
"type": "integer"
},
"effectiveDays": {
"type": "integer"
},
"overallAvgWaitMinutes": {
"type": "number"
},
"offeredLoad": {
"type": [
"number",
"null"
]
}
},
"required": [
"totalArrivals",
"totalServed",
"effectiveDays",
"overallAvgWaitMinutes"
]
},
"hourly": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hour": {
"type": "integer"
},
"label": {
"type": "string"
},
"avgArrivals": {
"type": "number"
},
"maxArrivals": {
"type": "integer"
},
"avgDepartures": {
"type": "number"
},
"maxDepartures": {
"type": "integer"
},
"avgWaitMinutes": {
"type": "number"
},
"maxWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"maxQueueLength": {
"type": "number"
},
"serversOnDuty": {
"type": "integer"
}
}
}
}
},
"required": [
"inputs",
"summary",
"hourly"
]
}🟢simulate_schedule(arrivalRates, staffing, serviceTimeMinutes, simulationDays, arrivalDistribution, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"arrivalRates": {
"type": "array",
"description": "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.",
"items": {
"type": "number",
"minimum": 0,
"maximum": 200
},
"minItems": 24,
"maxItems": 24
},
"staffing": {
"type": "array",
"description": "24 hourly staffing counts (servers/hr, one per hour-of-day 0-23). Use 0 for closed hours. Range 0-50 per hour.",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 50
},
"minItems": 24,
"maxItems": 24
},
"serviceTimeMinutes": {
"type": "number",
"description": "Mean service time in minutes per customer. Applies uniformly across hours. Range 0.1-180.",
"default": 5,
"exclusiveMinimum": 0,
"maximum": 180
},
"simulationDays": {
"type": "integer",
"description": "Days to simulate. Range 1-30.",
"default": 7,
"minimum": 1,
"maximum": 30
},
"arrivalDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant"
],
"default": "Exponential"
},
"serviceDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant",
"Normal",
"LogNormal"
],
"default": "Exponential"
},
"serviceCoV": {
"type": "number",
"description": "CoV for service time when distribution is Normal or LogNormal. Range 0-5.",
"minimum": 0,
"maximum": 5
}
},
"required": [
"arrivalRates",
"staffing"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"inputs": {
"type": "object",
"description": "Echo of the run's parameters."
},
"summary": {
"type": "object",
"properties": {
"totalArrivals": {
"type": "integer"
},
"totalServed": {
"type": "integer"
},
"effectiveDays": {
"type": "integer"
},
"overallAvgWaitMinutes": {
"type": "number"
},
"offeredLoad": {
"type": [
"number",
"null"
]
}
},
"required": [
"totalArrivals",
"totalServed",
"effectiveDays",
"overallAvgWaitMinutes"
]
},
"hourly": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hour": {
"type": "integer"
},
"label": {
"type": "string"
},
"avgArrivals": {
"type": "number"
},
"maxArrivals": {
"type": "integer"
},
"avgDepartures": {
"type": "number"
},
"maxDepartures": {
"type": "integer"
},
"avgWaitMinutes": {
"type": "number"
},
"maxWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"maxQueueLength": {
"type": "number"
},
"serversOnDuty": {
"type": "integer"
}
}
}
}
},
"required": [
"inputs",
"summary",
"hourly"
]
}🟢compare_separate_vs_pooled(arrivalRate, serviceRate, servers, simulationDays)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"arrivalRate": {
"type": "number",
"description": "Mean total arrival rate (λ). Pooled run takes all of it; separate run divides evenly across the c queues.",
"default": 30,
"exclusiveMinimum": 0,
"maximum": 200
},
"serviceRate": {
"type": "number",
"description": "Mean service rate per server (μ, customers/hour each server finishes). Identical across both runs.",
"default": 12,
"exclusiveMinimum": 0
},
"servers": {
"type": "integer",
"description": "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).",
"default": 3,
"minimum": 2,
"maximum": 50
},
"simulationDays": {
"type": "integer",
"description": "Days to simulate (same for both runs). Range 1-30.",
"default": 7,
"minimum": 1,
"maximum": 30
}
},
"required": [
"arrivalRate",
"serviceRate",
"servers"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"inputs": {
"type": "object",
"description": "Echo of the run's parameters."
},
"summary": {
"type": "object",
"properties": {
"totalArrivals": {
"type": "integer"
},
"totalServed": {
"type": "integer"
},
"effectiveDays": {
"type": "integer"
},
"overallAvgWaitMinutes": {
"type": "number"
},
"offeredLoad": {
"type": [
"number",
"null"
]
}
},
"required": [
"totalArrivals",
"totalServed",
"effectiveDays",
"overallAvgWaitMinutes"
]
},
"hourly": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hour": {
"type": "integer"
},
"label": {
"type": "string"
},
"avgArrivals": {
"type": "number"
},
"maxArrivals": {
"type": "integer"
},
"avgDepartures": {
"type": "number"
},
"maxDepartures": {
"type": "integer"
},
"avgWaitMinutes": {
"type": "number"
},
"maxWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"maxQueueLength": {
"type": "number"
},
"serversOnDuty": {
"type": "integer"
}
}
}
}
},
"required": [
"inputs",
"summary",
"hourly"
]
}🟢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.
Eingabe-Schema
{
"type": "object",
"properties": {}
}🟢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.
Eingabe-Schema
{
"type": "object",
"properties": {}
}🟢recommend_staffing(arrivalRate, serviceRate, targetAvgWaitMinutes, maxServers, simulationDays, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"arrivalRate": {
"type": "number",
"description": "Mean arrivals per hour (λ).",
"default": 20,
"exclusiveMinimum": 0,
"maximum": 200
},
"serviceRate": {
"type": "number",
"description": "Mean customers one server can finish per hour (μ). Must be > 0.",
"default": 12,
"exclusiveMinimum": 0
},
"targetAvgWaitMinutes": {
"type": "number",
"description": "Maximum average wait time you're willing to accept, in minutes. The tool returns the smallest server count that meets this target.",
"default": 3,
"minimum": 0
},
"maxServers": {
"type": "integer",
"description": "Search ceiling (default 50, max 50). If even this many servers can't meet the target, the tool returns null with the achieved wait.",
"default": 50,
"minimum": 1,
"maximum": 50
},
"simulationDays": {
"type": "integer",
"description": "Days to simulate per candidate (default 7). Range 1-30. Lower = faster search; higher = less seed-to-seed variance.",
"default": 7,
"minimum": 1,
"maximum": 30
},
"arrivalDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant"
],
"default": "Exponential"
},
"serviceDistribution": {
"type": "string",
"enum": [
"Exponential",
"Constant",
"Normal",
"LogNormal"
],
"default": "Exponential"
},
"serviceCoV": {
"type": "number",
"minimum": 0,
"maximum": 5
}
},
"required": [
"arrivalRate",
"serviceRate",
"targetAvgWaitMinutes"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"recommendedServers": {
"type": [
"integer",
"null"
],
"description": "Smallest c meeting the target. null when even maxServers can't meet it."
},
"achievedAvgWaitMinutes": {
"type": "number"
},
"targetAvgWaitMinutes": {
"type": "number"
},
"offeredLoadAtRecommendation": {
"type": "number",
"description": "Present only when a feasible recommendation was found."
},
"trials": {
"type": "array",
"items": {
"type": "object",
"properties": {
"servers": {
"type": "integer"
},
"avgWaitMinutes": {
"type": "number"
}
},
"required": [
"servers",
"avgWaitMinutes"
]
}
},
"note": {
"type": "string"
}
},
"required": [
"achievedAvgWaitMinutes",
"targetAvgWaitMinutes",
"trials",
"note"
]
}🟢interpret_result(arrivalRate, serviceRate, servers, observedAvgWaitMinutes)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"arrivalRate": {
"type": "number",
"description": "Mean arrivals per hour (λ).",
"default": 20,
"exclusiveMinimum": 0,
"maximum": 200
},
"serviceRate": {
"type": "number",
"description": "Mean customers one server finishes per hour (μ).",
"default": 12,
"exclusiveMinimum": 0
},
"servers": {
"type": "integer",
"description": "Server count (c).",
"default": 2,
"minimum": 1,
"maximum": 50
},
"observedAvgWaitMinutes": {
"type": "number",
"description": "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.",
"minimum": 0
}
},
"required": [
"arrivalRate",
"serviceRate",
"servers"
]
}🟢compare_analytical_vs_simulated(arrivalRate, serviceRate, servers, simulationDays)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"arrivalRate": {
"type": "number",
"description": "Mean arrivals per hour (λ).",
"default": 20,
"exclusiveMinimum": 0,
"maximum": 200
},
"serviceRate": {
"type": "number",
"description": "Mean customers one server can finish per hour (μ). Must be > 0.",
"default": 12,
"exclusiveMinimum": 0
},
"servers": {
"type": "integer",
"description": "Number of parallel servers (c). Integer 1-50.",
"default": 2,
"minimum": 1,
"maximum": 50
},
"simulationDays": {
"type": "integer",
"description": "Days to simulate on the DES side. Closed-form is instant. Range 1-30; longer runs converge closer to the formula.",
"default": 7,
"minimum": 1,
"maximum": 30
}
},
"required": [
"arrivalRate",
"serviceRate",
"servers"
]
}Ausgabe-Schema
{
"type": "object",
"properties": {
"inputs": {
"type": "object"
},
"analytical": {
"type": "object",
"properties": {
"avgWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"offeredLoad": {
"type": "number"
},
"probabilityOfWaiting": {
"type": "number"
}
},
"required": [
"avgWaitMinutes",
"avgQueueLength",
"offeredLoad",
"probabilityOfWaiting"
]
},
"simulated": {
"type": "object",
"properties": {
"avgWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"offeredLoad": {
"type": "number"
},
"totalServed": {
"type": "integer"
},
"effectiveDays": {
"type": "integer"
}
},
"required": [
"avgWaitMinutes",
"avgQueueLength",
"offeredLoad",
"totalServed"
]
},
"delta": {
"type": "object",
"properties": {
"avgWaitMinutes": {
"type": "number"
},
"avgQueueLength": {
"type": "number"
},
"avgWaitPercent": {
"type": "number"
},
"note": {
"type": "string"
}
}
},
"note": {
"type": "string"
}
},
"required": [
"inputs",
"analytical",
"simulated",
"delta"
]
}🟢queue_model_guide
How to build a QueueSim Cloud model: the node types (arrivals, service, delay, split, settype, bytype, exit), staff groups, distributions, plan limits and a worked example. Call this before check_queue_model or run_queue_model when the user's system has more than one step (several stations in a row, shared staff, routing by percent or customer type, priority customers, people who give up or are turned away). Text only, no simulation.
Eingabe-Schema
{
"type": "object",
"properties": {}
}🟢check_queue_model(model)
Check a QueueSim Cloud model (a multi-step queueing system built from nodes and staff groups) without running it. Returns every problem found (missing links, a line that would grow without limit, plan limits) tied to the node it is about, and a link that opens the model in QueueSim Cloud. Free plan: up to 8 nodes, 3 staff groups, 30 days, 1 run.
Eingabe-Schema
{
"type": "object",
"properties": {
"model": {
"type": "object",
"description": "A QueueSim Cloud model: staff groups plus nodes linked by id. The model guide tool gives the rules and an example.",
"properties": {
"name": {
"type": "string",
"maxLength": 80
},
"days": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 365,
"default": 30,
"description": "Run length in days (Free plan: at most 30)."
},
"runs": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"default": 1,
"description": "Independent runs (different random seeds). Free plan: 1."
},
"seed": {
"type": "integer",
"minimum": 1,
"description": "Seed of the first run (default 1)."
},
"staff": {
"type": "array",
"description": "Staff groups. A Service node draws one person from its group per customer.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Staff group id."
},
"name": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": 1,
"description": "People on duty all day."
},
"hourly": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"minItems": 24,
"maxItems": 24,
"description": "Optional: people on duty for each hour of the day, midnight first (24 numbers). Overrides count."
},
"byPriority": {
"type": "boolean",
"description": "Serve lower priority numbers first (set by a settype node)."
}
},
"required": [
"id",
"count"
]
}
},
"blocks": {
"type": "array",
"description": "The nodes. Every path must end at an exit node.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"arrivals",
"service",
"delay",
"split",
"settype",
"bytype",
"exit"
]
},
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Node id (unique; must not equal a staff group id)."
},
"name": {
"type": "string"
},
"next": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Where customers go next (arrivals, service, delay, settype)."
},
"perHour": {
"type": "number",
"minimum": 0,
"description": "arrivals: average arrivals per hour (random, Poisson)."
},
"hourly": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 24,
"maxItems": 24,
"description": "arrivals: optional arrivals per hour for each hour of the day, midnight first (24 numbers). Overrides perHour. Every hour needs more than 0."
},
"staff": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "service: the staff group that serves this line."
},
"time": {
"type": "object",
"description": "service: time to serve one customer; delay: time spent in minutes. kind: exponential (a = average), fixed (a = minutes), normal or lognormal (a = average, b = spread), uniform (a = lowest, b = highest), triangular (a = lowest, b = most likely, c = highest).",
"properties": {
"kind": {
"type": "string",
"enum": [
"exponential",
"fixed",
"normal",
"lognormal",
"uniform",
"triangular"
]
},
"a": {
"type": "number",
"minimum": 0
},
"b": {
"type": "number",
"minimum": 0
},
"c": {
"type": "number",
"minimum": 0
}
},
"required": [
"kind",
"a"
]
},
"maxLine": {
"type": "integer",
"minimum": 0,
"description": "service: optional line limit; who arrives to a full line goes to whenFull."
},
"whenFull": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "service: where customers go when the line is full (needs maxLine)."
},
"patience": {
"type": "object",
"description": "service: optional patience; who waits longer leaves to giveUp in minutes. kind: exponential (a = average), fixed (a = minutes), normal or lognormal (a = average, b = spread), uniform (a = lowest, b = highest), triangular (a = lowest, b = most likely, c = highest).",
"properties": {
"kind": {
"type": "string",
"enum": [
"exponential",
"fixed",
"normal",
"lognormal",
"uniform",
"triangular"
]
},
"a": {
"type": "number",
"minimum": 0
},
"b": {
"type": "number",
"minimum": 0
},
"c": {
"type": "number",
"minimum": 0
}
},
"required": [
"kind",
"a"
]
},
"giveUp": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "service: where customers go when they give up waiting (needs patience)."
},
"serviceLevels": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"maxItems": 4,
"description": "service: optional wait thresholds in minutes to report the share served within (e.g. [2, 5])."
},
"branches": {
"type": "array",
"description": "split: where customers go, by percent (percents add up to 100).",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Target node id."
},
"percent": {
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"to",
"percent"
]
}
},
"targets": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Target node id."
},
"description": "bytype: type 1 goes to the first target, type 2 to the second …; untyped customers go to the last."
},
"kind": {
"type": "integer",
"minimum": 1,
"description": "settype: the customer type (1, 2, …)."
},
"priority": {
"type": "number",
"description": "settype: priority (lower is served first where the staff group has byPriority)."
}
},
"required": [
"type",
"id"
]
}
}
},
"required": [
"staff",
"blocks"
]
}
},
"required": [
"model"
]
}🟢run_queue_model(model)
Run a QueueSim Cloud model (a multi-step queueing system built from nodes and staff groups) on the QueueSim Cloud discrete event engine. Returns, per service node: customers joined, served, gave up and turned away, mean and percentile waits in minutes and service levels; per staff group: utilization and busy staff; per exit: count and time in system. Also returns a link that opens the model in QueueSim Cloud to see it drawn and animated. Free plan: up to 8 nodes, 3 staff groups, 30 days, 1 run. Use simulate_mmc or simulate_schedule instead for a single line.
Eingabe-Schema
{
"type": "object",
"properties": {
"model": {
"type": "object",
"description": "A QueueSim Cloud model: staff groups plus nodes linked by id. The model guide tool gives the rules and an example.",
"properties": {
"name": {
"type": "string",
"maxLength": 80
},
"days": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 365,
"default": 30,
"description": "Run length in days (Free plan: at most 30)."
},
"runs": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"default": 1,
"description": "Independent runs (different random seeds). Free plan: 1."
},
"seed": {
"type": "integer",
"minimum": 1,
"description": "Seed of the first run (default 1)."
},
"staff": {
"type": "array",
"description": "Staff groups. A Service node draws one person from its group per customer.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Staff group id."
},
"name": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": 1,
"description": "People on duty all day."
},
"hourly": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"minItems": 24,
"maxItems": 24,
"description": "Optional: people on duty for each hour of the day, midnight first (24 numbers). Overrides count."
},
"byPriority": {
"type": "boolean",
"description": "Serve lower priority numbers first (set by a settype node)."
}
},
"required": [
"id",
"count"
]
}
},
"blocks": {
"type": "array",
"description": "The nodes. Every path must end at an exit node.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"arrivals",
"service",
"delay",
"split",
"settype",
"bytype",
"exit"
]
},
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Node id (unique; must not equal a staff group id)."
},
"name": {
"type": "string"
},
"next": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Where customers go next (arrivals, service, delay, settype)."
},
"perHour": {
"type": "number",
"minimum": 0,
"description": "arrivals: average arrivals per hour (random, Poisson)."
},
"hourly": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 24,
"maxItems": 24,
"description": "arrivals: optional arrivals per hour for each hour of the day, midnight first (24 numbers). Overrides perHour. Every hour needs more than 0."
},
"staff": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "service: the staff group that serves this line."
},
"time": {
"type": "object",
"description": "service: time to serve one customer; delay: time spent in minutes. kind: exponential (a = average), fixed (a = minutes), normal or lognormal (a = average, b = spread), uniform (a = lowest, b = highest), triangular (a = lowest, b = most likely, c = highest).",
"properties": {
"kind": {
"type": "string",
"enum": [
"exponential",
"fixed",
"normal",
"lognormal",
"uniform",
"triangular"
]
},
"a": {
"type": "number",
"minimum": 0
},
"b": {
"type": "number",
"minimum": 0
},
"c": {
"type": "number",
"minimum": 0
}
},
"required": [
"kind",
"a"
]
},
"maxLine": {
"type": "integer",
"minimum": 0,
"description": "service: optional line limit; who arrives to a full line goes to whenFull."
},
"whenFull": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "service: where customers go when the line is full (needs maxLine)."
},
"patience": {
"type": "object",
"description": "service: optional patience; who waits longer leaves to giveUp in minutes. kind: exponential (a = average), fixed (a = minutes), normal or lognormal (a = average, b = spread), uniform (a = lowest, b = highest), triangular (a = lowest, b = most likely, c = highest).",
"properties": {
"kind": {
"type": "string",
"enum": [
"exponential",
"fixed",
"normal",
"lognormal",
"uniform",
"triangular"
]
},
"a": {
"type": "number",
"minimum": 0
},
"b": {
"type": "number",
"minimum": 0
},
"c": {
"type": "number",
"minimum": 0
}
},
"required": [
"kind",
"a"
]
},
"giveUp": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "service: where customers go when they give up waiting (needs patience)."
},
"serviceLevels": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"maxItems": 4,
"description": "service: optional wait thresholds in minutes to report the share served within (e.g. [2, 5])."
},
"branches": {
"type": "array",
"description": "split: where customers go, by percent (percents add up to 100).",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Target node id."
},
"percent": {
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"to",
"percent"
]
}
},
"targets": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,30}$",
"description": "Target node id."
},
"description": "bytype: type 1 goes to the first target, type 2 to the second …; untyped customers go to the last."
},
"kind": {
"type": "integer",
"minimum": 1,
"description": "settype: the customer type (1, 2, …)."
},
"priority": {
"type": "number",
"description": "settype: priority (lower is served first where the staff group has byPriority)."
}
},
"required": [
"type",
"id"
]
}
}
},
"required": [
"staff",
"blocks"
]
}
},
"required": [
"model"
]
}Community
Nachweis