Skip to main content
Glama

BRAINIAC Electricity Market & Grid Intelligence

Reconcile electricity bills to tariffs

electricity-market_bill-tariff-reconcile
Read-onlyIdempotent

Reconcile billed totals to tariff-implied energy, demand, and fixed charges using only supplied rates and quantities. Docs: https://www.brainiac.software/api/electricity-market/bill-tariff-reconcile Keywords: when reviewing electricity market or grid data, text, csv, file, prices, demand, carbon, tariffs, bills, generation, outages, exposures, carbonIntensity, worldBank, feed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "electricity-market_bill-tariff-reconcile"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNocsv, string, length 0 to 200000. Optional.
asOfNoasOf, string, length 0 to 40. Optional.
feedNofeed, object. Optional.
fileNofile, object. Optional.
jsonNojson, string, length 0 to 200000. Optional.
textNotext, string, length 0 to 200000. Optional.
billsNobills, array. Optional.
carbonNocarbon, array. Optional.
demandNodemand, array. Optional.
pricesNoprices, array. Optional.
outagesNooutages, array. Optional.
tariffsNotariffs, array. Optional.
exposuresNoexposures, array. Optional.
worldBankNoworldBank, object. Optional.
generationNogeneration, array. Optional.
carbonIntensityNocarbonIntensity, object. Optional.

Output Schema

NameRequiredDescriptionDefault
itemsNoitems. Array.
statusNostatus. String.
findingsNofindings. Array.
billCountNobillCount. Number.
checkedAtNocheckedAt. String.
limitationsNolimitations. Array.
publicSourcesNopublicSources. Array.
apiKeyRequiredNoapiKeyRequired. Boolean.
forecastInventedNoforecastInvented. Boolean.
paidProviderUsedNopaidProviderUsed. Boolean.
billingAccuracyClaimedNobillingAccuracyClaimed. Boolean.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / limitations / items / description
      Previous value: -"Item. String."New value: +"item. String."
  2. Changed105 schema fields changed
    • addedInput schema / properties / asOf / description
      Added value: +"asOf, string, length 0 to 40. Optional."
    • addedInput schema / properties / bills / description
      Added value: +"bills, array. Optional."
    • addedInput schema / properties / bills / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / bills / items / properties / billedDemand / description
      Added value: +"billedDemand, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / bills / items / properties / billedEnergy / description
      Added value: +"billedEnergy, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / bills / items / properties / billedFixed / description
      Added value: +"billedFixed, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / bills / items / properties / billedTotal / description
      Added value: +"billedTotal, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / bills / items / properties / currency / description
      Added value: +"currency, string, length 0 to 12. Optional."
    • addedInput schema / properties / bills / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / bills / items / properties / kwh / description
      Added value: +"kwh, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / bills / items / properties / peakKw / description
      Added value: +"peakKw, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / bills / items / properties / periodEnd / description
      Added value: +"periodEnd, string, length 0 to 40. Optional."
    • addedInput schema / properties / bills / items / properties / periodStart / description
      Added value: +"periodStart, string, length 0 to 40. Optional."
    • addedInput schema / properties / bills / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • addedInput schema / properties / bills / items / properties / tariffId / description
      Added value: +"tariffId, string, length 0 to 80. Optional."
    • removedInput schema / properties / bills / maxItems
      Removed value: -200
    • addedInput schema / properties / carbon / description
      Added value: +"carbon, array. Optional."
    • addedInput schema / properties / carbon / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / carbon / items / properties / at / description
      Added value: +"at, string, length 0 to 40. Optional."
    • addedInput schema / properties / carbon / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / carbon / items / properties / index / description
      Added value: +"index, string, length 0 to 40. Optional."
    • addedInput schema / properties / carbon / items / properties / intensity / description
      Added value: +"intensity, number, from 0 to 1000000. Optional."
    • addedInput schema / properties / carbon / items / properties / region / description
      Added value: +"region, string, length 0 to 120. Optional."
    • addedInput schema / properties / carbon / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • addedInput schema / properties / carbon / items / properties / unit / description
      Added value: +"unit, string, length 0 to 40. Optional."
    • removedInput schema / properties / carbon / maxItems
      Removed value: -1000
    • addedInput schema / properties / carbonIntensity / description
      Added value: +"carbonIntensity, object. Optional."
    • addedInput schema / properties / carbonIntensity / properties / fetch / description
      Added value: +"fetch, boolean. Optional."
    • addedInput schema / properties / carbonIntensity / properties / forecast / description
      Added value: +"forecast, boolean. Optional."
    • addedInput schema / properties / carbonIntensity / properties / regionId / description
      Added value: +"regionId, integer, from 1 to 18. Optional."
    • addedInput schema / properties / csv / description
      Added value: +"csv, string, length 0 to 200000. Optional."
    • addedInput schema / properties / demand / description
      Added value: +"demand, array. Optional."
    • addedInput schema / properties / demand / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / demand / items / properties / at / description
      Added value: +"at, string, length 0 to 40. Optional."
    • addedInput schema / properties / demand / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / demand / items / properties / mw / description
      Added value: +"mw, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / demand / items / properties / region / description
      Added value: +"region, string, length 0 to 120. Optional."
    • addedInput schema / properties / demand / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • removedInput schema / properties / demand / maxItems
      Removed value: -1000
    • addedInput schema / properties / exposures / description
      Added value: +"exposures, array. Optional."
    • addedInput schema / properties / exposures / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / exposures / items / properties / hedgeRatio / description
      Added value: +"hedgeRatio, number, from 0 to 1. Optional."
    • addedInput schema / properties / exposures / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / exposures / items / properties / market / description
      Added value: +"market, string, length 0 to 120. Optional."
    • addedInput schema / properties / exposures / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • addedInput schema / properties / exposures / items / properties / volumeMwh / description
      Added value: +"volumeMwh, number, from 0 to 1000000000. Optional."
    • removedInput schema / properties / exposures / maxItems
      Removed value: -100
    • addedInput schema / properties / feed / description
      Added value: +"feed, object. Optional."
    • addedInput schema / properties / feed / properties / url / description
      Added value: +"url, string, uri, length 0 to 500. Optional."
    • addedInput schema / properties / file / description
      Added value: +"file, object. Optional."
    • addedInput schema / properties / file / properties / fileBase64 / description
      Added value: +"fileBase64, string, length 1 to 12000000. Required."
    • addedInput schema / properties / file / properties / filename / description
      Added value: +"filename, string, length 1 to 180. Optional."
    • addedInput schema / properties / file / properties / mediaType / description
      Added value: +"mediaType, string, one of text/plain, text/csv, application/json. Required."
    • addedInput schema / properties / generation / description
      Added value: +"generation, array. Optional."
    • addedInput schema / properties / generation / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / generation / items / properties / at / description
      Added value: +"at, string, length 0 to 40. Optional."
    • addedInput schema / properties / generation / items / properties / fuel / description
      Added value: +"fuel, string, length 0 to 80. Optional."
    • addedInput schema / properties / generation / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / generation / items / properties / isForecast / description
      Added value: +"isForecast, boolean. Optional."
    • addedInput schema / properties / generation / items / properties / mw / description
      Added value: +"mw, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / generation / items / properties / region / description
      Added value: +"region, string, length 0 to 120. Optional."
    • addedInput schema / properties / generation / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • removedInput schema / properties / generation / maxItems
      Removed value: -1000
    • addedInput schema / properties / json / description
      Added value: +"json, string, length 0 to 200000. Optional."
    • addedInput schema / properties / outages / description
      Added value: +"outages, array. Optional."
    • addedInput schema / properties / outages / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / outages / items / properties / cause / description
      Added value: +"cause, string, length 0 to 200. Optional."
    • addedInput schema / properties / outages / items / properties / customersAffected / description
      Added value: +"customersAffected, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / outages / items / properties / endedAt / description
      Added value: +"endedAt, string, length 0 to 40. Optional."
    • addedInput schema / properties / outages / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / outages / items / properties / region / description
      Added value: +"region, string, length 0 to 120. Optional."
    • addedInput schema / properties / outages / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • addedInput schema / properties / outages / items / properties / startedAt / description
      Added value: +"startedAt, string, length 0 to 40. Optional."
    • addedInput schema / properties / outages / items / properties / status / description
      Added value: +"status, string, length 0 to 80. Optional."
    • removedInput schema / properties / outages / maxItems
      Removed value: -500
    • addedInput schema / properties / prices / description
      Added value: +"prices, array. Optional."
    • addedInput schema / properties / prices / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / prices / items / properties / at / description
      Added value: +"at, string, length 0 to 40. Optional."
    • addedInput schema / properties / prices / items / properties / currency / description
      Added value: +"currency, string, length 0 to 12. Optional."
    • addedInput schema / properties / prices / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / prices / items / properties / market / description
      Added value: +"market, string, length 0 to 120. Optional."
    • addedInput schema / properties / prices / items / properties / price / description
      Added value: +"price, number, from -1000000 to 1000000. Optional."
    • addedInput schema / properties / prices / items / properties / product / description
      Added value: +"product, string, length 0 to 80. Optional."
    • addedInput schema / properties / prices / items / properties / region / description
      Added value: +"region, string, length 0 to 120. Optional."
    • addedInput schema / properties / prices / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • addedInput schema / properties / prices / items / properties / unit / description
      Added value: +"unit, string, length 0 to 40. Optional."
    • removedInput schema / properties / prices / maxItems
      Removed value: -1000
    • addedInput schema / properties / tariffs / description
      Added value: +"tariffs, array. Optional."
    • addedInput schema / properties / tariffs / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / tariffs / items / properties / currency / description
      Added value: +"currency, string, length 0 to 12. Optional."
    • addedInput schema / properties / tariffs / items / properties / demandUnit / description
      Added value: +"demandUnit, string, length 0 to 40. Optional."
    • addedInput schema / properties / tariffs / items / properties / energyRate / description
      Added value: +"energyRate, number, from 0 to 1000000. Optional."
    • addedInput schema / properties / tariffs / items / properties / fixedCharge / description
      Added value: +"fixedCharge, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / tariffs / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / tariffs / items / properties / name / description
      Added value: +"name, string, length 0 to 160. Optional."
    • addedInput schema / properties / tariffs / items / properties / peakDemandRate / description
      Added value: +"peakDemandRate, number, from 0 to 1000000. Optional."
    • addedInput schema / properties / tariffs / items / properties / source / description
      Added value: +"source, string, length 0 to 200. Optional."
    • addedInput schema / properties / tariffs / items / properties / unit / description
      Added value: +"unit, string, length 0 to 40. Optional."
    • removedInput schema / properties / tariffs / maxItems
      Removed value: -100
    • addedInput schema / properties / text / description
      Added value: +"text, string, length 0 to 200000. Optional."
    • addedInput schema / properties / worldBank / description
      Added value: +"worldBank, object. Optional."
    • addedInput schema / properties / worldBank / properties / country / description
      Added value: +"country, string, length 2 to 3. Optional."
    • addedInput schema / properties / worldBank / properties / indicator / description
      Added value: +"indicator, string, length 3 to 80. Optional."
    • addedInput schema / properties / worldBank / properties / perPage / description
      Added value: +"perPage, integer, from 1 to 60. Optional."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "apiKeyRequired": {
      +      "description": "apiKeyRequired. Boolean.",
      +      "type": "boolean"
      +    },
      +    "billCount": {
      +      "description": "billCount. Number.",
      +      "type": "number"
      +    },
      +    "billingAccuracyClaimed": {
      +      "description": "billingAccuracyClaimed. Boolean.",
      +      "type": "boolean"
      +    },
      +    "checkedAt": {
      +      "description": "checkedAt. String.",
      +      "type": "string"
      +    },
      +    "findings": {
      +      "description": "findings. Array.",
      +      "items": {
      +        "description": "Item. String.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "forecastInvented": {
      +      "description": "forecastInvented. Boolean.",
      +      "type": "boolean"
      +    },
      +    "items": {
      +      "description": "items. Array.",
      +      "items": {
      +        "additionalProperties": {},
      +        "description": "item. Object.",
      +        "properties": {
      +          "apiKeyRequired": {
      +            "description": "apiKeyRequired. Boolean.",
      +            "type": "boolean"
      +          },
      +          "billId": {
      +            "description": "billId. String.",
      +            "type": "string"
      +          },
      +          "billedTotal": {
      +            "description": "billedTotal. Number.",
      +            "type": "number"
      +          },
      +          "billedTotalSupplied": {
      +            "description": "billedTotalSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "billingAccuracyClaimed": {
      +            "description": "billingAccuracyClaimed. Boolean.",
      +            "type": "boolean"
      +          },
      +          "currency": {
      +            "description": "currency. String.",
      +            "type": "string"
      +          },
      +          "expectedDemand": {
      +            "description": "expectedDemand. Number.",
      +            "type": "number"
      +          },
      +          "expectedDemandSupplied": {
      +            "description": "expectedDemandSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "expectedEnergy": {
      +            "description": "expectedEnergy. Number.",
      +            "type": "number"
      +          },
      +          "expectedEnergySupplied": {
      +            "description": "expectedEnergySupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "expectedFixed": {
      +            "description": "expectedFixed. Number.",
      +            "type": "number"
      +          },
      +          "expectedFixedSupplied": {
      +            "description": "expectedFixedSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "expectedTotal": {
      +            "description": "expectedTotal. Number.",
      +            "type": "number"
      +          },
      +          "expectedTotalSupplied": {
      +            "description": "expectedTotalSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "kwh": {
      +            "description": "kwh. Number.",
      +            "type": "number"
      +          },
      +          "kwhSupplied": {
      +            "description": "kwhSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "paidProviderUsed": {
      +            "description": "paidProviderUsed. Boolean.",
      +            "type": "boolean"
      +          },
      +          "peakKw": {
      +            "description": "peakKw. Number.",
      +            "type": "number"
      +          },
      +          "peakKwSupplied": {
      +            "description": "peakKwSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "periodEnd": {
      +            "description": "periodEnd. String.",
      +            "type": "string"
      +          },
      +          "periodStart": {
      +            "description": "periodStart. String.",
      +            "type": "string"
      +          },
      +          "tariffId": {
      +            "description": "tariffId. String.",
      +            "type": "string"
      +          },
      +          "variance": {
      +            "description": "variance. Number.",
      +            "type": "number"
      +          },
      +          "varianceSupplied": {
      +            "description": "varianceSupplied. Boolean.",
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "limitations": {
      +      "description": "limitations. Array.",
      +      "items": {
      +        "description": "Item. String.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "paidProviderUsed": {
      +      "description": "paidProviderUsed. Boolean.",
      +      "type": "boolean"
      +    },
      +    "publicSources": {
      +      "description": "publicSources. Array.",
      +      "items": {
      +        "description": "Item. String.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "status. String.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds a useful behavioral claim that computation is deterministic and limited to supplied rates/quantities, but that claim sits in slight tension with openWorldHint=true and the feed.url / carbonIntensity.fetch parameters that reach outside data. It says nothing about how mismatched units/currencies or missing billed components are handled.

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 lead sentence is well-formed and front-loaded, and the docs link is acceptable. The third sentence is a keyword dump ('text, csv, file, prices, demand, carbon, tariffs, bills, generation, outages, exposures, carbonIntensity, worldBank, feed') that largely restates schema property names and consumes roughly half the description without conveying behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, deeply nested tool with zero required parameters, the agent needs to know the minimum viable payload (presumably bills plus tariffs) and how optional side data affects the result; the description does not say. The existing output schema relieves it of explaining return values, but the input-side guidance gap is significant for a tool this complex.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 16 parameters is already documented, which sets the baseline at 3. The description only implies that 'bills' and 'tariffs' are the operative inputs; it does not clarify the minimum required combination (all parameters are optional), unit alignment between bills and tariffs, or what asOf/feed/worldBank contribute to a reconciliation.

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 first sentence names a specific verb (reconcile), the exact objects (billed totals vs. tariff-implied energy, demand, fixed charges), and a scoping constraint ('using only supplied rates and quantities'). That is enough to separate it from siblings like peak-demand-charge-calculate (which computes one charge) or exposure-report.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to choose this tool over peak-demand-charge-calculate, exposure-report, or price-compare, and no prerequisites or exclusions. The 'Keywords:' tail lists domain nouns but gives no routing logic, so the agent must infer usage from the name alone.

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