Skip to main content
Glama

The Comp Desk Builder

NY award for benefit periods, full CCP engine

calculate_ccp_award_detailed
Read-onlyIdempotent

The full Pro Workspace CCP / Award engine: periods of type TT (total), RE (reduced earnings, with current weekly earnings), TR / TP (a disability percentage of two-thirds of the wage, or a typed weekly rate), NCLT / NME ($0) and HIA (held in abeyance, no weeks); weeks counted with both ends, the shared boundary day once, rounded down to none / tenth / whole (default tenth); each rate within the max and min for the date of accident (RE capped, never raised); an amending period paid at its rate less a prior percentage or prior weekly rate; already-paid periods kept in the award but out of the money moving and fee; employer reimbursements per period with scope "period", "all" or a "specific" date range (or amount unknown); the CCP fee (the weekly CCP amount ÷ 3); prior payments; and the prior-counsel split. Returns every period, the award, the exact fee, the OC-400.1 amount rounded down to $5 and both nets. calculate_ccp_award is the simpler TT/TP/RE version. 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": {
      "aww": "<aww>",
      "date_of_accident": "<date_of_accident>",
      "periods": "<periods>"
    },
    "name": "calculate_ccp_award_detailed"
  }
}

Input Schema

NameRequiredDescriptionDefault
awwYesAverage weekly wage, in dollars.
periodsYes
prior_paymentsNoOptional: dollars already paid on these periods.
weeks_roundingNoOptional; default tenth.
date_of_accidentYesDate of accident. YYYY-MM-DD.
ccp_weekly_amountNoOptional: the weekly CCP amount; its fee is the amount ÷ 3.
prior_counsel_feesNoOptional: each prior counsel's dollar share of the fee.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the description's remaining burden is low; it still adds real context beyond them: it never estimates, a missing required input yields status "missing" with nothing calculated, it requires a builder key, and the response includes per-step rule/engine-function provenance plus a not-legal-advice notice. It does not discuss rate limits, maximum period count, or failure modes beyond the missing-input case.

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 core content is front-loaded, but almost the entire definition is one enormous semicolon-chained sentence that is hard to parse on a first read. It also repeats the provenance claim twice ('the same engine as the app and the Pro Workspace' and 'Same engine the Pro Workspace tiles call through CD.Calc'), which is redundant padding.

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 7-parameter, no-output-schema, domain-heavy calculation tool, it covers what is returned, the missing-input status behavior, the builder-key requirement, and the provenance of the figures. It leaves the maxItems=24 period cap and any behavior on invalid or out-of-range period data to the schema, which is a minor but real gap.

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 86%, so the baseline is 3, and the description earns above that by supplying rule semantics the schema cannot: weeks counted with both ends and the shared boundary day counted once, rounding modes with default tenth, rates clamped to the max/min for the date of accident with RE capped but never raised, amending paid at the prior rate less prior percentage or prior weekly rate, already-paid periods kept in the award but out of money moving and fee, and the three reimbursement scopes. It doesn't add anything for aww, date_of_accident, or ccp_weekly_amount beyond 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?

Names a specific verb (computes an NY CCP award) plus the exact scope: which period types are supported, what is returned (every period, the award, fee, OC-400.1 amount rounded to $5, both nets), and the jurisdiction (New York State only). It also explicitly differentiates itself from the sibling calculate_ccp_award, calling that the 'simpler TT/TP/RE version', so an agent can pick between the two without opening either schema.

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 clear context for selection: use this full engine when the award involves RE/TR/TP/NCLT/NME/HIA periods, employer reimbursements, amending periods, or the prior-counsel split, versus the simpler calculate_ccp_award. It also states the NY-only restriction and that a missing input returns status "missing" rather than a partial result. It stops short of an explicit 'do not use this for X' exclusion or guidance on when to run calculate_ccp_award first.

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