Skip to main content
Glama

RestaurantDoctorAI

Labor cost calculator

restaurantdoctor_labor_cost
Read-onlyIdempotent

Works out a restaurant's labor cost from the owner's own payroll figures for one week or month, as the free labor cost calculator on restaurantdoctorai.com does, in one of its three modes: share (labor as a % of net sales, against the range for its type of restaurant, with what the points over are worth), hours (next period's labor budget and the hourly staff hours it pays for once salaries are paid) or line (the cut line: the sales per labor hour below which the first person goes home). Takes net sales, hourly pay and hours worked, plus optional salaries, payroll taxes and benefits, expected sales, a target and more, in any currency; a figure that isn't sent is never counted as 0. Returns the calculator's result, how it was worked out, and a link that opens the calculator with the same figures filled in. The figures aren't stored; only an anonymous daily count of calculator runs is kept.

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": {
      "mode": "<mode>",
      "format": "<format>",
      "period": "<period>"
    },
    "name": "restaurantdoctor_labor_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesWhat to work out, as the page's tabs. share: last period's labor cost, % of net sales, against the range (needs sales, hourlyWages). hours: the labor budget for next period's expected sales and the hourly staff hours it pays for (needs forecast, hourlyWages, hours). line: the cut line, the sales per labor hour below which the first person goes home (needs hourlyWages, hours, and sales or forecast).
hoursNo
salesNo
formatYesThe type of restaurant, which sets the labor range and the starting target: quick_service = Quick service (Counter or kiosk, fast turnover); fast_casual = Fast casual (Order at the counter, served at the table); full_service = Full service / casual dining (Servers, moderate check); fine_dining = Fine dining (Chef-driven, higher check); bar_lounge = Bar, taproom or lounge (Drinks are about half of sales or more); cafe = Café or coffee shop (Drinks lead, with pastries and light food).
periodYesWhether the figures are a week's or a month's: last period's, all for the same dates, and forecast for the next. Sets how a year is worked out (52 weeks or 12 months).
targetNo
forecastNo
ownerPayNo
salariesNo
hourSalesNo
hourlyWagesNo
payrollCostsNo
overtimeHoursNo

Output Schema

NameRequiredDescriptionDefault
linkYesOpens the calculator with these figures.
modeYes
guideYes
notesYes
rangeYes
shareYes
checksYesFigures that look like a slip, as the page flags them.
formatYes
periodYes
resultYesThe result in the page's words, in its order.
targetYes
cutLineYes
hourCostYes
freeCheckYes
workedOutYesHow it was worked out.
nextPeriodYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / format / description
      Previous value: -"The type of restaurant, which sets the labor range and the starting target: quick_service = Quick service (Counter or kiosk, fast turnover); fast_casual = Fast casual (Order at the counter, food brought to the table); full_service = Full service / casual dining (Servers, moderate check); fine_dining = Fine dining (Chef-driven, higher check); bar_lounge = Bar, taproom or lounge (Drinks are about half of sales or more); cafe = Café or coffee shop (Drinks lead, with pastries and light food)."New value: +"The type of restaurant, which sets the labor range and the starting target: quick_service = Quick service (Counter or kiosk, fast turnover); fast_casual = Fast casual (Order at the counter, served at the table); full_service = Full service / casual dining (Servers, moderate check); fine_dining = Fine dining (Chef-driven, higher check); bar_lounge = Bar, taproom or lounge (Drinks are about half of sales or more); cafe = Café or coffee shop (Drinks lead, with pastries and light food)."
  2. Changed3 schema fields changed
    • changedInput schema / properties / format / description
      Previous value: -"The type of restaurant, which sets the labor range and the starting target: quick_service = Quick service (Counter or kiosk, fast turnover); fast_casual = Fast casual (Order at the counter, food brought to the table); full_service = Full service / casual dining (Servers, moderate check); fine_dining = Fine dining (Chef-driven, higher check); bar_lounge = Bar, taproom or lounge (Drinks are about half of sales or more)."New value: +"The type of restaurant, which sets the labor range and the starting target: quick_service = Quick service (Counter or kiosk, fast turnover); fast_casual = Fast casual (Order at the counter, food brought to the table); full_service = Full service / casual dining (Servers, moderate check); fine_dining = Fine dining (Chef-driven, higher check); bar_lounge = Bar, taproom or lounge (Drinks are about half of sales or more); cafe = Café or coffee shop (Drinks lead, with pastries and light food)."
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "quick_service",
      -  "fast_casual",
      -  "full_service",
      -  "fine_dining",
      -  "bar_lounge"
      -]New value: +[
      +  "quick_service",
      +  "fast_casual",
      +  "full_service",
      +  "fine_dining",
      +  "bar_lounge",
      +  "cafe"
      +]
    • changedOutput schema / properties / format / enum
      Previous value: -[
      -  "quick_service",
      -  "fast_casual",
      -  "full_service",
      -  "fine_dining",
      -  "bar_lounge"
      -]New value: +[
      +  "quick_service",
      +  "fast_casual",
      +  "full_service",
      +  "fine_dining",
      +  "bar_lounge",
      +  "cafe"
      +]
  3. Changed50 schema fields changed
    • addedInput schema / properties / forecast / anyOf
      Added value: +[
      +  {
      +    "description": "Net sales expected next period, more than 0: the last 4 weeks' (or 3 months') average, adjusted for events and holidays. Needed for hours; for line, the line is then for these sales.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / forecast / description
      Removed value: -"Net sales expected next period, more than 0: the last 4 weeks' (or 3 months') average, adjusted for events and holidays. Needed for hours; for line, the line is then for these sales."
    • removedInput schema / properties / forecast / maximum
      Removed value: -1000000000
    • removedInput schema / properties / forecast / minimum
      Removed value: -0
    • removedInput schema / properties / forecast / type
      Removed value: -"number"
    • addedInput schema / properties / hourSales / anyOf
      Added value: +[
      +  {
      +    "description": "Optional, for line: net sales in the last hour of a shift, for how many hourly staff it pays for.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / hourSales / description
      Removed value: -"Optional, for line: net sales in the last hour of a shift, for how many hourly staff it pays for."
    • removedInput schema / properties / hourSales / maximum
      Removed value: -1000000000
    • removedInput schema / properties / hourSales / minimum
      Removed value: -0
    • removedInput schema / properties / hourSales / type
      Removed value: -"number"
    • addedInput schema / properties / hourlyWages / anyOf
      Added value: +[
      +  {
      +    "description": "Last period's gross pay for everyone paid by the hour, from payroll: by the days worked, overtime in, tips out. 0 if all are salaried (share only). Needed in every mode.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / hourlyWages / description
      Removed value: -"Last period's gross pay for everyone paid by the hour, from payroll: by the days worked, overtime in, tips out. 0 if all are salaried (share only). Needed in every mode."
    • removedInput schema / properties / hourlyWages / maximum
      Removed value: -1000000000
    • removedInput schema / properties / hourlyWages / minimum
      Removed value: -0
    • removedInput schema / properties / hourlyWages / type
      Removed value: -"number"
    • addedInput schema / properties / hours / anyOf
      Added value: +[
      +  {
      +    "description": "Hours those staff worked last period, from the time clock: overtime in, salaried managers out. Needed for hours and line.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / hours / description
      Removed value: -"Hours those staff worked last period, from the time clock: overtime in, salaried managers out. Needed for hours and line."
    • removedInput schema / properties / hours / maximum
      Removed value: -1000000000
    • removedInput schema / properties / hours / minimum
      Removed value: -0
    • removedInput schema / properties / hours / type
      Removed value: -"number"
    • addedInput schema / properties / overtimeHours / anyOf
      Added value: +[
      +  {
      +    "description": "Optional, for share: how many of the hours worked were overtime.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / overtimeHours / description
      Removed value: -"Optional, for share: how many of the hours worked were overtime."
    • removedInput schema / properties / overtimeHours / maximum
      Removed value: -1000000000
    • removedInput schema / properties / overtimeHours / minimum
      Removed value: -0
    • removedInput schema / properties / overtimeHours / type
      Removed value: -"number"
    • addedInput schema / properties / ownerPay / anyOf
      Added value: +[
      +  {
      +    "description": "Optional, for share: if the owner works without a salary, what someone doing their hours would cost, payroll taxes in. Shown as a second figure.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / ownerPay / description
      Removed value: -"Optional, for share: if the owner works without a salary, what someone doing their hours would cost, payroll taxes in. Shown as a second figure."
    • removedInput schema / properties / ownerPay / maximum
      Removed value: -1000000000
    • removedInput schema / properties / ownerPay / minimum
      Removed value: -0
    • removedInput schema / properties / ownerPay / type
      Removed value: -"number"
    • addedInput schema / properties / payrollCosts / anyOf
      Added value: +[
      +  {
      +    "description": "Optional: the employer's payroll taxes and benefits on that pay, such as health insurance. Left out, labor reads lower, unless the pay already includes them.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / payrollCosts / description
      Removed value: -"Optional: the employer's payroll taxes and benefits on that pay, such as health insurance. Left out, labor reads lower, unless the pay already includes them."
    • removedInput schema / properties / payrollCosts / maximum
      Removed value: -1000000000
    • removedInput schema / properties / payrollCosts / minimum
      Removed value: -0
    • removedInput schema / properties / payrollCosts / type
      Removed value: -"number"
    • addedInput schema / properties / salaries / anyOf
      Added value: +[
      +  {
      +    "description": "Optional: salaried pay for the period (a yearly salary ÷ 52, or ÷ 12 for a month).",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / salaries / description
      Removed value: -"Optional: salaried pay for the period (a yearly salary ÷ 52, or ÷ 12 for a month)."
    • removedInput schema / properties / salaries / maximum
      Removed value: -1000000000
    • removedInput schema / properties / salaries / minimum
      Removed value: -0
    • removedInput schema / properties / salaries / type
      Removed value: -"number"
    • addedInput schema / properties / sales / anyOf
      Added value: +[
      +  {
      +    "description": "Last period's net sales, in the owner's own currency like every amount here, from the POS: after discounts and comps, before tax and tips, plus any service charge paid out to staff. Needed for share, and for line without forecast.",
      +    "maximum": 1000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / sales / description
      Removed value: -"Last period's net sales, in the owner's own currency like every amount here, from the POS: after discounts and comps, before tax and tips, plus any service charge paid out to staff. Needed for share, and for line without forecast."
    • removedInput schema / properties / sales / maximum
      Removed value: -1000000000
    • removedInput schema / properties / sales / minimum
      Removed value: -0
    • removedInput schema / properties / sales / type
      Removed value: -"number"
    • addedInput schema / properties / target / anyOf
      Added value: +[
      +  {
      +    "description": "Optional, for hours and line: the owner's labor target, % of net sales (1 to 99). Left out: the top of the range, where the page starts.",
      +    "maximum": 99,
      +    "minimum": 1,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / target / description
      Removed value: -"Optional, for hours and line: the owner's labor target, % of net sales (1 to 99). Left out: the top of the range, where the page starts."
    • removedInput schema / properties / target / maximum
      Removed value: -99
    • removedInput schema / properties / target / minimum
      Removed value: -1
    • removedInput schema / properties / target / type
      Removed value: -"number"
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description adds real value on top: figures are not stored, only an anonymous daily count is kept, and a missing figure is never treated as zero. It also says the response includes the derivation and a pre-filled calculator link, though part of that overlaps with the existing output schema.

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

Conciseness3/5

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

Purpose is front-loaded in the opening clause, which is good, but the rest is a single dense run-on sentence of roughly 140 words where mode definitions, input lists, and retention notes all blur together. Splitting the mode table out would make it far more scannable.

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 13-parameter, three-mode calculator, the description covers the mode semantics, currency handling, missing-value behavior, retention, and return contents, and an output schema exists so return values need no further explanation. Only the less common optional parameters are left unexplained.

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 only 23% schema description coverage, the description carries real weight, and it does name the key inputs (net sales, hourly pay, hours worked, salaries, payroll costs, forecast, target, any currency). However, several parameters (hourSales, overtimeHours, ownerPay) are never mentioned, and the trailing "and more" leaves the rest to the schema.

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 (works out a restaurant's labor cost from payroll figures) and enumerates the three computational modes with what each produces. This clearly separates it from neighbors like prime_cost or break_even, which calculate different cost structures.

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 gives strong mode-selection guidance by naming each mode's required inputs (share needs sales and hourlyWages, hours needs forecast, etc.), so an agent can pick the right mode. It stops short of saying when to prefer this tool over siblings such as prime_cost, so it is clear context without explicit exclusions.

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