Skip to main content
Glama

Staffing Math

Queue staffing (Erlang C)

erlang_staffing
Read-onlyIdempotent

For call center, contact center, phone or chat staffing questions with a service level target, such as 80% answered within 20 seconds. Works out agents needed on a live queue to answer a target share of contacts within a target time, using Erlang C. Give contacts per hour for the interval being staffed (usually the busiest hour) and handle time in seconds. Returns agents needed, the service level at that number and at one fewer, chance of waiting, occupancy, and people to schedule after shrinkage. Use required_fte for case or ticket work with no answer-time target.

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": {
      "contacts_per_hour": "<contacts_per_hour>",
      "handle_time_seconds": "<handle_time_seconds>"
    },
    "name": "erlang_staffing"
  }
}

Input Schema

NameRequiredDescriptionDefault
shrinkageNoShare of paid time agents are off the queue. Converts agents to people scheduled. Default 0.3.
service_levelNoShare of contacts to answer within the target time. Default 0.8.
contacts_per_hourYesContacts arriving per hour in the interval being staffed.
handle_time_secondsYesAverage handle time in seconds: talk plus after-contact work.
answer_within_secondsNoTarget answer time in seconds. Default 20.

Output Schema

NameRequiredDescriptionDefault
notesYes
stepsYes
agentsYes
answerYes
engineYes
inputsYes
occupancyYes
people_to_scheduleYes
offered_load_erlangsYes
probability_of_waitingYes
service_level_at_agentsYes
service_level_one_fewerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds useful modeling context — Erlang C methodology, the busiest-interval input convention, and that results include service level at the computed headcount and at one fewer (a useful sensitivity check). It does not flag edge cases such as very low contact volumes or invalid service-level/time combinations, which is the remaining gap.

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 use case and method, then inputs, then the alternative tool — a sensible order. The return-value enumeration is partly redundant with the existing output schema and is the one segment that does not fully earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter calculation tool with a full output schema and complete annotation coverage, the description supplies the modeling intent, input conventions, and one alternative route. It leaves the relationship to hiring_plan unaddressed and says nothing about degenerate-input behavior, which keeps it slightly short of complete.

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 description coverage is 100%, so every parameter including shrinkage, service_level, and answer_within_seconds defaults is already documented in the schema. The description reinforces handle time and per-interval contacts-per-hour but adds little the schema does not already say, and it never mentions the shrinkage or answer-time defaults. Baseline 3 applies.

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 — computes agents needed on a live queue via Erlang C — and scopes it to service-level-target scenarios like 80% answered in 20 seconds. It also names the sibling it is not (required_fte, for case/ticket work), so an agent can distinguish it without opening schemas.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition ('staffing questions with a service level target'), an input convention ('contacts per hour for the interval being staffed, usually the busiest hour'), and an explicit when-not with the alternative tool: case or ticket work with no answer-time target goes to required_fte.

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.