Skip to main content
Glama

The Comp Desk Builder

NY average weekly wage with tips, housing and concurrent wages

calculate_aww_with_adjustments
Read-onlyIdempotent

The average weekly wage the way the Pro Workspace's global AWW works it out. Gross earnings E = wages + tips and gratuities + the reasonable value of employer-provided housing (board, lodging and similar advantages), all for the same period, go inside the formula: earnings_method "steady" ((E ÷ days worked) × the 200/260/300/365 multiplier for a 4-/5-/6-/7-day week ÷ 52) or "irregular" (E ÷ weeks worked). Tips and housing are period totals, never weekly add-ons. A concurrent employer's weekly wage is added after the formula (Composite AWW, WCL §14(6)). With a date of accident it adds the two-thirds weekly rate within the max and min. For a 1–3 day week use calculate_aww. New York State only. Computes with The Comp Desk calc-core, the same engine as the app and the Pro Workspace; it never estimates. A missing input returns status "missing" and nothing is calculated. Returns the figures, the steps with the rule and engine function behind each, and the not-legal-advice notice. Needs your builder key. Same engine the Pro Workspace tiles call through CD.Calc, so a figure here matches the app to the cent.

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": {
      "earnings_method": "<earnings_method>",
      "total_earnings": "<total_earnings>"
    },
    "name": "calculate_aww_with_adjustments"
  }
}

Input Schema

NameRequiredDescriptionDefault
days_workedNosteady: days actually worked in the period.
weeks_workedNoirregular: weeks actually worked.
days_per_weekNosteady: days normally worked each week.
tips_in_periodNoOptional: tips and gratuities received in the SAME period, in dollars (a period total, not weekly).
total_earningsYesWages in the period, in dollars (before tips and housing).
earnings_methodYes
date_of_accidentNoOptional: adds the weekly rate. YYYY-MM-DD.
concurrent_weekly_wageNoOptional: weekly wage from a concurrent employer, in dollars (Composite AWW).
housing_value_in_periodNoOptional: reasonable value of employer-provided housing, board or lodging for the SAME period, in dollars (a period total, not weekly).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / concurrent_weekly_wage / description
      Previous value: -"Optional: weekly wage from a concurrent employer, in dollars."New value: +"Optional: weekly wage from a concurrent employer, in dollars (Composite AWW)."
    • addedInput schema / properties / housing_value_in_period
      Added value: +{
      +  "description": "Optional: reasonable value of employer-provided housing, board or lodging for the SAME period, in dollars (a period total, not weekly).",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / tips_in_period
      Added value: +{
      +  "description": "Optional: tips and gratuities received in the SAME period, in dollars (a period total, not weekly).",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / total_earnings / description
      Previous value: -"Gross earnings in the period, in dollars."New value: +"Wages in the period, in dollars (before tips and housing)."
    • removedInput schema / properties / weekly_board
      Removed value: -{
      -  "description": "Optional: weekly value of board/lodging, in dollars.",
      -  "minimum": 0,
      -  "type": "number"
      -}
    • removedInput schema / properties / weekly_tips
      Removed value: -{
      -  "description": "Optional: weekly tips, in dollars.",
      -  "minimum": 0,
      -  "type": "number"
      -}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, and the description adds real behavior beyond them: it requires a builder key, is NY-only, is deterministic ('never estimates'), returns status "missing" with no calculation when an input is absent, and returns figures plus step-by-step rule citations plus a not-legal-advice notice.

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?

The formula is front-loaded and the scoping constraint arrives early, which is good. But the closing two sentences ('Computes with The Comp Desk calc-core…' and 'Same engine the Pro Workspace tiles call through CD.Calc…') restate the same provenance claim twice, padding an already dense paragraph.

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?

For a 9-parameter calculation tool with no output schema, the description covers the inputs, the two method branches, the optional date-of-accident rate, the missing-input behavior, the auth requirement and the return shape. Nothing an agent needs to call it correctly is absent.

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 89%, so the baseline is 3, but the description adds meaning the schema does not: tips and housing are period totals rather than weekly add-ons, the concurrent employer wage is added after the formula, and the 200/260/300/365 multipliers map to the 4/5/6/7-day enum. The days_worked/weeks_worked split by method is implied but not restated.

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 description names a specific computation (New York average weekly wage including tips, housing and concurrent wages) and spells out the exact formula paths, so the agent knows precisely what comes back. It also explicitly separates itself from the sibling calculate_aww for the 1-3 day week case.

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 a concrete exclusion ('For a 1–3 day week use calculate_aww') and conditions for optional behavior ('With a date of accident it adds the two-thirds weekly rate'). It does not, however, explicitly tell the agent how to choose between 'steady' and 'irregular' other than by the implicit day/week counting, which is left to inference.

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