Skip to main content
Glama

HVAC Charge: superheat and subcooling calculator

Refrigerant leak rate (EPA 40 CFR 84.106, AIM Act)

calculate_refrigerant_leak_rate
Read-onlyIdempotent

Leak rate of a refrigeration or AC appliance under the US EPA HFC leak repair rule, 40 CFR 84 subpart C (§84.102 and §84.106, AIM Act technology transitions, in force from January 1, 2026): annualizing method (added ÷ full charge × 365 ÷ days since the last addition, 365 at most) or rolling average method (added in the last 365 days ÷ full charge). Compared with the leak rate thresholds: 20 % commercial refrigeration, 30 % industrial process refrigeration, 10 % comfort cooling and other appliances, for 15 lb or more of an HFC. Gives the repair, verification test and retrofit-plan deadlines and inspections that follow an exceedance.

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": {
      "full_charge": "<full_charge>",
      "refrigerant_added": "<refrigerant_added>"
    },
    "name": "calculate_refrigerant_leak_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoannualizing
full_chargeYesFull charge of the appliance
refrigerantNoR-404A
weight_unitNolb
appliance_typeNocommercial_refrigeration
refrigerant_addedYesAnnualizing: this addition (all entries for the same leak). Rolling: everything added in the last 365 days, or since the last passed follow-up verification test
added_this_calendar_yearNoOptional, for the 125 % chronic-leak report
days_since_last_additionNoAnnualizing only: days since refrigerant was last added; omit for the first addition since January 1, 2026 (365 days are used)
repair_needs_industrial_shutdownNo120 days to repair instead of 30

Output Schema

NameRequiredDescriptionDefault
moreYes
ruleYes
methodYes
formulaYes
coverageYesWhy §84.106 does or doesn't reach the appliance
over_thresholdYesMore than the threshold, not equal to it
covered_by_ruleYes
required_actionsYes
threshold_percentYes
chronic_leak_reportNo§84.106(j): 125 % of the full charge in a year
leak_rate_percent_per_yearYes

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 readOnlyHint/idempotentHint/destructiveHint=false, so safety is covered; the description instead adds what the annotations cannot — the rule version, the January 1, 2026 in-force date, the formula constants, and that the result feeds repair, verification-test and retrofit-plan deadlines plus inspections. It stops short of noting limitations such as behavior for refrigerants outside the HFC scope or when the calendar-year figure is omitted.

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 purpose and regulation, then the methods, then thresholds, then consequences — a logical progression. The single dense paragraph with nested parentheticals is heavier than ideal, but each clause (formula, 365-day cap, thresholds, deadlines) carries substantive meaning rather than filler.

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 9-parameter regulatory calculator with an output schema and full annotations, the description supplies the domain framing, both method formulas, thresholds and downstream obligations. The remaining gap is that two of the six appliance_type enum values are unaddressed, so an agent choosing between them gets no threshold guidance.

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?

With schema coverage at 56%, the description carries real weight by attaching threshold semantics to appliance types (20% commercial refrigeration, 30% industrial process refrigeration, 10% comfort cooling and other) and clarifying how 'added' differs between methods. It does not map the enum values refrigerated_transport or residential_light_commercial_ac to a threshold, nor explain the 15 lb applicability test against weight_unit, leaving some selection ambiguity.

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+resource — computes the leak rate of a refrigeration/AC appliance under 40 CFR 84 subpart C — and pins down the exact regulatory basis, the two calculation methods, and the threshold comparison. An agent can tell this apart from the lookup/P-T siblings (check_refrigerant_charge, lookup_refrigerant_pt, find_target_superheat) without opening the 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 conditional guidance on which of the two methods applies (annualizing = added ÷ full charge × 365 ÷ days since last addition, capped at 365; rolling = last 365 days of additions ÷ full charge) and states the applicability floor of 15 lb or more of an HFC. It does not explicitly exclude scenarios or name a sibling alternative, so it falls short of a 5.

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.