Skip to main content
Glama

ARERA Electricity & Natural Gas Bill Decomposer

arera_bill_decomposer
Read-onlyIdempotent

[Deterministic Italian electric & gas bill decomposition. Pure calculation, read-only, side-effect free]. Algorithmic breakdown of electricity and natural gas bills under ARERA regulatory texts (TIT/TIF), separating energy raw commodity (PUN/PSV), commercialization PCV, network transport and meter management, general system charges (ASOS/ARIM), and excise/VAT taxes. Usage: Use this tool to audit corporate and domestic utility invoices, verify regulated tariff components, and check energy-intensive exemptions. Returns: JSON object with { costDecompositionEur: object, unitCostAverages: object, costSharePercentages: object, auditVerdict: object }.

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": {
      "utilityType": "<utilityType>",
      "customerType": "<customerType>",
      "billedUnits": "<billedUnits>",
      "billingPeriodDays": "<billingPeriodDays>"
    },
    "name": "arera_bill_decomposer"
  }
}

Input Schema

NameRequiredDescriptionDefault
billedUnitsYesBilled consumption volume (kWh or Smc)
utilityTypeYesCommodity type
customerTypeYesCustomer contract category
billingPeriodDaysYesBilling interval in days (e.g. 30 or 61)
contractedPowerKwNoContracted power in kW (for electricity, e.g. 3, 15, 30)
energyRawPriceEurPerUnitNoSpecific energy wholesale or contracted rate in EUR/unit
isEnergyIntensiveCompanyNoWhether enterprise is registered as energy-intensive (energivoro) for ASOS discount

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 and destructiveHint=false, so the 'pure calculation, side-effect free' phrasing is partly redundant. Beyond that, the description adds real behavioral content: the decomposition follows ARERA regulatory texts and yields an audit verdict, which tells the agent this is a compliance-oriented computation rather than a plain split. It leaves one notable gap — whether PUN/PSV prices are fetched internally or must be supplied via energyRawPriceEurPerUnit.

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?

Well front-loaded: bracketed classification first, then algorithm detail, then Usage, then Returns. The bracketed clause restates annotation facts (read-only, side-effect free), which is minor waste, but the rest of the text is dense and non-repetitive.

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?

With 7 parameters (4 required) and no output schema, the description usefully enumerates the four top-level return keys, which is the right compensating move. What remains uncovered is input domain constraints (e.g., whether billedUnits must be positive, how gas Smc vs kWh is inferred) and the source of market prices.

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 100%, so the baseline is 3. The description goes further by tying domain concepts to parameters — the ASOS discount logic, which explains why isEnergyIntensiveCompany exists, and the PUN/PSV raw-commodity framing that gives meaning to energyRawPriceEurPerUnit. Contracted power and billing period are left 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 — algorithmic breakdown of Italian electricity and natural gas bills under ARERA TIT/TIF — and enumerates the exact component categories produced (PUN/PSV, PCV, transport/meter, ASOS/ARIM, excise/VAT). This is far more specific than the title and is unmistakable against any sibling in the catalog.

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?

An explicit Usage line gives three concrete scenarios: auditing corporate/domestic invoices, verifying regulated tariff components, and checking energy-intensive exemptions. It does not name exclusions or sibling alternatives, and it doesn't state prerequisites (e.g., that it is Italy/ARERA-specific and unusable for other jurisdictions), so it stops short of full routing guidance.

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