Skip to main content
Glama

BRAINIAC Electricity Market & Grid Intelligence

Calculate peak demand charges

electricity-market_peak-demand-charge-calculate
Read-onlyIdempotent

Calculate peak-demand charges from supplied peak kW and tariff peakDemandRate values. Docs: https://www.brainiac.software/api/electricity-market/peak-demand-charge-calculate 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_peak-demand-charge-calculate"
  }
}

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.
checkedAtNocheckedAt. String.
itemCountNoitemCount. Number.
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"
      +    },
      +    "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"
      +    },
      +    "itemCount": {
      +      "description": "itemCount. Number.",
      +      "type": "number"
      +    },
      +    "items": {
      +      "description": "items. Array.",
      +      "items": {
      +        "additionalProperties": {},
      +        "description": "item. Object.",
      +        "properties": {
      +          "apiKeyRequired": {
      +            "description": "apiKeyRequired. Boolean.",
      +            "type": "boolean"
      +          },
      +          "billId": {
      +            "description": "billId. String.",
      +            "type": "string"
      +          },
      +          "billingAccuracyClaimed": {
      +            "description": "billingAccuracyClaimed. Boolean.",
      +            "type": "boolean"
      +          },
      +          "currency": {
      +            "description": "currency. String.",
      +            "type": "string"
      +          },
      +          "demandUnit": {
      +            "description": "demandUnit. String.",
      +            "type": "string"
      +          },
      +          "paidProviderUsed": {
      +            "description": "paidProviderUsed. Boolean.",
      +            "type": "boolean"
      +          },
      +          "peakDemandCharge": {
      +            "description": "peakDemandCharge. Number.",
      +            "type": "number"
      +          },
      +          "peakDemandChargeSupplied": {
      +            "description": "peakDemandChargeSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "peakDemandRate": {
      +            "description": "peakDemandRate. Number.",
      +            "type": "number"
      +          },
      +          "peakDemandRateSupplied": {
      +            "description": "peakDemandRateSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "peakKw": {
      +            "description": "peakKw. Number.",
      +            "type": "number"
      +          },
      +          "peakKwSupplied": {
      +            "description": "peakKwSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "tariffId": {
      +            "description": "tariffId. String.",
      +            "type": "string"
      +          }
      +        },
      +        "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.1/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. The description adds only that the computation is derived from peak kW and a tariff demand rate, and says nothing about behavior for missing/partial input or how it handles the many optional passthrough datasets. Adequate given annotations, but thin.

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 first sentence is tight and front-loaded. The second is a documentation link plus a comma-separated keyword dump repeating schema property names, which adds no decision-relevant information and bloats the definition.

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

Completeness3/5

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

With an output schema present, return values need no explanation, and the charge formula inputs are given. However, for a 16-parameter tool with nested objects, saying nothing about why bills, tariffs, prices, generation, demand, outages, carbon, exposures and worldBank inputs exist leaves the agent guessing which inputs are actually required to get a meaningful result.

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%, which sets a baseline of 3, but the description contributes real signal: it identifies peakKw and the tariff's peakDemandRate as the two fields that actually matter out of 16 mostly unrelated parameters. That narrows an otherwise sprawling, permissive schema, though it doesn't explain the role of the 14 other optional collections.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Calculate peak-demand charges") and names the exact inputs that drive the calculation (peak kW and tariff peakDemandRate values). That is enough to distinguish it from analytics siblings like demand-profile-analyze or bill-tariff-reconcile, though it never explicitly contrasts with them.

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?

The only usage hint is the fragment "when reviewing electricity market or grid data," which is a vague trigger rather than a when-to-use rule. The remainder of the second sentence is a keyword list, and there is no statement of when not to use it or which sibling to pick instead (e.g., reconcile vs. calculate).

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