Skip to main content
Glama

simulate_ed_demo

Read-only

Run a one-year MD-only demo simulation of an ED, urgent care, walk-in clinic, or appointment-office staffing scenario. Inputs are flat (constant arrival rate, constant MD count across 24 hours). Returns hourly metrics, average wait, total served, utilization. This is a single-provider-type teaching demo. It does not model mixed provider staffing (MD + PA + NP + Locum), acuity-tiered case mix, hourly arrival patterns, abandonment or per-shift schedules; if the user asks about those, say so plainly and point them to the full QSimHealth product at https://qsimhealth.com, which models them. ANTI-FABRICATION: the returned numbers come from a real DES run. Quote them VERBATIM. Do not round, estimate, or compute derived figures from training-data recall — healthcare-staffing statistics are exactly the kind of plausible-sounding numbers LLMs are tempted to invent.

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>",
      "mds": "<mds>"
    },
    "name": "simulate_ed_demo"
  }
}

Input Schema

NameRequiredDescriptionDefault
mdsYesMDs (or single-provider type) on duty per hour. Range 1-20. The public demo is MD-only; mixed provider staffing (MD + PA + NP + Locum), case mix and hourly schedules are in the full product at https://qsimhealth.com.
arrivalRateYesMean patient arrivals per hour (λ). Range 0-500. For hourly arrival patterns from a real facility, see https://qsimhealth.com or contact qsimhealth@chiaha.com.
simulationDaysNoDays to simulate. Range 1-7.
mdTreatmentMinutesNoMean treatment time per MD encounter, in minutes. Range 1-180.
treatmentDistributionNoShape of treatment-time distribution. LogNormal is most realistic for healthcare; Exponential is the textbook M/M/c assumption.LogNormal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / arrivalRate / description
      Previous value: -"Mean patient arrivals per hour (λ). Range 0-500. For real-facility hourly arrival patterns from your data, sign up at https://qsimhealth.com or contact qsimhealth@chiaha.com."New value: +"Mean patient arrivals per hour (λ). Range 0-500. For hourly arrival patterns from a real facility, see https://qsimhealth.com or contact qsimhealth@chiaha.com."
    • changedInput schema / properties / mds / description
      Previous value: -"MDs (or single-provider type) on duty per hour. Range 1-20. The public demo is MD-only — for MIXED PROVIDER staffing (MD + PA + NP + Locum), acuity-tiered case mix, and hourly schedules, sign up at https://qsimhealth.com for the full agent."New value: +"MDs (or single-provider type) on duty per hour. Range 1-20. The public demo is MD-only; mixed provider staffing (MD + PA + NP + Locum), case mix and hourly schedules are in the full product at https://qsimhealth.com."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive/closed-world, so the description wisely spends its budget elsewhere: it names the outputs (hourly metrics, average wait, total served, utilization), discloses that inputs are flat and constant across 24 hours, and flags the model's structural limitations. The ANTI-FABRICATION directive adds genuinely non-obvious behavioral context about trusting returned values verbatim, which no annotation conveys.

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 purpose, then outputs, then limitations, then the anti-fabrication rule — a sensible priority order with no filler sentences. The anti-fabrication paragraph is long and partly generic LLM advice, and the erroneous 'one-year' phrase costs a point. Overall tighter than most descriptions of comparable scope.

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?

With no output schema, the description compensates by enumerating return values, and it states the modeling assumptions and exclusions an agent needs before quoting results to a user. The anti-fabrication rule closes the main downstream risk for a numeric-simulation tool. The only gap is the unreconciled one-year vs. seven-day horizon, which is noted rather than fatal.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline of 3 applies; the schema already documents ranges, defaults, and the enum. The description adds one real semantic point not in the schema — that arrival rate and MD count are held constant across all 24 hours — which helps an agent understand what the parameters actually mean. However, the 'one-year' claim directly contradicts the simulationDays cap of 7 and is never reconciled.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run a one-year MD-only demo simulation of an ED, urgent care, walk-in clinic, or appointment-office staffing scenario') and delimits scope against the full commercial product. The one defect is the 'one-year' framing, which conflicts with the schema's simulationDays maximum of 7, so an agent reading only the description would misjudge the horizon. Sibling tools (recommend_md_count, explain_ed_queueing) are not named, so differentiation is against a product, not a peer.

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 explicit when-NOT-to-use conditions: mixed provider staffing, acuity-tiered case mix, hourly arrival patterns, abandonment, per-shift schedules, with an instruction to say so plainly and redirect. That is unusually strong exclusion guidance. It stops short of routing to in-catalog alternatives such as recommend_md_count or explain_ed_queueing, sending the user off-platform instead.

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