Skip to main content
Glama

QueueSim

compare_analytical_vs_simulated

Read-only

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "arrivalRate": "<arrivalRate>",
      "serviceRate": "<serviceRate>",
      "servers": "<servers>"
    },
    "name": "compare_analytical_vs_simulated"
  }
}

Input Schema

NameRequiredDescriptionDefault
serversYesNumber of parallel servers (c). Integer 1-50.
arrivalRateYesMean arrivals per hour (λ).
serviceRateYesMean customers one server can finish per hour (μ). Must be > 0.
simulationDaysNoDays to simulate on the DES side. Closed-form is instant. Range 1-30; longer runs converge closer to the formula.

Output Schema

NameRequiredDescriptionDefault
noteNo
deltaYes
inputsYes
simulatedYes
analyticalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, idempotentHint=false), and the description adds real value on top: the ~5% agreement threshold as the canonical sanity check, the steady-state caveat explaining that large deltas usually mean the run was too short, and the anti-fabrication rule requiring both values be quoted verbatim rather than synthesized or recalled.

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?

Front-loaded with the core action and the when-to-use clause before constraints and caveats; no sentence is filler. It is denser and longer than average, but the density is justified by genuinely distinct points (scope limit, delta interpretation, anti-fabrication) rather than restatement.

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?

An output schema exists, so return structure need not be explained; the description instead covers what an agent actually needs: the dual-computation model, the distribution restriction, how to read a delta, and how to remediate a bad delta. Nothing material is missing for a four-parameter read-only comparison tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by tying simulationDays to the closed-form comparison, stating that it is the lever to raise when the delta is large because the DES side needs longer to reach steady state. It also clarifies that closed-form is instant while only the DES side consumes simulated days.

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?

States a specific verb and resource: it runs the same M/M/c configuration through both the closed-form Erlang-C formula and the discrete-event simulator and returns a side-by-side comparison with deltas. This is clearly differentiated from single-method siblings like simulate_mmc because the dual computation is named explicitly.

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

Usage Guidelines4/5

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

Gives three concrete triggers (validating the engine against textbook values, learning queueing theory by watching convergence, auditing a suspicious result) plus an explicit exclusion: pure-Exponential M/M/c only, since Erlang-C is undefined otherwise. It adds a recovery step for large deltas (raise simulationDays) but never names a sibling tool as the alternative for single-sided runs.

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