Skip to main content
Glama

sodural-electrical-mcp

Substation Earthing Split, Adiabatic Strap & Lightning Calculator

brain_calc_earthing_lightning_trv
Read-onlyIdempotent

Evaluate substation earth-return split factor rf, ground potential rise EPR, step/touch safety limits, adiabatic copper or steel earthing strap sections, breaker TRV recovery envelopes, and rolling-sphere lightning or SPD risk. When to use: Use for earth-fault current division, substation EPR, adiabatic straps, breaker TRV envelopes, or lightning SPD risk; do NOT use for 63-400 kV HV air clearances (Dm/Dp/Dms), USCD creepage, U/f/Q grid-code audits, or MV neutral reactor Zn sizing -- call brain_calc_hv_substation_grid_compliance or sodural_calc_bpn instead. Behavior: Executes deterministic, stateless earthing, TRV, and rolling-sphere physics with zero external mutations; invalid types raise JSON-RPC -32602, whereas empty requests default to mode="audit" on the 225 kV AIS preset. Returns: mode, nominalVoltageKv, overallCompliant, criticalFindings, earthingAudit, trvAudit, lightningRisk, 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_earthing_lightning_trv"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoEarthing, lightning, or TRV physical sub-model to evaluate (defaults to "audit").audit
ik1KaNoSingle-phase-to-earth fault current Ik1 in kA (>= 0).
xrRatioNoFault X/R ratio governing DC decrement factor Df when applyDecrementFactor is true.
materialNoEarthing conductor material ("CU", "AL", "GALV_STEEL", "STAINLESS").
presetIdNoReference substation earthing & lightning study preset identifier (e.g. "htb_225kv_ais_substation").
finalTempCNoMaximum allowable final adiabatic conductor temperature limit in deg C.
splitFactorNoEarth return current split/reduction factor rf bounded in [0, 1].
initialTempCNoInitial ambient conductor temperature prior to fault in deg C.
connectionTypeNoConductor joint thermal limit class ("EXOTHERMIC", "COMPRESSION", "BOLTED").
faultCurrentKaNoEarth-grid injected fault current Ig in kA for adiabatic conductor sizing.
faultDurationSecNoEarth fault clearing duration tk in seconds (>= 0.01).
installationRoleNoPhysical role ("BURIED_GRID", "RISER", "EQUIPOTENTIAL_BOND") setting mechanical minimum section.
nominalVoltageKvNoNominal system line-to-line voltage Un in kV (positive).
ratedVoltageUrKvNoSwitchgear or surge arrester rated voltage Ur in kV (positive).
decrementFactorDfNoExplicit override for thermal decrement factor Df (>= 1.0).
proposedSectionsMm2NoCandidate standard sections in mm2 evaluated against thermal and mechanical limits.
soilResistivityOhmMNoEquivalent site soil electrical resistivity rho in ohm*m (>= 1).
applyDecrementFactorNoTrue to apply asymmetrical DC decrement factor Df during short fault durations.
mechanicalMinSectionMm2NoExplicit minimum mechanical cross-section floor in mm2 (>= 1).
useIeee80FusionLimitForExothermicNoTrue to allow higher fusion-grade joint temperature ceiling on exothermic welds.

Output Schema

NameRequiredDescriptionDefault
modeNoExecuted earthing, lightning, or TRV sub-study mode.
trvAuditNoTransient recovery voltage envelope and breaker margin check.
legalNoticeNoInformational engineering compliance notice confirming SI physical scope and intellectual property rules.
earthingAuditNoGround potential rise, step/touch safety limits, and earth split factor breakdown.
lightningRiskNoRolling-sphere strike risk and arrester separation protection summary.
calculationTraceNoTransparent audit trail detailing inputs, injected defaults, formulas, constants, principles, and assumptions.
criticalFindingsNoCritical compliance findings detected.
nominalVoltageKvNoEvaluated nominal system voltage in kV.
overallCompliantNoTrue when all safety & insulation checks pass.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed49 schema fields changed
    • addedInput schema / properties / decrementFactorDf / minimum
      Added value: +1
    • addedInput schema / properties / faultCurrentKa / minimum
      Added value: +0
    • changedInput schema / properties / faultDurationSec / description
      Previous value: -"Earth fault clearing duration tk in seconds."New value: +"Earth fault clearing duration tk in seconds (>= 0.01)."
    • addedInput schema / properties / faultDurationSec / minimum
      Added value: +0.01
    • changedInput schema / properties / ik1Ka / description
      Previous value: -"Single-phase-to-earth fault current Ik1 in kA."New value: +"Single-phase-to-earth fault current Ik1 in kA (>= 0)."
    • addedInput schema / properties / ik1Ka / minimum
      Added value: +0
    • changedInput schema / properties / mechanicalMinSectionMm2 / description
      Previous value: -"Explicit minimum mechanical cross-section floor in mm2."New value: +"Explicit minimum mechanical cross-section floor in mm2 (>= 1)."
    • addedInput schema / properties / mechanicalMinSectionMm2 / minimum
      Added value: +1
    • changedInput schema / properties / nominalVoltageKv / description
      Previous value: -"Nominal system voltage Un in kV."New value: +"Nominal system line-to-line voltage Un in kV (positive)."
    • addedInput schema / properties / nominalVoltageKv / minimum
      Added value: +0.1
    • changedInput schema / properties / proposedSectionsMm2 / items / description
      Previous value: -"Candidate standard conductor cross-section in mm2."New value: +"Candidate standard conductor cross-section in mm2 (>= 1)."
    • addedInput schema / properties / proposedSectionsMm2 / items / minimum
      Added value: +1
    • changedInput schema / properties / ratedVoltageUrKv / description
      Previous value: -"Switchgear or surge arrester rated voltage Ur in kV."New value: +"Switchgear or surge arrester rated voltage Ur in kV (positive)."
    • addedInput schema / properties / ratedVoltageUrKv / minimum
      Added value: +0.1
    • changedInput schema / properties / soilResistivityOhmM / description
      Previous value: -"Equivalent site soil electrical resistivity rho in ohm*m."New value: +"Equivalent site soil electrical resistivity rho in ohm*m (>= 1)."
    • addedInput schema / properties / soilResistivityOhmM / minimum
      Added value: +1
    • changedInput schema / properties / splitFactor / description
      Previous value: -"Earth return current split/reduction factor rf in [0, 1]."New value: +"Earth return current split/reduction factor rf bounded in [0, 1]."
    • addedInput schema / properties / splitFactor / maximum
      Added value: +1
    • addedInput schema / properties / splitFactor / minimum
      Added value: +0
    • addedInput schema / properties / xrRatio / minimum
      Added value: +0.1
    • changedOutput schema / properties / criticalFindings / items / description
      Previous value: -"Blocking earthing or insulation violation."New value: +"Blocking earthing or insulation violation code."
    • addedOutput schema / properties / earthingAudit / properties / decisionStatus
      Added value: +{
      +  "description": "Human-readable earthing safety verdict tag.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / earthingAudit / properties / earthingConductor
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Adiabatic earthing conductor thermal and mechanical sizing audit.",
      +  "properties": {
      +    "actualSectionMm2": {
      +      "description": "Installed or selected conductor cross-section in mm2.",
      +      "type": "number"
      +    },
      +    "conductorCompliant": {
      +      "description": "True when conductor cross-section meets limits.",
      +      "type": "boolean"
      +    },
      +    "material": {
      +      "description": "Evaluated earthing conductor material code.",
      +      "type": "string"
      +    },
      +    "minMechanicalSectionMm2": {
      +      "description": "Mechanical floor cross-section in mm2.",
      +      "type": "number"
      +    },
      +    "minRequiredSectionMm2": {
      +      "description": "Governing minimum required strap section in mm2.",
      +      "type": "number"
      +    },
      +    "minThermalSectionMm2": {
      +      "description": "Adiabatic thermal minimum cross-section in mm2.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / earthingAudit / properties / eprToUtpRatio
      Added value: +{
      +  "description": "Ratio of substation EPR to permissible UTp.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / earthingAudit / properties / eprVolt
      Added value: +{
      +  "description": "Computed substation Ground Potential Rise (EPR) in volts.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / earthingAudit / properties / explicitTouchSafe
      Added value: +{
      +  "description": "True when prospective touch voltage stays below limit.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / earthingAudit / properties / iEarthKa
      Added value: +{
      +  "description": "Effective substation ground-grid fault current Ig in kA.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / earthingAudit / properties / isCompliant
      Added value: +{
      +  "description": "True when substation earthing safety audit passes.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / earthingAudit / properties / isGlobalEarthingSystem
      Added value: +{
      +  "description": "True when site qualifies as a Global Earthing System.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / earthingAudit / properties / lvTransferAudit
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Low-voltage neutral transfer potential verification.",
      +  "properties": {
      +    "limitVolt": {
      +      "description": "Allowable transferred stress voltage limit in volts.",
      +      "type": "number"
      +    },
      +    "lvSystem": {
      +      "description": "Downstream LV earthing topology code.",
      +      "type": "string"
      +    },
      +    "lvTransferSafe": {
      +      "description": "True when EPR remains below LV stress transfer limit.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / earthingAudit / properties / neutralEarthing
      Added value: +{
      +  "description": "System neutral earthing regime classification.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / earthingAudit / properties / stationEarthingResistanceOhm
      Added value: +{
      +  "description": "Combined substation earthing grid impedance in ohms.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / earthingAudit / properties / touchAndStep
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Human body touch and step voltage attenuation limits.",
      +  "properties": {
      +    "bodyCurrentLimitMa": {
      +      "description": "Permissible ventricular fibrillation current limit in mA.",
      +      "type": "number"
      +    },
      +    "bodyImpedanceZtOhm": {
      +      "description": "Human body impedance Zt in ohms.",
      +      "type": "number"
      +    },
      +    "faultDurationSec": {
      +      "description": "Applied clearing duration for body current curve in seconds.",
      +      "type": "number"
      +    },
      +    "prospectiveStepLimitUvSpVolt": {
      +      "description": "Permissible prospective step voltage limit with gravel in V.",
      +      "type": "number"
      +    },
      +    "prospectiveTouchLimitUvTpVolt": {
      +      "description": "Permissible prospective touch voltage limit with gravel in V.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / earthingAudit / properties / utpVolt
      Added value: +{
      +  "description": "Allowable bare-contact body touch voltage threshold UTp in volts.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / lightningRisk / properties / isCompliant
      Added value: +{
      +  "description": "True when total lightning risk R1 <= RT.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / lightningRisk / properties / lpsClass
      Added value: +{
      +  "description": "Evaluated Lightning Protection System class (\"I\"..\"IV\").",
      +  "type": "string"
      +}
    • addedOutput schema / properties / lightningRisk / properties / ngFlashesPerKm2Year
      Added value: +{
      +  "description": "Site ground flash density Ng in flashes/km2/year.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / lightningRisk / properties / r1Total
      Added value: +{
      +  "description": "Total annual risk R1 across direct and indirect strikes.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / lightningRisk / properties / recommendedLpl
      Added value: +{
      +  "description": "Minimum required lightning protection level class.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / lightningRisk / properties / riskRatioToRT
      Added value: +{
      +  "description": "Ratio of computed structural risk R1 to tolerable RT.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / lightningRisk / properties / spdProtectionLevel
      Added value: +{
      +  "description": "Assigned Surge Protective Device coordination level.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / lightningRisk / properties / tolerableRiskRT
      Added value: +{
      +  "description": "Tolerable annual loss-of-life risk threshold RT.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / mode / description
      Previous value: -"Executed earthing/lightning/TRV mode."New value: +"Executed earthing, lightning, or TRV sub-study mode."
    • addedOutput schema / properties / trvAudit / properties / isCompliant
      Added value: +{
      +  "description": "True when system TRV stays inside breaker rated envelope.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / trvAudit / properties / limitingCriterion
      Added value: +{
      +  "description": "Tightest TRV stress margin parameter.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / trvAudit / properties / margins
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Breaker TRV safety margins relative to rated envelope.",
      +  "properties": {
      +    "peakUcMarginPct": {
      +      "description": "Margin on peak TRV crest Uc (%).",
      +      "type": "number"
      +    },
      +    "rrrvMarginPct": {
      +      "description": "Margin on initial TRV slope RRRV (%).",
      +      "type": "number"
      +    },
      +    "u1MarginPct": {
      +      "description": "Margin on first reference voltage u1 (%).",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / trvAudit / properties / minMarginPct
      Added value: +{
      +  "description": "Minimum margin across TRV envelope checks (%).",
      +  "type": "number"
      +}
    • addedOutput schema / properties / trvAudit / properties / ratedEnvelope
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Switchgear rated TRV withstand envelope.",
      +  "properties": {
      +    "kaf": {
      +      "description": "Recovery peak amplitude factor kaf (dimensionless).",
      +      "type": "number"
      +    },
      +    "kpp": {
      +      "description": "First-pole-to-clear factor kpp (dimensionless).",
      +      "type": "number"
      +    },
      +    "parameterMode": {
      +      "description": "Two-parameter or four-parameter TRV representation.",
      +      "type": "string"
      +    },
      +    "ratedUrKv": {
      +      "description": "Breaker rated voltage Ur in kV.",
      +      "type": "number"
      +    },
      +    "rrrvKvPerUs": {
      +      "description": "Rated initial rate of rise of recovery voltage in kV/us.",
      +      "type": "number"
      +    },
      +    "t1Us": {
      +      "description": "Rated knee time t1 in microseconds (us).",
      +      "type": "number"
      +    },
      +    "t2Us": {
      +      "description": "Rated peak time t2 in microseconds (us).",
      +      "type": "number"
      +    },
      +    "testDuty": {
      +      "description": "Evaluated TRV switching test duty code.",
      +      "type": "string"
      +    },
      +    "u1Kv": {
      +      "description": "Rated four-parameter knee voltage u1 in kV.",
      +      "type": "number"
      +    },
      +    "ucKv": {
      +      "description": "Rated crest recovery voltage uc in kV.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / trvAudit / properties / systemTrv
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "System transient recovery voltage stress profile.",
      +  "properties": {
      +    "faultCurrentKa": {
      +      "description": "Evaluated fault breaking current in kA.",
      +      "type": "number"
      +    },
      +    "faultRatioPct": {
      +      "description": "Fault current ratio vs rated breaking capacity (%).",
      +      "type": "number"
      +    },
      +    "rrrvKvPerUs": {
      +      "description": "Prospective system RRRV slope in kV/us.",
      +      "type": "number"
      +    },
      +    "u1Kv": {
      +      "description": "Prospective initial recovery knee voltage u1 in kV.",
      +      "type": "number"
      +    },
      +    "ucKv": {
      +      "description": "Prospective system TRV crest voltage uc in kV.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed24 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • addedInput schema / properties / applyDecrementFactor / description
      Added value: +"True to apply asymmetrical DC decrement factor Df during short fault durations."
    • addedInput schema / properties / connectionType / description
      Added value: +"Conductor joint thermal limit class (\"EXOTHERMIC\", \"COMPRESSION\", \"BOLTED\")."
    • addedInput schema / properties / decrementFactorDf / description
      Added value: +"Explicit override for thermal decrement factor Df (>= 1.0)."
    • addedInput schema / properties / faultCurrentKa / description
      Added value: +"Earth-grid injected fault current Ig in kA for adiabatic conductor sizing."
    • addedInput schema / properties / faultDurationSec / description
      Added value: +"Earth fault clearing duration tk in seconds."
    • addedInput schema / properties / finalTempC / description
      Added value: +"Maximum allowable final adiabatic conductor temperature limit in deg C."
    • addedInput schema / properties / ik1Ka / description
      Added value: +"Single-phase-to-earth fault current Ik1 in kA."
    • addedInput schema / properties / initialTempC / description
      Added value: +"Initial ambient conductor temperature prior to fault in deg C."
    • addedInput schema / properties / installationRole / description
      Added value: +"Physical role (\"BURIED_GRID\", \"RISER\", \"EQUIPOTENTIAL_BOND\") setting mechanical minimum section."
    • addedInput schema / properties / material / description
      Added value: +"Earthing conductor material (\"CU\", \"AL\", \"GALV_STEEL\", \"STAINLESS\")."
    • addedInput schema / properties / mechanicalMinSectionMm2 / description
      Added value: +"Explicit minimum mechanical cross-section floor in mm2."
    • addedInput schema / properties / mode / default
      Added value: +"audit"
    • addedInput schema / properties / mode / description
      Added value: +"Earthing, lightning, or TRV physical sub-model to evaluate (defaults to \"audit\")."
    • addedInput schema / properties / nominalVoltageKv / description
      Added value: +"Nominal system voltage Un in kV."
    • addedInput schema / properties / presetId / description
      Added value: +"Reference substation earthing & lightning study preset identifier (e.g. \"htb_225kv_ais_substation\")."
    • addedInput schema / properties / proposedSectionsMm2 / description
      Added value: +"Candidate standard sections in mm2 evaluated against thermal and mechanical limits."
    • addedInput schema / properties / proposedSectionsMm2 / items / description
      Added value: +"Candidate standard conductor cross-section in mm2."
    • addedInput schema / properties / ratedVoltageUrKv / description
      Added value: +"Switchgear or surge arrester rated voltage Ur in kV."
    • addedInput schema / properties / soilResistivityOhmM / description
      Added value: +"Equivalent site soil electrical resistivity rho in ohm*m."
    • addedInput schema / properties / splitFactor / description
      Added value: +"Earth return current split/reduction factor rf in [0, 1]."
    • addedInput schema / properties / useIeee80FusionLimitForExothermic / description
      Added value: +"True to allow higher fusion-grade joint temperature ceiling on exothermic welds."
    • addedInput schema / properties / xrRatio / description
      Added value: +"Fault X/R ratio governing DC decrement factor Df when applyDecrementFactor is true."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Earthing, lightning protection, and TRV compliance summary with calculationTrace and legalNotice.",
      +  "properties": {
      +    "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"
      +    },
      +    "criticalFindings": {
      +      "description": "Critical compliance findings detected.",
      +      "items": {
      +        "description": "Blocking earthing or insulation violation.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "earthingAudit": {
      +      "additionalProperties": true,
      +      "description": "Ground potential rise, step/touch safety limits, and earth split factor breakdown.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "legalNotice": {
      +      "description": "Informational engineering compliance notice confirming SI physical scope and intellectual property rules.",
      +      "type": "string"
      +    },
      +    "lightningRisk": {
      +      "additionalProperties": true,
      +      "description": "Rolling-sphere strike risk and arrester separation protection summary.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "mode": {
      +      "description": "Executed earthing/lightning/TRV mode.",
      +      "type": "string"
      +    },
      +    "nominalVoltageKv": {
      +      "description": "Evaluated nominal system voltage in kV.",
      +      "type": "number"
      +    },
      +    "overallCompliant": {
      +      "description": "True when all safety & insulation checks pass.",
      +      "type": "boolean"
      +    },
      +    "trvAudit": {
      +      "additionalProperties": true,
      +      "description": "Transient recovery voltage envelope and breaker margin check.",
      +      "properties": {},
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/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, but the description adds genuinely new behavior: deterministic, stateless execution, JSON-RPC -32602 on invalid types, and a documented default (mode="audit" on the 225 kV AIS preset) when the request is empty. That default-behavior and error-semantics disclosure is exactly what an agent needs beyond the annotation block; only the return-value sentence is somewhat redundant given the output schema.

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 capability, then 'When to use', then 'Behavior', then 'Returns' — a clear and skimmable order with no filler sentences. It is dense and long, but the length is justified by six distinct physics domains and 11 modes being covered in one tool; minor cost is the run-on severity of the opening sentence.

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 20-parameter, zero-required, mode-dispatched calculator with a full output schema and complete annotations, the description covers purpose, exclusions, alternatives, error behavior, defaults and return fields. The one remaining gap — per-mode parameter requirements — is mitigated by the mode enum's own descriptions in the schema.

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% across all 20 parameters, so the schema already carries units, bounds and enum meanings; the baseline of 3 applies. The description adds conceptual grouping (rf split factor, EPR, adiabatic sections, TRV, rolling sphere) that helps map intent to parameters, but it gives no mode-to-parameter guidance (which inputs each of the 11 modes actually requires).

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 specific verbs and physical quantities: earth-return split factor rf, ground potential rise EPR, step/touch limits, adiabatic strap sections, breaker TRV envelopes, and rolling-sphere/SPD risk. An agent can distinguish this multi-model earthing/TRV/lightning calculator from the sibling grid-compliance and BPN 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?

Explicit 'When to use' clause names the qualifying scenarios (earth-fault current division, substation EPR, adiabatic straps, TRV envelopes, lightning SPD risk) and an explicit 'do NOT use for' list (HV air clearances Dm/Dp/Dms, USCD creepage, U/f/Q grid-code audits, MV neutral reactor Zn sizing). It routes the agent to named alternatives, brain_calc_hv_substation_grid_compliance and sodural_calc_bpn, making selection deterministic.

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