Skip to main content
Glama

sodural-electrical-mcp

Markov Substation Availability & VoLL Risk Evaluator

brain_calc_system_reliability
Read-onlyIdempotent

Calculate steady-state Markov operational availability ratio A, failure rate lambda (failures/yr), expected annual downtime hours and minutes, logarithmic nines index, and Value of Lost Load (VoLL) outage economics across series, parallel, open-loop, and k-out-of-n architectures. Use when quantifying architecture availability, EENS energy loss, and outage cost risk; do NOT use for battery autonomy sizing, H2 ventilation, or AC power flow -- call brain_calc_critical_power_safety or sodural_solve_topology_whitebox instead. Behavior: Runs stateless Markov reliability tree evaluation in memory with zero database mutations; negative failure rates, out-of-range load factors, or non-object payloads return JSON-RPC -32602, whereas empty calls default to mode="evaluate" using the double-feed MV preset. Returns: mode, system, reliability, availabilityPct, unavailabilityHoursPerYear, unavailabilityMinutesPerYear, loadProfile, economics, calculationTrace, and legalNotice.

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": "brain_calc_system_reliability"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoReliability topology evaluation mode selector (defaults to "evaluate").evaluate
loadKwNoPeak electrical demand served by the substation in kW (>= 0) for EENS valuation.
presetIdNoReference industrial/substation reliability architecture preset ID (e.g. "double_feed_pasa_20kv").
sectorIdNoEconomic industrial or tertiary sector key selecting VoLL in EUR/MWh.
topologyNoHierarchical reliability block diagram definition overriding preset topology.
componentsNoFlat list of components used directly by series, parallel, and k-out-of-n modes.
loadFactorNoAnnual utilization factor in [0, 1] scaling active load exposure (preset-dependent default).

Output Schema

NameRequiredDescriptionDefault
modeNoExecuted reliability evaluation mode.
systemNoEquivalent system failure frequency lambda, MTTR, and availability summary.
economicsNoExpected Energy Not Supplied (EENS MWh/yr) and annualized outage risk cost (EUR/yr).
legalNoticeNoInformational engineering compliance notice confirming SI physical scope and intellectual property rules.
loadProfileNoEvaluated substation demand and load-factor profile.
reliabilityNoComputed Markov steady-state availability A, unavailability Q, and nines index.
availabilityPctNoSteady-state operational availability percentage (%).
calculationTraceNoTransparent audit trail detailing inputs, injected defaults, formulas, constants, principles, and assumptions.
unavailabilityHoursPerYearNoExpected annual service interruption duration in hours/year.
unavailabilityMinutesPerYearNoExpected annual service interruption duration in minutes/year.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed46 schema fields changed
    • changedInput schema / properties / components / items / properties / lambdaPerYear / description
      Previous value: -"Annual failure rate lambda in failures/year."New value: +"Annual failure rate lambda in failures/year (>= 0)."
    • addedInput schema / properties / components / items / properties / lambdaPerYear / minimum
      Added value: +0
    • changedInput schema / properties / components / items / properties / mttrHours / description
      Previous value: -"Mean Time To Repair (or replacement) in hours."New value: +"Mean Time To Repair or replacement duration in hours (>= 0)."
    • addedInput schema / properties / components / items / properties / mttrHours / minimum
      Added value: +0
    • changedInput schema / properties / loadFactor / description
      Previous value: -"Annual utilization factor between 0 and 1 scaling active load loss."New value: +"Annual utilization factor in [0, 1] scaling active load exposure (preset-dependent default)."
    • addedInput schema / properties / loadFactor / maximum
      Added value: +1
    • addedInput schema / properties / loadFactor / minimum
      Added value: +0
    • changedInput schema / properties / loadKw / description
      Previous value: -"Average electrical demand served by the substation in kW for EENS valuation."New value: +"Peak electrical demand served by the substation in kW (>= 0) for EENS valuation."
    • addedInput schema / properties / loadKw / minimum
      Added value: +0
    • changedInput schema / properties / mode / description
      Previous value: -"Reliability topology evaluation mode (defaults to \"evaluate\")."New value: +"Reliability topology evaluation mode selector (defaults to \"evaluate\")."
    • changedInput schema / properties / sectorId / description
      Previous value: -"Economic industrial/tertiary sector key selecting VoLL (EUR/MWh)."New value: +"Economic industrial or tertiary sector key selecting VoLL in EUR/MWh."
    • changedInput schema / properties / topology / properties / label / description
      Previous value: -"Human-readable architecture title."New value: +"Human-readable substation reliability architecture title."
    • changedInput schema / properties / topology / properties / nodes / items / properties / lengthKm / description
      Previous value: -"Line/cable route length multiplier in km for per-km failure scaling."New value: +"Line or cable route length multiplier in km (>= 0)."
    • addedInput schema / properties / topology / properties / nodes / items / properties / lengthKm / minimum
      Added value: +0
    • changedInput schema / properties / topology / properties / nodes / items / properties / name / description
      Previous value: -"Component or branch descriptive label."New value: +"Component or branch descriptive equipment label."
    • changedInput schema / properties / topology / properties / nodes / items / properties / type / description
      Previous value: -"Node kind (\"COMPONENT\", \"SERIES\", \"PARALLEL\")."New value: +"Node block kind (\"COMPONENT\", \"SERIES\", \"PARALLEL\")."
    • addedOutput schema / properties / economics / properties / capexAnnualizedEur
      Added value: +{
      +  "description": "Optional annualized capital expenditure in EUR/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / ensCostEurPerYear
      Added value: +{
      +  "description": "Annualized energy-unserved outage cost in EUR/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / ensMwhPerYear
      Added value: +{
      +  "description": "Expected Energy Not Supplied (EENS) in MWh/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / fixedEventCostEurPerYear
      Added value: +{
      +  "description": "Annualized interruption-event fixed cost in EUR/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / mrrEurPerYear
      Added value: +{
      +  "description": "Total annualized risk + capital cost objective in EUR/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / specificInterruptCostEurPerKw
      Added value: +{
      +  "description": "Fixed per-outage interruption cost in EUR/kW.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / totalOutageCostEurPerYear
      Added value: +{
      +  "description": "Combined expected annual outage risk cost in EUR/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / economics / properties / vollEurPerMwh
      Added value: +{
      +  "description": "Applied Value of Lost Load (VoLL) tariff in EUR/MWh.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / loadProfile
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Evaluated substation demand and load-factor profile.",
      +  "properties": {
      +    "averagePowerMw": {
      +      "description": "Equivalent annual average demand power in MW.",
      +      "type": "number"
      +    },
      +    "loadFactor": {
      +      "description": "Applied annual load utilization factor in [0, 1].",
      +      "type": "number"
      +    },
      +    "peakLoadKw": {
      +      "description": "Evaluated peak demand power in kW.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / reliability / properties / availabilityRatio
      Added value: +{
      +  "description": "Steady-state operational availability ratio A in [0, 1].",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / componentCount
      Added value: +{
      +  "description": "Total number of reliability components aggregated in block.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / dominantContributors
      Added value: +{
      +  "description": "Ordered list of dominant failure and downtime contributors.",
      +  "items": {
      +    "additionalProperties": true,
      +    "description": "Dominant system unavailability contributor record.",
      +    "properties": {
      +      "downtimeSharePct": {
      +        "description": "Percentage share of total annual system downtime (%).",
      +        "type": "number"
      +      },
      +      "lambdaPerYear": {
      +        "description": "Component failure rate in failures/year.",
      +        "type": "number"
      +      },
      +      "mttrHours": {
      +        "description": "Component repair time in hours.",
      +        "type": "number"
      +      },
      +      "name": {
      +        "description": "Component or branch label contributing to downtime.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / reliability / properties / exactProductAvailability
      Added value: +{
      +  "description": "Exact analytical series/parallel product availability.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / inherentAvailability
      Added value: +{
      +  "description": "Inherent MTBF/(MTBF+MTTR) availability ratio in [0, 1].",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / lambdaPerYear
      Added value: +{
      +  "description": "Equivalent annual failure frequency lambda in failures/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / model
      Added value: +{
      +  "description": "Evaluated Markov reliability topology model label.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / reliability / properties / mttrHours
      Added value: +{
      +  "description": "Equivalent Mean Time To Repair in hours.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / nines
      Added value: +{
      +  "description": "Logarithmic availability index (-log10(1 - A)) in nines.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reliability / properties / unavailabilityHoursPerYear
      Added value: +{
      +  "description": "Expected annual unavailability duration in hours/year.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / system / description
      Previous value: -"Equivalent system failure frequency lambda, MTTR, and MTTF summary."New value: +"Equivalent system failure frequency lambda, MTTR, and availability summary."
    • addedOutput schema / properties / system / properties / availabilityRatio
      Added value: +{
      +  "description": "Steady-state operational availability ratio A in [0, 1].",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / componentCount
      Added value: +{
      +  "description": "Total number of reliability components aggregated in block.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / dominantContributors
      Added value: +{
      +  "description": "Ordered list of dominant failure and downtime contributors.",
      +  "items": {
      +    "additionalProperties": true,
      +    "description": "Dominant system unavailability contributor record.",
      +    "properties": {
      +      "downtimeSharePct": {
      +        "description": "Percentage share of total annual system downtime (%).",
      +        "type": "number"
      +      },
      +      "lambdaPerYear": {
      +        "description": "Component failure rate in failures/year.",
      +        "type": "number"
      +      },
      +      "mttrHours": {
      +        "description": "Component repair time in hours.",
      +        "type": "number"
      +      },
      +      "name": {
      +        "description": "Component or branch label contributing to downtime.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / system / properties / exactProductAvailability
      Added value: +{
      +  "description": "Exact analytical series/parallel product availability.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / inherentAvailability
      Added value: +{
      +  "description": "Inherent MTBF/(MTBF+MTTR) availability ratio in [0, 1].",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / lambdaPerYear
      Added value: +{
      +  "description": "Equivalent annual failure frequency lambda in failures/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / model
      Added value: +{
      +  "description": "Evaluated Markov reliability topology model label.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / system / properties / mttrHours
      Added value: +{
      +  "description": "Equivalent Mean Time To Repair in hours.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / nines
      Added value: +{
      +  "description": "Logarithmic availability index (-log10(1 - A)) in nines.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / system / properties / unavailabilityHoursPerYear
      Added value: +{
      +  "description": "Expected annual unavailability duration in hours/year.",
      +  "type": "number"
      +}
  2. Changed15 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • addedInput schema / properties / components / description
      Added value: +"Flat list of components used directly by series, parallel, and k-out-of-n modes."
    • addedInput schema / properties / components / items / additionalProperties
      Added value: +true
    • addedInput schema / properties / components / items / description
      Added value: +"Flat component reliability entry for series/parallel modes."
    • addedInput schema / properties / components / items / properties
      Added value: +{
      +  "catalogId": {
      +    "description": "Reference component benchmark catalog identifier.",
      +    "type": "string"
      +  },
      +  "lambdaPerYear": {
      +    "description": "Annual failure rate lambda in failures/year.",
      +    "type": "number"
      +  },
      +  "mttrHours": {
      +    "description": "Mean Time To Repair (or replacement) in hours.",
      +    "type": "number"
      +  },
      +  "name": {
      +    "description": "Human-readable reliability component label or tag.",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / loadFactor / description
      Added value: +"Annual utilization factor between 0 and 1 scaling active load loss."
    • addedInput schema / properties / loadKw / description
      Added value: +"Average electrical demand served by the substation in kW for EENS valuation."
    • addedInput schema / properties / mode / default
      Added value: +"evaluate"
    • addedInput schema / properties / mode / description
      Added value: +"Reliability topology evaluation mode (defaults to \"evaluate\")."
    • addedInput schema / properties / presetId / description
      Added value: +"Reference industrial/substation reliability architecture preset ID (e.g. \"double_feed_pasa_20kv\")."
    • addedInput schema / properties / sectorId / description
      Added value: +"Economic industrial/tertiary sector key selecting VoLL (EUR/MWh)."
    • addedInput schema / properties / topology / additionalProperties
      Added value: +true
    • addedInput schema / properties / topology / description
      Added value: +"Hierarchical reliability block diagram definition overriding preset topology."
    • addedInput schema / properties / topology / properties
      Added value: +{
      +  "label": {
      +    "description": "Human-readable architecture title.",
      +    "type": "string"
      +  },
      +  "nodes": {
      +    "description": "Ordered array of child components or nested sub-blocks.",
      +    "items": {
      +      "additionalProperties": true,
      +      "description": "Reliability block node descriptor.",
      +      "properties": {
      +        "catalogId": {
      +          "description": "Component failure-rate benchmark catalog identifier.",
      +          "type": "string"
      +        },
      +        "lengthKm": {
      +          "description": "Line/cable route length multiplier in km for per-km failure scaling.",
      +          "type": "number"
      +        },
      +        "name": {
      +          "description": "Component or branch descriptive label.",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Node kind (\"COMPONENT\", \"SERIES\", \"PARALLEL\").",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "type": {
      +    "description": "Top-level reliability block composition (\"SERIES\", \"PARALLEL\", \"K_OUT_OF_N\", \"OPEN_LOOP\").",
      +    "type": "string"
      +  }
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Markov substation availability and VoLL economic risk report with calculationTrace and legalNotice.",
      +  "properties": {
      +    "availabilityPct": {
      +      "description": "Steady-state operational availability percentage (%).",
      +      "type": "number"
      +    },
      +    "calculationTrace": {
      +      "additionalProperties": true,
      +      "description": "Transparent audit trail detailing inputs, injected defaults, formulas, constants, principles, and assumptions.",
      +      "properties": {
      +        "defaultsApplied": {
      +          "additionalProperties": true,
      +          "description": "Default physical or engineering assumptions injected when optional inputs were omitted.",
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "engineeringAssumptions": {
      +          "description": "Explicit boundary assumptions required to interpret the numerical output.",
      +          "items": {
      +            "description": "Boundary condition or validity assumption for the calculation.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "formulasAndConstants": {
      +          "additionalProperties": true,
      +          "description": "Mathematical formulas and SI physical constants bound to this calculation mode.",
      +          "properties": {
      +            "constants": {
      +              "additionalProperties": true,
      +              "description": "Map of physical constants, resistivities, and design coefficients in SI units.",
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "formulas": {
      +              "description": "Ordered list of physical equations evaluated by the calculation engine.",
      +              "items": {
      +                "description": "Symbolic engineering formula string used during evaluation.",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "inputsProvided": {
      +          "additionalProperties": true,
      +          "description": "Non-empty normalized input parameters explicitly supplied by the caller.",
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "mode": {
      +          "description": "Normalized calculation mode executed for the current payload.",
      +          "type": "string"
      +        },
      +        "physicalPrinciples": {
      +          "description": "Key physical principles governing the computed result.",
      +          "items": {
      +            "description": "Concise statement of an underlying electrical or thermal principle.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "tool": {
      +          "description": "Resolved Brain tool identifier audited by the calculation tracer.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "economics": {
      +      "additionalProperties": true,
      +      "description": "Expected Energy Not Supplied (EENS MWh/yr) and annualized outage risk cost (EUR/yr).",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "legalNotice": {
      +      "description": "Informational engineering compliance notice confirming SI physical scope and intellectual property rules.",
      +      "type": "string"
      +    },
      +    "mode": {
      +      "description": "Executed reliability evaluation mode.",
      +      "type": "string"
      +    },
      +    "reliability": {
      +      "additionalProperties": true,
      +      "description": "Computed Markov steady-state availability A, unavailability Q, and nines index.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "system": {
      +      "additionalProperties": true,
      +      "description": "Equivalent system failure frequency lambda, MTTR, and MTTF summary.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "unavailabilityHoursPerYear": {
      +      "description": "Expected annual service interruption duration in hours/year.",
      +      "type": "number"
      +    },
      +    "unavailabilityMinutesPerYear": {
      +      "description": "Expected annual service interruption duration in minutes/year.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), the description discloses that evaluation is stateless and in-memory with zero database mutations, specifies the exact error condition (JSON-RPC -32602 for negative failure rates, out-of-range load factors, non-object payloads), and states the empty-call fallback (mode='evaluate' with the double-feed MV preset). These are behavioral traits the annotations cannot convey.

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?

The purpose and the when/when-not guidance are front-loaded in the first two sentences, and there is no filler. The final 'Returns:' enumeration is long and partly redundant given an output schema exists, which costs some tightness.

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 full schema coverage and an output schema, the definition covers purpose, exclusions, defaults, error handling, and computation model. The only waste is restating return field names that the output schema already defines, rather than spending that space on interaction rules between topology and components.

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 description coverage is already 100%, so the baseline is 3; the description adds genuine value by stating the empty-call default behavior for mode and the preset topology, and by tying lambda and load-factor validity to concrete error outcomes. It stops short of explaining how sectorId maps to VoLL or how components interact with topology when both are supplied.

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 opens with a specific verb and resource set — 'Calculate steady-state Markov operational availability ratio A, failure rate lambda... expected annual downtime... and Value of Lost Load (VoLL) outage economics' — and names the four supported architectures (series, parallel, open-loop, k-out-of-n). An agent can distinguish this from the neighboring power-safety and topology-solver tools 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 Guidelines5/5

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

It gives an explicit when-to-use clause ('quantifying architecture availability, EENS energy loss, and outage cost risk') and an explicit when-not clause naming the out-of-scope domains (battery autonomy sizing, H2 ventilation, AC power flow) along with two concrete alternative tools to call instead. Nothing is left to inference.

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