Skip to main content
Glama

sodural-electrical-mcp

Harmonic Spectrum, K-Factor & Detuned Filter

sodural_calc_power_harmonics
Read-onlyIdempotent

Analyzes non-linear load harmonic spectra (orders h=2..50 and 128-point cycle waveform), PCC harmonic distortion physics thresholds (THDi, TDD, THDu), zero-sequence triplen neutral currents, transformer eddy-current F_HL/K-factor derating, passive detuned reactor resonance shifts, active harmonic filter sizing, and three-winding harmonic star equivalents. When to use: Use when checking PCC distortion compliance, transformer harmonic derating, or passive filter resonance. Do not use for fundamental tan(phi) reactive compensation or capacitor switching transients; call sodural_calc_reactive_varmetric instead. Behavior: Idempotent, stateless, read-only SI computation (120 req/min/IP HTTP ceiling) rejecting malformed inputs via JSON-RPC -32602; omitted inputs default to mode="spectrum", presetId="ups_igbt_datacenter", freqHz=50, nonLinearSharePct=100, coolingType="oil", vectorGroup="Dyn11", qcEffKvar=5000, detuningPct=7. Returns: mode, spectrum, transformerDerating, detunedFilter, 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_power_harmonics"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoHarmonic analysis calculation mode (defaults to "spectrum").spectrum
unKvNoNominal PCC line-to-line voltage Un in kV (0.2..420 kV; defaults to preset voltage).
freqHzNoNominal AC power frequency in Hz (50 or 60 Hz, defaults to 50 Hz).
sccMvaNoNetwork three-phase short-circuit level Scc at PCC in MVA (1..50000 MVA).
loadI1ANoFundamental load current I1 in amperes for active harmonic filter sizing (1..100000 A).
loadKvaNoApparent load demand S_load in kVA (10..500000 kVA; defaults to preset demand).
presetIdNoNon-linear harmonic load spectrum preset identifier (defaults to "ups_igbt_datacenter").ups_igbt_datacenter
qcEffKvarNoEffective net capacitor bank reactive power Qc_eff in kvar (10..300000 kvar, defaults to 5000 kvar).
coolingTypeNoTransformer cooling medium ("oil" or "dry", defaults to "oil").oil
detuningPctNoDetuned reactor series tuning factor p% (0..25%, defaults to 7%).
loadThdiPctNoIncoming load THDi percentage for active filter current sizing (0..120%).
vectorGroupNoTransformer winding vector group (e.g. "Dyn11", "Yyn0", "Dd0", defaults to "Dyn11").Dyn11
transformerKvaNoFeeding transformer rated power in kVA (50..500000 kVA; defaults to loadKva).
nonLinearSharePctNoPercentage share of non-linear load relative to total demand (1..100%, defaults to 100%).

Output Schema

NameRequiredDescriptionDefault
modeNoExecuted harmonic distortion and filtering study mode.
spectrumNoHarmonic order spectrum h=2..50, THDi/TDD/THDu, and waveform summary.
legalNoticeNoNon-substitution intellectual-property banner adapted to the caller permission tier.
detunedFilterNoParallel resonance frequency scan, detuned filter, and AHF sizing.
calculationTraceNoTransparent audit trail listing inputs, defaults, SI formulas, constants, and engineering assumptions.
transformerDeratingNoTransformer eddy-current F_HL/K-factor derating and thermal overload summary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed44 schema fields changed
    • addedInput schema / properties / coolingType / default
      Added value: +"oil"
    • changedInput schema / properties / coolingType / description
      Previous value: -"Refroidissement transformateur."New value: +"Transformer cooling medium (\"oil\" or \"dry\", defaults to \"oil\")."
    • addedInput schema / properties / detuningPct / default
      Added value: +7
    • changedInput schema / properties / detuningPct / description
      Previous value: -"Taux self désaccordée (%, ex. 0, 5.67, 7, 13.4, 14)."New value: +"Detuned reactor series tuning factor p% (0..25%, defaults to 7%)."
    • addedInput schema / properties / detuningPct / maximum
      Added value: +25
    • addedInput schema / properties / detuningPct / minimum
      Added value: +0
    • addedInput schema / properties / freqHz / default
      Added value: +50
    • changedInput schema / properties / freqHz / description
      Previous value: -"Fréquence réseau (50 ou 60 Hz)."New value: +"Nominal AC power frequency in Hz (50 or 60 Hz, defaults to 50 Hz)."
    • removedInput schema / properties / freqHz / enum
      Removed value: -[
      -  50,
      -  60
      -]
    • addedInput schema / properties / freqHz / maximum
      Added value: +60
    • addedInput schema / properties / freqHz / minimum
      Added value: +50
    • changedInput schema / properties / loadI1A / description
      Previous value: -"Courant fondamental charge pour sizing AHF (A)."New value: +"Fundamental load current I1 in amperes for active harmonic filter sizing (1..100000 A)."
    • addedInput schema / properties / loadI1A / maximum
      Added value: +100000
    • addedInput schema / properties / loadI1A / minimum
      Added value: +1
    • changedInput schema / properties / loadKva / description
      Previous value: -"Puissance apparente charge (kVA)."New value: +"Apparent load demand S_load in kVA (10..500000 kVA; defaults to preset demand)."
    • addedInput schema / properties / loadKva / maximum
      Added value: +500000
    • addedInput schema / properties / loadKva / minimum
      Added value: +10
    • changedInput schema / properties / loadThdiPct / description
      Previous value: -"THDi global entrant pour sizing AHF (%)."New value: +"Incoming load THDi percentage for active filter current sizing (0..120%)."
    • addedInput schema / properties / loadThdiPct / maximum
      Added value: +120
    • addedInput schema / properties / loadThdiPct / minimum
      Added value: +0
    • addedInput schema / properties / mode / default
      Added value: +"spectrum"
    • changedInput schema / properties / mode / description
      Previous value: -"Mode d’analyse harmonique (défaut: complet)."New value: +"Harmonic analysis calculation mode (defaults to \"spectrum\")."
    • addedInput schema / properties / nonLinearSharePct / default
      Added value: +100
    • changedInput schema / properties / nonLinearSharePct / description
      Previous value: -"Part de charges non-linéaires (%)."New value: +"Percentage share of non-linear load relative to total demand (1..100%, defaults to 100%)."
    • addedInput schema / properties / nonLinearSharePct / maximum
      Added value: +100
    • addedInput schema / properties / nonLinearSharePct / minimum
      Added value: +1
    • addedInput schema / properties / presetId / default
      Added value: +"ups_igbt_datacenter"
    • changedInput schema / properties / presetId / description
      Previous value: -"Preset charge non-linéaire (ups_6pulse, ups_12pulse, ups_igbt_datacenter, vfd_industrial_6p, ev_fast_charging_hub, arc_furnace_or_welding)."New value: +"Non-linear harmonic load spectrum preset identifier (defaults to \"ups_igbt_datacenter\")."
    • addedInput schema / properties / qcEffKvar / default
      Added value: +5000
    • changedInput schema / properties / qcEffKvar / description
      Previous value: -"Puissance réactive effective batterie (kvar)."New value: +"Effective net capacitor bank reactive power Qc_eff in kvar (10..300000 kvar, defaults to 5000 kvar)."
    • addedInput schema / properties / qcEffKvar / maximum
      Added value: +300000
    • addedInput schema / properties / qcEffKvar / minimum
      Added value: +10
    • changedInput schema / properties / sccMva / description
      Previous value: -"Puissance de court-circuit au PCC (MVA)."New value: +"Network three-phase short-circuit level Scc at PCC in MVA (1..50000 MVA)."
    • addedInput schema / properties / sccMva / maximum
      Added value: +50000
    • addedInput schema / properties / sccMva / minimum
      Added value: +1
    • changedInput schema / properties / transformerKva / description
      Previous value: -"Puissance nominale transformateur (kVA)."New value: +"Feeding transformer rated power in kVA (50..500000 kVA; defaults to loadKva)."
    • addedInput schema / properties / transformerKva / maximum
      Added value: +500000
    • addedInput schema / properties / transformerKva / minimum
      Added value: +50
    • changedInput schema / properties / unKv / description
      Previous value: -"Tension nominale PCC (kV)."New value: +"Nominal PCC line-to-line voltage Un in kV (0.2..420 kV; defaults to preset voltage)."
    • addedInput schema / properties / unKv / maximum
      Added value: +420
    • addedInput schema / properties / unKv / minimum
      Added value: +0.2
    • addedInput schema / properties / vectorGroup / default
      Added value: +"Dyn11"
    • changedInput schema / properties / vectorGroup / description
      Previous value: -"Couplage vectoriel (Dyn11, Yyn0, Dd0)."New value: +"Transformer winding vector group (e.g. \"Dyn11\", \"Yyn0\", \"Dd0\", defaults to \"Dyn11\")."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Harmonic spectrum, transformer K-factor derating, and detuned filter report with calculationTrace and legalNotice.",
      +  "properties": {
      +    "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"
      +    },
      +    "detunedFilter": {
      +      "additionalProperties": true,
      +      "description": "Parallel resonance frequency scan, detuned filter, and AHF sizing.",
      +      "properties": {
      +        "ahfSizing": {
      +          "additionalProperties": true,
      +          "description": "Active harmonic filter current sizing.",
      +          "properties": {
      +            "iAhfHarmonicOnlyA": {
      +              "description": "Required active harmonic filter current in A.",
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "bare": {
      +          "additionalProperties": true,
      +          "description": "Bare capacitor parallel resonance parameters.",
      +          "properties": {
      +            "hr0": {
      +              "description": "Bare parallel resonance order hr0.",
      +              "type": "number"
      +            },
      +            "resonanceRisk": {
      +              "description": "True when bare resonance nears characteristic harmonics.",
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "detuned": {
      +          "additionalProperties": true,
      +          "description": "Detuned reactor tuning and ripple-alert summary.",
      +          "properties": {
      +            "detuningPct": {
      +              "description": "Applied detuning factor in %.",
      +              "type": "number"
      +            },
      +            "frpHz": {
      +              "description": "Shifted parallel resonance frequency in Hz.",
      +              "type": "number"
      +            },
      +            "tccProximityAlert": {
      +              "description": "True when resonance approaches 175-188 Hz signaling band.",
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "qcEffKvar": {
      +          "description": "Effective net reactive compensation power in kvar.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "legalNotice": {
      +      "description": "Non-substitution intellectual-property banner adapted to the caller permission tier.",
      +      "type": "string"
      +    },
      +    "mode": {
      +      "description": "Executed harmonic distortion and filtering study mode.",
      +      "type": "string"
      +    },
      +    "spectrum": {
      +      "additionalProperties": true,
      +      "description": "Harmonic order spectrum h=2..50, THDi/TDD/THDu, and waveform summary.",
      +      "properties": {
      +        "compliance": {
      +          "additionalProperties": true,
      +          "description": "Harmonic distortion compliance summary.",
      +          "properties": {
      +            "overallCompliant": {
      +              "description": "True if all distortion thresholds pass.",
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "freqHz": {
      +          "description": "Evaluated grid fundamental frequency in Hz.",
      +          "type": "number"
      +        },
      +        "neutralCurrentA": {
      +          "description": "Zero-sequence triplen neutral conductor current in A.",
      +          "type": "number"
      +        },
      +        "presetId": {
      +          "description": "Resolved harmonic spectrum preset identifier.",
      +          "type": "string"
      +        },
      +        "tddPct": {
      +          "description": "Total demand distortion TDD relative to IL in %.",
      +          "type": "number"
      +        },
      +        "thdiPct": {
      +          "description": "Total current harmonic distortion THDi in %.",
      +          "type": "number"
      +        },
      +        "thduPct": {
      +          "description": "Resulting PCC voltage harmonic distortion THDu in %.",
      +          "type": "number"
      +        },
      +        "unKv": {
      +          "description": "Evaluated PCC nominal voltage in kV.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "transformerDerating": {
      +      "additionalProperties": true,
      +      "description": "Transformer eddy-current F_HL/K-factor derating and thermal overload summary.",
      +      "properties": {
      +        "deratedKva": {
      +          "description": "Permissible derated kVA capacity under harmonic load.",
      +          "type": "number"
      +        },
      +        "fhl": {
      +          "description": "Harmonic eddy-current loss factor F_HL.",
      +          "type": "number"
      +        },
      +        "isYyn0Hazardous": {
      +          "description": "True if star-star winding carries hazardous triplen neutral current.",
      +          "type": "boolean"
      +        },
      +        "kLoadRated": {
      +          "description": "Weighted K-factor thermal duty index.",
      +          "type": "number"
      +        },
      +        "recommendedKClass": {
      +          "description": "Recommended K-factor transformer rating class.",
      +          "type": "string"
      +        },
      +        "transformerKva": {
      +          "description": "Evaluated transformer nominal power in kVA.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world and non-destructive, and the description adds real operational context beyond them: stateless computation, a 120 req/min/IP HTTP ceiling, rejection of malformed inputs via JSON-RPC -32602, and the exact default values applied when inputs are omitted. That defaulting behavior is the single most consequential runtime trait for a 14-param all-optional tool and it is disclosed.

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 purpose, then usage, then behavior in a consistent order with no filler sentences. The long enumeration of default values is the weakest part — verbose and duplicative of the schema defaults — but it is at least grouped in a single clause rather than scattered.

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 complex multi-mode physics calculator with 14 parameters, the definition covers what it computes, when to select it, when not to, error and rate-limit behavior, and defaulting. An output schema exists, so the brief return-field list is a bonus rather than a required burden.

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%, so the schema already documents ranges, enums and defaults for every parameter; the description's list of omitted-input defaults largely restates that. It does not explain how parameters interact across modes (e.g. which inputs are ignored in k_factor vs detuned_filter mode), which is the meaning a 100%-covered schema cannot convey. Baseline 3 applies.

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 ('Analyzes non-linear load harmonic spectra') and enumerates the concrete physics it covers: THDi/TDD/THDu, triplen neutral currents, F_HL/K-factor derating, detuned reactor resonance, active filter sizing, three-winding star equivalents. It explicitly names the sibling it is not (sodural_calc_reactive_varmetric), so an agent can separate the two 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?

Provides an explicit 'When to use' clause (PCC distortion compliance, transformer harmonic derating, passive filter resonance) and an explicit 'Do not use' clause with the redirect to sodural_calc_reactive_varmetric for fundamental tan(phi) compensation and capacitor switching transients. Both the positive and negative routing conditions are spelled out.

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