Skip to main content
Glama

sodural-electrical-mcp

Arc-Flash Energy, RK4 CT Saturation & Waveforms

brain_calc_arc_flash_ct_comtrade
Read-onlyIdempotent

Compute enclosure arc-flash incident thermal energy (cal/cm2, J/cm2), arc-flash safety boundary, and PPE category across 0.208-15 kV panels, integrate nonlinear B-H current transformer flux saturation via 4th-order Runge-Kutta (RK4), synthesize asymmetric AC fault transients, and generate or parse ASCII CFG/DAT oscillographic fault records. When to use: Use for enclosure arc-flash PPE energy, nonlinear RK4 CT distortion waveforms, and fault oscillography. Do not use for: Steady-state inverse-time TCC curve grading or linear Ktd CT saturation screening -- call sodural_calc_selectivity_tcc or sodural_audit_protection_plan_physics instead. Behavior: Runs stateless, read-only empirical thermal and RK4 ODE solvers with zero side effects (HTTP rate-limited at 120 req/min/IP); invalid numeric arguments raise JSON-RPC -32602, defaulting to mode="arc_flash", 0.4 kV VCB 25 kA 0.12 s at 455 mm, includeWaveforms=false. Returns: mode, voltageKv, boltedFaultKa, arcingCurrentMaxKa, incidentEnergyCalCm2, arcFlashBoundaryMm, ppeCategory, ctSaturation, 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_arc_flash_ct_comtrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoCalculation mode: arc-flash energy, RK4 CT transient, asymmetric waveform, or CFG/DAT export/parse.arc_flash
cfgTextNoASCII oscillographic configuration (.CFG) header text when mode="comtrade_parse".
datTextNoASCII oscillographic sample data (.DAT) text when mode="comtrade_parse".
arcFlashNoEnclosure arc-flash geometry, bolted fault, and clearing time parameters.
ctTransientNoNonlinear RK4 current transformer saturation parameters.
includeWaveformsNoTrue to embed sample-by-sample transient waveform arrays in JSON output (defaults to false).

Output Schema

NameRequiredDescriptionDefault
modeNoExecuted arc-flash, transient CT saturation, or waveform mode.
voltageKvNoEvaluated system line-to-line voltage in kilovolts (kV).
legalNoticeNoInformational engineering compliance notice confirming SI physical scope and intellectual property rules.
ppeCategoryNoRequired arc-rated personal protective equipment hazard category.
ctSaturationNoTime-to-saturation, peak distortion, and error summary in ct_saturation or coupled arc_flash mode.
boltedFaultKaNoEvaluated bolted three-phase fault current in kiloamperes (kA).
calculationTraceNoTransparent audit trail detailing inputs, injected defaults, formulas, constants, principles, and assumptions.
arcFlashBoundaryMNoSafety distance boundary at 1.2 cal/cm2 in meters (m).
arcFlashBoundaryMmNoSafety distance boundary at 1.2 cal/cm2 in millimeters (mm).
arcingCurrentMaxKaNoMaximum estimated arcing fault current in kiloamperes (kA).
arcingCurrentMinKaNoMinimum estimated arcing fault current in kiloamperes (kA).
incidentEnergyJCm2NoIncident thermal energy at working distance in J/cm2.
incidentEnergyCalCm2NoIncident thermal energy at working distance in cal/cm2.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changed
    • addedInput schema / properties / arcFlash / properties / boltedFaultKa / minimum
      Added value: +0.1
    • changedInput schema / properties / arcFlash / properties / clearingTimeSec / description
      Previous value: -"Arc clearing duration of upstream protective device in seconds."New value: +"Arc clearing duration of upstream protective device in seconds (s)."
    • addedInput schema / properties / arcFlash / properties / clearingTimeSec / minimum
      Added value: +0.001
    • changedInput schema / properties / arcFlash / properties / voltageKv / description
      Previous value: -"System line-to-line voltage in kV (0.208..15 kV)."New value: +"System line-to-line voltage in kilovolts (0.208..15 kV)."
    • addedInput schema / properties / arcFlash / properties / voltageKv / maximum
      Added value: +50
    • addedInput schema / properties / arcFlash / properties / voltageKv / minimum
      Added value: +0.1
    • addedInput schema / properties / arcFlash / properties / workingDistanceMm / minimum
      Added value: +50
    • addedInput schema / properties / ctTransient / properties / burdenOhm / minimum
      Added value: +0.001
    • changedInput schema / properties / ctTransient / properties / ctRatioPrimaryA / description
      Previous value: -"CT rated primary winding current in A."New value: +"Current transformer rated primary winding current in amperes (A)."
    • addedInput schema / properties / ctTransient / properties / ctRatioPrimaryA / minimum
      Added value: +1
    • changedInput schema / properties / ctTransient / properties / ctRatioSecondaryA / description
      Previous value: -"CT rated secondary winding current in A (1 or 5 A)."New value: +"Current transformer rated secondary winding current in A (1 or 5 A)."
    • addedInput schema / properties / ctTransient / properties / ctRatioSecondaryA / minimum
      Added value: +0.5
    • changedInput schema / properties / ctTransient / properties / ikKa / description
      Previous value: -"Primary asymmetrical short-circuit RMS current in kA."New value: +"Primary asymmetrical short-circuit RMS current in kiloamperes (kA)."
    • addedInput schema / properties / ctTransient / properties / ikKa / minimum
      Added value: +0.05
    • changedInput schema / properties / ctTransient / properties / vkV / description
      Previous value: -"CT magnetizing knee-point excitation voltage Vk in V."New value: +"CT magnetizing knee-point excitation voltage Vk in volts (V)."
    • addedInput schema / properties / ctTransient / properties / vkV / minimum
      Added value: +1
    • addedInput schema / properties / ctTransient / properties / xrRatio / minimum
      Added value: +0.1
    • addedOutput schema / properties / arcFlashBoundaryM
      Added value: +{
      +  "description": "Safety distance boundary at 1.2 cal/cm2 in meters (m).",
      +  "type": "number"
      +}
    • changedOutput schema / properties / arcFlashBoundaryMm / description
      Previous value: -"Safety distance boundary at 1.2 cal/cm2 in mm."New value: +"Safety distance boundary at 1.2 cal/cm2 in millimeters (mm)."
    • changedOutput schema / properties / arcingCurrentMaxKa / description
      Previous value: -"Maximum estimated arcing fault current in kA."New value: +"Maximum estimated arcing fault current in kiloamperes (kA)."
    • addedOutput schema / properties / arcingCurrentMinKa
      Added value: +{
      +  "description": "Minimum estimated arcing fault current in kiloamperes (kA).",
      +  "type": "number"
      +}
    • changedOutput schema / properties / boltedFaultKa / description
      Previous value: -"Evaluated bolted three-phase fault current in kA."New value: +"Evaluated bolted three-phase fault current in kiloamperes (kA)."
    • changedOutput schema / properties / ctSaturation / description
      Previous value: -"Time-to-saturation, peak distortion, and error summary in ct_saturation mode."New value: +"Time-to-saturation, peak distortion, and error summary in ct_saturation or coupled arc_flash mode."
    • addedOutput schema / properties / ctSaturation / properties / ctRatio
      Added value: +{
      +  "description": "Formatted CT primary-to-secondary turns ratio string (e.g. \"800/1\").",
      +  "type": "string"
      +}
    • addedOutput schema / properties / ctSaturation / properties / kneeVoltageV
      Added value: +{
      +  "description": "Evaluated CT magnetizing knee-point excitation voltage Vk in V.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / ctSaturation / properties / minFundamentalRatio
      Added value: +{
      +  "description": "Worst-case 1-cycle fundamental phasor reproduction ratio.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / ctSaturation / properties / minRmsRatio
      Added value: +{
      +  "description": "Worst-case 1-cycle secondary-to-referred-primary RMS ratio.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / ctSaturation / properties / saturated
      Added value: +{
      +  "description": "True when core flux saturation distorts secondary current waveform.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / ctSaturation / properties / timeToSaturationMs
      Added value: +{
      +  "description": "Elapsed time until CT core saturation in milliseconds (ms), or null.",
      +  "oneOf": [
      +    {
      +      "description": "Elapsed time until CT core saturation in milliseconds (ms), or null.",
      +      "type": "number"
      +    },
      +    {
      +      "description": "Null when scalar value is not applicable in active scenario.",
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / incidentEnergyJCm2
      Added value: +{
      +  "description": "Incident thermal energy at working distance in J/cm2.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / mode / description
      Previous value: -"Executed arc-flash / transient CT / waveform mode."New value: +"Executed arc-flash, transient CT saturation, or waveform mode."
    • changedOutput schema / properties / ppeCategory / oneOf
      Previous value: -[
      -  {
      -    "description": "Numeric arc-rated PPE protection level (0..4).",
      -    "type": "integer"
      -  },
      -  {
      -    "description": "Descriptive PPE hazard category label.",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "description": "Numeric arc-rated PPE protection hazard level (0..4).",
      +    "type": "integer"
      +  },
      +  {
      +    "description": "Descriptive PPE hazard category label string.",
      +    "type": "string"
      +  }
      +]
    • changedOutput schema / properties / voltageKv / description
      Previous value: -"Evaluated system voltage in kV."New value: +"Evaluated system line-to-line voltage in kilovolts (kV)."
  2. Changed14 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • addedInput schema / properties / arcFlash / additionalProperties
      Added value: +true
    • addedInput schema / properties / arcFlash / description
      Added value: +"Enclosure arc-flash geometry, bolted fault, and clearing time parameters."
    • addedInput schema / properties / arcFlash / properties
      Added value: +{
      +  "boltedFaultKa": {
      +    "description": "Three-phase bolted symmetrical fault current at panel in kA.",
      +    "type": "number"
      +  },
      +  "clearingTimeSec": {
      +    "description": "Arc clearing duration of upstream protective device in seconds.",
      +    "type": "number"
      +  },
      +  "electrodeConfig": {
      +    "description": "Enclosure electrode geometry (\"VCB\", \"VCBB\", \"HCB\", \"VOA\", \"HOA\").",
      +    "type": "string"
      +  },
      +  "voltageKv": {
      +    "description": "System line-to-line voltage in kV (0.208..15 kV).",
      +    "type": "number"
      +  },
      +  "workingDistanceMm": {
      +    "description": "Operator working distance from arc source in mm (default 455 mm).",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / cfgText / description
      Added value: +"ASCII oscillographic configuration (.CFG) header text when mode=\"comtrade_parse\"."
    • addedInput schema / properties / ctTransient / additionalProperties
      Added value: +true
    • addedInput schema / properties / ctTransient / description
      Added value: +"Nonlinear RK4 current transformer saturation parameters."
    • addedInput schema / properties / ctTransient / properties
      Added value: +{
      +  "burdenOhm": {
      +    "description": "Total secondary loop burden impedance including leads and relay in ohms.",
      +    "type": "number"
      +  },
      +  "ctRatioPrimaryA": {
      +    "description": "CT rated primary winding current in A.",
      +    "type": "number"
      +  },
      +  "ctRatioSecondaryA": {
      +    "description": "CT rated secondary winding current in A (1 or 5 A).",
      +    "type": "number"
      +  },
      +  "ikKa": {
      +    "description": "Primary asymmetrical short-circuit RMS current in kA.",
      +    "type": "number"
      +  },
      +  "vkV": {
      +    "description": "CT magnetizing knee-point excitation voltage Vk in V.",
      +    "type": "number"
      +  },
      +  "xrRatio": {
      +    "description": "Primary system X/R ratio driving DC offset flux integration.",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / datText / description
      Added value: +"ASCII oscillographic sample data (.DAT) text when mode=\"comtrade_parse\"."
    • addedInput schema / properties / includeWaveforms / default
      Added value: +false
    • addedInput schema / properties / includeWaveforms / description
      Added value: +"True to embed sample-by-sample transient waveform arrays in JSON output (defaults to false)."
    • addedInput schema / properties / mode / default
      Added value: +"arc_flash"
    • addedInput schema / properties / mode / description
      Added value: +"Calculation mode: arc-flash energy, RK4 CT transient, asymmetric waveform, or CFG/DAT export/parse."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Arc-flash incident energy and CT transient saturation analysis with calculationTrace and legalNotice.",
      +  "properties": {
      +    "arcFlashBoundaryMm": {
      +      "description": "Safety distance boundary at 1.2 cal/cm2 in mm.",
      +      "type": "number"
      +    },
      +    "arcingCurrentMaxKa": {
      +      "description": "Maximum estimated arcing fault current in kA.",
      +      "type": "number"
      +    },
      +    "boltedFaultKa": {
      +      "description": "Evaluated bolted three-phase fault current in kA.",
      +      "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"
      +    },
      +    "ctSaturation": {
      +      "additionalProperties": true,
      +      "description": "Time-to-saturation, peak distortion, and error summary in ct_saturation mode.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "incidentEnergyCalCm2": {
      +      "description": "Incident thermal energy at working distance in cal/cm2.",
      +      "type": "number"
      +    },
      +    "legalNotice": {
      +      "description": "Informational engineering compliance notice confirming SI physical scope and intellectual property rules.",
      +      "type": "string"
      +    },
      +    "mode": {
      +      "description": "Executed arc-flash / transient CT / waveform mode.",
      +      "type": "string"
      +    },
      +    "ppeCategory": {
      +      "description": "Required arc-rated personal protective equipment hazard category.",
      +      "oneOf": [
      +        {
      +          "description": "Numeric arc-rated PPE protection level (0..4).",
      +          "type": "integer"
      +        },
      +        {
      +          "description": "Descriptive PPE hazard category label.",
      +          "type": "string"
      +        }
      +      ]
      +    },
      +    "voltageKv": {
      +      "description": "Evaluated system voltage in kV.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is partly covered. The description still adds real value beyond them: stateless zero-side-effect execution, a 120 req/min/IP rate limit, JSON-RPC -32602 on invalid numerics, and a documented default scenario (arc_flash, 0.4 kV VCB, 25 kA, 0.12 s, 455 mm). It does not describe the content or shape of calculationTrace or legalNotice beyond naming them, which keeps it below a 5.

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 definition is front-loaded with the capability statement and then segmented by explicit 'When to use', 'Do not use for', 'Behavior' and 'Returns' labels, so it is easy to scan. The opening sentence is a long comma-chained list of capabilities and the Returns enumeration largely repeats the output schema, costing a little density.

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 a five-mode, nested-schema tool with an output schema present, the description covers the dimensions an agent actually needs: which mode to pick, what defaults apply, what happens on bad input, and the rate limit. Return values are already documented structurally, so no further prose is required.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3 and the schema already carries per-field meaning. The description goes beyond it by supplying defaults that the schema does not state for the nested arcFlash object (0.4 kV, 25 kA, 0.12 s, 455 mm) and by tying the five mode enum values to their calculation families, which helps an agent choose a mode.

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 opening sentence names concrete verbs and resources: arc-flash incident thermal energy, safety boundary and PPE category, RK4-integrated nonlinear CT flux saturation, asymmetric AC fault transients, and CFG/DAT oscillography generation and parsing. It also explicitly separates the tool from the TCC-grading and linear Ktd CT siblings, so an agent can select it without opening a 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?

There is a literal 'When to use' clause listing the three use cases and a 'Do not use for' clause that names the correct alternatives (sodural_calc_selectivity_tcc and sodural_audit_protection_plan_physics). The exclusion is the strongest form of guidance because it routes the agent to a specific sibling rather than leaving it to infer.

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