Skip to main content
Glama

HeyCAi Clinic Tools

Estimate front-desk revenue loss

estimate_front_desk_loss
Read-onlyIdempotent

Estimates how much revenue a health clinic loses each month to unanswered phone calls, WhatsApp conversations that wait for a reply, and no-shows, from figures the clinic provides (a single value or a low–high range for each). A leak without its figures comes back as pending with the figures it needs; nothing is filled with averages or benchmarks. Returns monthly and yearly amounts per leak with the arithmetic, a check against the clinic's free appointment slots, and categories of fixes. Counts and percentages only: never send patient names or records.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "estimate_front_desk_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoISO 4217 code of the clinic's currency, such as EUR, GBP or USD: money in the result then carries its symbol.
feePerVisitNoF: Average fee per visit (the clinic's currency). A number, or {"low", "high"} for a range.
noShowPercentNoR: No-shows: the patient does not come and gives no notice (% of booked appointments). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
newPatientValueNoV: Revenue from one new patient (the clinic's currency). A number, or {"low", "high"} for a range.
callDaysPerMonthNoD: Days a month the calls in `C` come in (days per month). A number, or {"low", "high"} for a range.
freeSlotsPerMonthNoK: Free appointment slots: appointments the clinic could still book in a month with its current team and hours (appointments per month). A number, or {"low", "high"} for a range.
inboundCallsPerDayNoC: Inbound calls (calls per day). A number, or {"low", "high"} for a range.
appointmentsPerWeekNoA: Appointments booked (appointments per week). A number, or {"low", "high"} for a range.
visitsPerNewPatientNoT: Visits per new patient, on average (visits). A number, or {"low", "high"} for a range.
appointmentsPerMonthNoA: Appointments booked (appointments per month). A number, or {"low", "high"} for a range.
inboundCallsPerMonthNoC×D: Inbound calls (calls per month). A number, or {"low", "high"} for a range.
whatsappDaysPerMonthNoDw: Days a month messages come in (messages can arrive on closed days too: ask) (days per month). A number, or {"low", "high"} for a range.
refilledNoShowPercentNoS: Of the no-show slots, the share filled again by another patient (% of no-shows). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
repeatAttemptsPercentNoX: If `Mu` is not available: of the unanswered calls, the share that are repeat attempts by a caller already counted (% of unanswered calls). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
newPatientCallsPercentNoN: Calls that come from new patients (% of inbound calls). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
newPatientsLostPercentNoL: New patients not reached who never call back or book (% of new patients not reached). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
unansweredCallsPercentNoU: Calls not answered (missed, abandoned or sent to voicemail) (% of inbound calls). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
whatsappWaitingPercentNoO: Conversations that wait for a reply: sent outside opening hours, or left unanswered (% of conversations). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
afterHoursMissedPercentNoUout: Optional: of the unanswered calls, the share made outside opening hours (% of unanswered calls). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
whatsappNewPatientPercentNoNw: Conversations from new patients (% of conversations). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.
uniqueMissedCallersPerMonthNoMu: Best, if the report gives it: unique numbers among the unanswered calls, each caller counted once however many times they called (numbers per month). A number, or {"low", "high"} for a range.
whatsappConversationsPerDayNoW: WhatsApp conversations started by patients (count people, not individual messages) (conversations per day). A number, or {"low", "high"} for a range.
whatsappConversationsPerMonthNoW×Dw: WhatsApp conversations started by patients (count people, not individual messages) (conversations per month). A number, or {"low", "high"} for a range.
whatsappNewPatientsLostPercentNoLw: Of the new patients who waited, the share who never booked (% of those who waited). A number, or {"low", "high"} for a range. 0–100: 30 means 30%.

Output Schema

NameRequiredDescriptionDefault
leaksYesThe largest calculated leak first, pending leaks last.
totalYesThe calculated leaks added up; null when none is calculated.
footerYes
derivedYes
figuresYes
optionsYes
capacityYes
currencyYes
questionsYesOne question per figure still needed, with its unit and where the clinic finds it.
callsSplitYes
revenueNoteYes
repeatAdjustmentYes
questionsForSuppliersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, it discloses partial-input handling, the no-averages/no-benchmarks policy, arithmetic-backed results, a free-slot capacity check, and a prohibition on patient identifiers or records. These details materially clarify both calculation behavior and safe data handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four purposeful sentences move from purpose to missing-data behavior, outputs, and privacy, with the selection-critical purpose front-loaded. Despite the tool's complexity, there is no filler or repeated parameter-by-parameter documentation.

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 24-parameter estimator, it covers scope, data provenance, partial results, calculation safeguards, output categories, and privacy, while the output schema removes the need for detailed return documentation. It is not fully self-contained for efficient invocation because minimum per-leak input sets and the choice among alternative volume inputs are not explained.

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?

With 100% schema coverage, the schema already documents all 24 inputs, including their scalar or low/high forms, units, and limits. The description usefully states the clinic-supplied and aggregate-data principles, but it does not add the minimum input combinations for each leak or how to choose between daily/monthly and weekly/monthly variants.

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?

The opening sentence gives a specific verb, resource, cadence, and scope: estimating a health clinic's monthly revenue loss from unanswered calls, delayed WhatsApp conversations, and no-shows. That concrete scope also separates it from the general-information and website-readiness siblings.

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?

It establishes the intended context—using figures supplied by the clinic—and explains that incomplete leaks can still return as pending rather than being filled with benchmarks. It does not explicitly state when not to use the tool or name an alternative, so it stops short of full routing guidance.

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