Skip to main content
Glama

Energy demand charge check

wever_energy-demand-charge-check
Read-only

Agent Energy: submit a commercial bill’s demand charge with interval usage and the tariff’s demand rules: optionally the tariff with its name, demand rate per kW, interval length in minutes (15 when left out), the peak window with its days (weekdays or every day) and its opening and closing times, the ratchet with its share of the highest earlier peak and its look-back months, and the power factor threshold; the intervals with each start in local meter time and its kW or kWh (an empty list when none); earlier months’ peaks for a ratchet; the measured power factor; the bill with its period, billed kW, printed demand rate, demand charge, and whether it says a ratchet or a power factor adjustment set the billed demand; and optionally the tolerance in kW (0.1 when left out). The signed report gives the intervals with the expected and supplied counts, the window and the peak inside it and at any time, the demand with the period’s own peak, the ratchet floor, the power factor, the recomputed and billed kW and their difference, the charge with the tariff and billed rates and the recomputed and billed charge, and counts them, and names an overstated charge: billed demand above the highest counted interval, a peak taken outside the window, a ratchet or power factor adjustment the rules do not call for, a rate above the tariff and a charge above the recomputed charge; then billed demand, a rate or a charge below the recomputed figures and missing intervals, with the fix for each and what would change the verdict. No intervals, rate, look-back history, power factor or billing period leave the charge unverified. This recomputes one demand charge: the bill’s other lines against the tariff and usage are wever_energy-bill-check, an invoice against its job is wever_invoice-check and fees charged against a stated schedule are wever_fee-reconciliation-check. Verdict energy_demand_overstated, energy_demand_partial, energy_demand_unverified or energy_demand_correct. POST /api/energy-demand-charge-check. Reads the energy records supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; the records stay in the report, with no network request, fetch, message, payment or external write. Agent Energy reads an energy customer’s own records and recomputes what they claim: the rate plan billed against the plan quoted, a solar or PPA proposal’s production and savings against its stated assumptions, a supply contract against what was agreed, a charging session against the posted price, a carbon credit or certificate claim against its retirement records, a utility bill against its tariff and usage, a commercial demand charge against interval usage and the tariff’s demand rules, and an equipment efficiency or savings claim against its rating and baseline. Beside it, wever_invoice-check reads any invoice against the job it belongs to and wever_fee-evidence-check a fee schedule against a quote or invoice, while an energy check recomputes energy charges from rates, usage and the tariff’s own rules; wever_contract-diff-check compares two versions of one text, while the contract check reads the signed contract against what was agreed; and wever_environmental-evidence-check reads sustainability claims against offered evidence, while the carbon claim check reads the retirement records behind one claim. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-energy-contract. Human page: https://weverlabs.com/agent-energy/.

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": {
      "bill": "<bill>"
    },
    "name": "wever_energy-demand-charge-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
billYes
labelNoOptional name recorded in the report.
tariffNo
historyNoEarlier peaks, for a ratchet.
intervalsNo
power_factorNoMeasured, such as 0.93.
tolerance_kwNo0.1 when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, but the description adds a lot beyond them: pricing (0.10 USDC per call on Base via x402 exact, 10 signed-wallet free calls per rolling 30 days), the X-Wever-Wallet-Proof auth binding requirement, and the explicit assurance that "the records stay in the report, with no network request, fetch, message, payment or external write." It also discloses the Ed25519 signed receipt and the four possible verdict values, so an agent knows exactly what a call costs, requires and returns.

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

Conciseness2/5

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

The core purpose ("This recomputes one demand charge") is buried in the middle of one enormous run-on paragraph, after a long data-enumeration sentence and a full product-family catalogue. Substantial text — the Agent Energy overview, the paid URL, contract and human page links — is boilerplate that does not help this call be selected or invoked correctly.

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 nested-object tool with no output schema, the description is substantively complete: it describes the report's contents (interval counts, window peak, demand, ratchet floor, power factor, recomputed vs billed kW and charge), the verdict enum, and the finding/fix structure. The gaps are structural rather than informational — nothing an agent needs in order to call it 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?

With schema description coverage at 57%, the description does real work: it walks through bill fields (period, billed kW, printed rate, charge, ratchet/PF flags), tariff fields (rate per kW, interval length, peak window with days, ratchet share and look-back months, PF threshold), interval start in local meter time with kW or kWh, history peaks and measured power factor. It also restates the defaults (15-minute intervals, 0.1 kW tolerance) and the kW/kWh fallback, which the schema partly carries already — hence not a 5.

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 verb and resource ("recomputes one demand charge" from interval usage plus the tariff's demand rules) and explicitly maps the neighboring scopes: bill's other lines to wever_energy-bill-check, an invoice against its job to wever_invoice-check, fees against a schedule to wever_fee-reconciliation-check. An agent can select this tool over those siblings without opening any 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?

It gives an explicit routing rule ("This recomputes one demand charge: the bill's other lines against the tariff and usage are wever_energy-bill-check") and states the prerequisites that select the tool, e.g. "No intervals, rate, look-back history, power factor or billing period leave the charge unverified." What is missing is a crisp negative case — when a caller should stop and use a different energy check — though the sibling mapping implies it.

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