Skip to main content
Glama

sodural-electrical-mcp

MV Neutral Earthing Reactor (BPN) Sizing

sodural_calc_bpn
Read-onlyIdempotent

Computes zero-sequence capacitive charging current 3Ic0 = sqrt(3)Un2pifC0L across medium-voltage cable feeders, minimum 51N residual pickup floor, neutral fault rating Ifln, reactor impedance Z0NE, and phase-to-earth Zn/Rn/Ln parameters. When to use: Use when dimensioning a neutral earthing reactor or Zig-Zag grounding transformer from feeder cable capacitances. Do not use for feeder directional 67N polar sector coordination or substation earth-grid EPR; call brain_calc_homopolar_67n or brain_calc_earthing_lightning_trv instead. Behavior: Stateless, read-only, side-effect-free SI solver (HTTP throttled at 120 req/min/IP) raising JSON-RPC -32602 on non-positive scalars or invalid cable arrays; omitting arguments applies a 20.5 kV, 50 Hz substation preset with 20% margin, X/R=0.4, 5 s withstand. Returns: inputs, cables, summary, insulationLevels, 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": "sodural_calc_bpn"
  }
}

Input Schema

NameRequiredDescriptionDefault
cablesNoNon-empty array of MV cable feeders (1..500); defaults to standard 20 kV substation preset if omitted.
freqHzNoNominal AC power network frequency in Hz (1..100 Hz, defaults to 50 Hz).
xrRatioNoNeutral earthing reactor inductive-to-resistive X/R ratio (0.01..100, defaults to 0.4).
voltageKvNoNominal MV busbar line-to-line voltage Un in kV (0.1..500 kV, defaults to 20.5 kV).
voltageSideNoTarget neutral earthing voltage tier ("MV" for medium-voltage capacitive NER or "HV" for high-voltage public grid Z0/Z1 NER sizing).MV
voltageUnKvNoAlias of voltageKv specifying nominal phase-to-phase voltage Un in kV (0.1..500 kV).
pickupFactorNoMinimum 51N residual relay pickup factor relative to 3Ic0 (1..20, defaults to 2.0).
hvNeutralStudyNoOptional HV Neutral Point Earthing Dimensional parameters when voltageSide is set to "HV".
safetyMarginPctNoCapacitive network expansion safety margin percentage added to 3Ic0 (0..200%, defaults to 20%).
faultDurationSecNoNeutral reactor adiabatic thermal withstand duration in seconds (0.1..600 s, defaults to 5 s).
faultLimitFactorNoSingle-phase earth-fault current limit multiplier k_limit (1..20, defaults to 2.0).

Output Schema

NameRequiredDescriptionDefault
cablesNoPer-feeder zero-sequence capacitive return summary.
inputsNoNormalized BPN sizing input parameters.
summaryNoNeutral earthing impedance, current thresholds, and standard rating summary.
legalNoticeNoNon-substitution intellectual-property banner adapted to the caller permission tier.
calculationTraceNoTransparent audit trail listing inputs, defaults, SI formulas, constants, and engineering assumptions.
insulationLevelsNoPhase-to-earth insulation coordination withstand levels in kV.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / hvNeutralStudy
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Optional HV Neutral Point Earthing Dimensional parameters when voltageSide is set to \"HV\".",
      +  "properties": {
      +    "presetId": {
      +      "description": "Optional anonymized HV reference study preset identifier.",
      +      "type": "string"
      +    },
      +    "rnOhm": {
      +      "description": "Selected HV neutral earthing active resistance Rn in ohms (defaults to 0 ohms).",
      +      "maximum": 500,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "xnOhm": {
      +      "description": "Selected HV neutral earthing reactance Xn in ohms (defaults to 39 ohms).",
      +      "maximum": 500,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / voltageSide
      Added value: +{
      +  "default": "MV",
      +  "description": "Target neutral earthing voltage tier (\"MV\" for medium-voltage capacitive NER or \"HV\" for high-voltage public grid Z0/Z1 NER sizing).",
      +  "enum": [
      +    "MV",
      +    "HV"
      +  ],
      +  "type": "string"
      +}
  2. Changed53 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • changedInput schema / properties / cables / description
      Previous value: -"List of MV cable feeders with length and capacitance"New value: +"Non-empty array of MV cable feeders (1..500); defaults to standard 20 kV substation preset if omitted."
    • addedInput schema / properties / cables / items / additionalProperties
      Added value: +true
    • changedInput schema / properties / cables / items / description
      Previous value: -"MV feeder cable length and zero-sequence capacitance entry."New value: +"MV cable feeder zero-sequence capacitive contribution entry."
    • addedInput schema / properties / cables / items / properties / capacitanceUfPerKm / default
      Added value: +0.35
    • changedInput schema / properties / cables / items / properties / capacitanceUfPerKm / description
      Previous value: -"Zero-sequence capacitance C0 in uF/km (default: 0.35)"New value: +"Zero-sequence phase-to-ground capacitance C0 in uF/km (defaults to 0.35 uF/km)."
    • addedInput schema / properties / cables / items / properties / capacitanceUfPerKm / maximum
      Added value: +10
    • addedInput schema / properties / cables / items / properties / capacitanceUfPerKm / minimum
      Added value: +0
    • addedInput schema / properties / cables / items / properties / conductorsPerPhase / default
      Added value: +1
    • changedInput schema / properties / cables / items / properties / conductorsPerPhase / description
      Previous value: -"Number of parallel cables per phase (default: 1)"New value: +"Number of parallel single-core conductors per phase (1..50, defaults to 1)."
    • addedInput schema / properties / cables / items / properties / conductorsPerPhase / maximum
      Added value: +50
    • addedInput schema / properties / cables / items / properties / conductorsPerPhase / minimum
      Added value: +1
    • addedInput schema / properties / cables / items / properties / enabled
      Added value: +{
      +  "default": true,
      +  "description": "True if feeder is energized and contributes to 3Ic0 (defaults to true).",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / cables / items / properties / id / description
      Previous value: -"Unique MV feeder bay identifier (e.g. \"FEEDER_01\")."New value: +"Unique MV feeder circuit bay identifier (e.g. \"FEEDER_01\")."
    • changedInput schema / properties / cables / items / properties / lengthKm / description
      Previous value: -"Cable length in km"New value: +"Cable route length in km (0..500 km, defaults to 1 km when lengthMeters omitted)."
    • addedInput schema / properties / cables / items / properties / lengthKm / maximum
      Added value: +500
    • addedInput schema / properties / cables / items / properties / lengthKm / minimum
      Added value: +0
    • changedInput schema / properties / cables / items / properties / lengthMeters / description
      Previous value: -"Cable length in meters (alternative to lengthKm)"New value: +"Cable route length in meters (0..500000 m, overrides lengthKm when provided)."
    • addedInput schema / properties / cables / items / properties / lengthMeters / maximum
      Added value: +500000
    • addedInput schema / properties / cables / items / properties / lengthMeters / minimum
      Added value: +0
    • addedInput schema / properties / faultDurationSec / default
      Added value: +5
    • changedInput schema / properties / faultDurationSec / description
      Previous value: -"Thermal withstand fault duration in seconds (default: 5)"New value: +"Neutral reactor adiabatic thermal withstand duration in seconds (0.1..600 s, defaults to 5 s)."
    • addedInput schema / properties / faultDurationSec / maximum
      Added value: +600
    • addedInput schema / properties / faultDurationSec / minimum
      Added value: +0.1
    • addedInput schema / properties / faultLimitFactor / default
      Added value: +2
    • changedInput schema / properties / faultLimitFactor / description
      Previous value: -"Single-phase fault limit factor k_limit (default: 2.0)"New value: +"Single-phase earth-fault current limit multiplier k_limit (1..20, defaults to 2.0)."
    • addedInput schema / properties / faultLimitFactor / maximum
      Added value: +20
    • addedInput schema / properties / faultLimitFactor / minimum
      Added value: +1
    • addedInput schema / properties / freqHz / default
      Added value: +50
    • changedInput schema / properties / freqHz / description
      Previous value: -"Network frequency in Hz (50 or 60, default: 50)"New value: +"Nominal AC power network frequency in Hz (1..100 Hz, defaults to 50 Hz)."
    • addedInput schema / properties / freqHz / maximum
      Added value: +100
    • addedInput schema / properties / freqHz / minimum
      Added value: +1
    • addedInput schema / properties / pickupFactor / default
      Added value: +2
    • changedInput schema / properties / pickupFactor / description
      Previous value: -"51N pickup factor k_pickup (default: 2.0)"New value: +"Minimum 51N residual relay pickup factor relative to 3Ic0 (1..20, defaults to 2.0)."
    • addedInput schema / properties / pickupFactor / maximum
      Added value: +20
    • addedInput schema / properties / pickupFactor / minimum
      Added value: +1
    • addedInput schema / properties / safetyMarginPct / default
      Added value: +20
    • changedInput schema / properties / safetyMarginPct / description
      Previous value: -"Safety margin percentage (default: 20%)"New value: +"Capacitive network expansion safety margin percentage added to 3Ic0 (0..200%, defaults to 20%)."
    • addedInput schema / properties / safetyMarginPct / maximum
      Added value: +200
    • addedInput schema / properties / safetyMarginPct / minimum
      Added value: +0
    • addedInput schema / properties / voltageKv / default
      Added value: +20.5
    • changedInput schema / properties / voltageKv / description
      Previous value: -"Nominal network voltage Un in kV (e.g. 20 for 20 kV)"New value: +"Nominal MV busbar line-to-line voltage Un in kV (0.1..500 kV, defaults to 20.5 kV)."
    • addedInput schema / properties / voltageKv / maximum
      Added value: +500
    • addedInput schema / properties / voltageKv / minimum
      Added value: +0.1
    • changedInput schema / properties / voltageUnKv / description
      Previous value: -"Alias of voltageKv (network phase-to-phase voltage in kV, default: 20.5)"New value: +"Alias of voltageKv specifying nominal phase-to-phase voltage Un in kV (0.1..500 kV)."
    • addedInput schema / properties / voltageUnKv / maximum
      Added value: +500
    • addedInput schema / properties / voltageUnKv / minimum
      Added value: +0.1
    • addedInput schema / properties / xrRatio / default
      Added value: +0.4
    • changedInput schema / properties / xrRatio / description
      Previous value: -"Neutral reactor X/R ratio (default: 0.4)"New value: +"Neutral earthing reactor inductive-to-resistive X/R ratio (0.01..100, defaults to 0.4)."
    • addedInput schema / properties / xrRatio / maximum
      Added value: +100
    • addedInput schema / properties / xrRatio / minimum
      Added value: +0.01
    • removedInput schema / required
      Removed value: -[]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Neutral Earthing Reactor (BPN) sizing report with calculationTrace and legalNotice.",
      +  "properties": {
      +    "cables": {
      +      "description": "Per-feeder zero-sequence capacitive return summary.",
      +      "items": {
      +        "additionalProperties": true,
      +        "description": "Evaluated MV cable capacitive current breakdown.",
      +        "properties": {
      +          "contributionPercent": {
      +            "description": "Percentage share of total busbar capacitive current.",
      +            "type": "number"
      +          },
      +          "icA": {
      +            "description": "Feeder zero-sequence capacitive charging current in A.",
      +            "type": "number"
      +          },
      +          "id": {
      +            "description": "MV cable feeder identifier.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "calculationTrace": {
      +      "additionalProperties": true,
      +      "description": "Transparent audit trail listing inputs, defaults, SI formulas, constants, and engineering assumptions.",
      +      "properties": {
      +        "defaultsApplied": {
      +          "additionalProperties": true,
      +          "description": "Default SI parameters injected when optional inputs are omitted.",
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "engineeringAssumptions": {
      +          "description": "Boundary conditions assumed by the calculation engine.",
      +          "items": {
      +            "description": "Validity assumption constraining interpretation.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "formulasAndConstants": {
      +          "additionalProperties": true,
      +          "description": "Mathematical formulas and constants applied during evaluation.",
      +          "properties": {
      +            "constants": {
      +              "additionalProperties": true,
      +              "description": "Physical constants and conversion coefficients in SI units.",
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "formulas": {
      +              "description": "Evaluated physical formulas.",
      +              "items": {
      +                "description": "Symbolic SI physics equation.",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "inputsProvided": {
      +          "additionalProperties": true,
      +          "description": "Caller-supplied parameters normalized before execution.",
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "mode": {
      +          "description": "Executed physics calculation sub-mode for this call.",
      +          "type": "string"
      +        },
      +        "physicalPrinciples": {
      +          "description": "Ordered physical principles backing the solver.",
      +          "items": {
      +            "description": "Physical principle governing the analytical model.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "tool": {
      +          "description": "Canonical MCP tool identifier recorded by the calculation tracer.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "inputs": {
      +      "additionalProperties": true,
      +      "description": "Normalized BPN sizing input parameters.",
      +      "properties": {
      +        "freqHz": {
      +          "description": "Evaluated network frequency in Hz.",
      +          "type": "number"
      +        },
      +        "marginPercent": {
      +          "description": "Applied capacitive expansion safety margin in %.",
      +          "type": "number"
      +        },
      +        "voltageUnKv": {
      +          "description": "Evaluated nominal line-to-line voltage Un in kV.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "insulationLevels": {
      +      "additionalProperties": true,
      +      "description": "Phase-to-earth insulation coordination withstand levels in kV.",
      +      "properties": {
      +        "um": {
      +          "description": "Highest equipment voltage Um in kV.",
      +          "type": "number"
      +        },
      +        "up": {
      +          "description": "Rated lightning impulse withstand voltage in kV.",
      +          "type": "number"
      +        },
      +        "uw": {
      +          "description": "Short-duration power-frequency withstand voltage in kV.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "legalNotice": {
      +      "description": "Non-substitution intellectual-property banner adapted to the caller permission tier.",
      +      "type": "string"
      +    },
      +    "summary": {
      +      "additionalProperties": true,
      +      "description": "Neutral earthing impedance, current thresholds, and standard rating summary.",
      +      "properties": {
      +        "activeCablesCount": {
      +          "description": "Count of energized feeders included in 3Ic0 sum.",
      +          "type": "number"
      +        },
      +        "icSumA": {
      +          "description": "Total unmargined zero-sequence capacitive current 3Ic0 in A.",
      +          "type": "number"
      +        },
      +        "icTotalWithMarginA": {
      +          "description": "Design capacitive current including expansion margin in A.",
      +          "type": "number"
      +        },
      +        "pickupMinA": {
      +          "description": "Minimum 51N residual protection pickup threshold in A.",
      +          "type": "number"
      +        },
      +        "ratedFaultCurrentA": {
      +          "description": "Selected neutral rated earth-fault current Ifln in A.",
      +          "type": "number"
      +        },
      +        "recommendedZnOhm": {
      +          "description": "Recommended neutral element impedance Zn = Z0NE/3 in ohms.",
      +          "type": "number"
      +        },
      +        "rnOhms": {
      +          "description": "Neutral earthing active resistance Rn in ohms.",
      +          "type": "number"
      +        },
      +        "totalCablesCount": {
      +          "description": "Total number of MV feeder records evaluated.",
      +          "type": "number"
      +        },
      +        "totalCapacitiveCurrentA": {
      +          "description": "Rounded aggregate zero-sequence capacitive current in A.",
      +          "type": "number"
      +        },
      +        "xnMilliHenry": {
      +          "description": "Neutral earthing inductance Ln in millihenries.",
      +          "type": "number"
      +        },
      +        "z0neOhms": {
      +          "description": "Required per-phase zero-sequence impedance Z0NE in ohms.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / cables / items / description
      Added value: +"MV feeder cable length and zero-sequence capacitance entry."
    • addedInput schema / properties / cables / items / properties / id / description
      Added value: +"Unique MV feeder bay identifier (e.g. \"FEEDER_01\")."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-open-world, non-destructive, so the description earns credit for adding beyond them: stateless side-effect-free SI solver, a 120 req/min/IP HTTP throttle, JSON-RPC -32602 on non-positive scalars or invalid cable arrays, and the explicit fallback preset (20.5 kV, 50 Hz, 20% margin, X/R=0.4, 5 s) when arguments are omitted. Those are behavioral facts an agent cannot obtain from the annotations.

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?

Front-loaded with the computation and formula, then cleanly segmented into 'When to use', 'Behavior' and 'Returns' blocks. It is on the long side, and the trailing Returns enumeration is largely redundant given an output schema exists, but no sentence is filler.

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

Completeness5/5

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

For an 11-parameter, zero-required, nested-object solver, the description supplies everything needed to invoke it correctly: purpose, exclusions with named alternatives, error behavior, throttle limits, and the implicit-preset semantics when arguments are omitted. Return values are covered by the output schema, so the extra Returns listing is harmless redundancy rather than a gap.

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% and every parameter carries units, ranges and defaults, so the baseline is 3. The description adds little parameter-level detail beyond naming some derived quantities (minimum 51N residual pickup floor, neutral fault rating Ifln, reactor impedance Z0NE, Zn/Rn/Ln), and it does not clarify the voltageKv vs voltageUnKv alias or the lengthKm/lengthMeters override behavior, which are the genuinely ambiguous inputs.

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 — computing zero-sequence capacitive charging current 3Ic0 across MV cable feeders — and even gives the governing formula, plus the derived quantities (51N pickup floor, Ifln, Z0NE). It explicitly differentiates itself from brain_calc_homopolar_67n and brain_calc_earthing_lightning_trv, so an agent can separate it from siblings without reading schemas.

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?

Contains an explicit 'When to use' clause (dimensioning a neutral earthing reactor or Zig-Zag grounding transformer from feeder capacitances) and an explicit 'Do not use' clause naming two alternative tools for the excluded 67N coordination and earth-grid EPR cases. Both the positive and negative routing are covered.

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