Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Electric Power Flow

electric_power_flow

Calculate balanced three-phase power, feeder voltage drop, per-unit rebasing, sequence components, fault currents, and capacitor correction for steady-state RMS studies.

Instructions

Balanced three-phase P/Q/S and capacitor correction; exact/approximate feeder drop; per-unit rebasing; Fortescue components and four sequence-network fault types. Fitzgerald/Kirtley steady-state RMS methods. No harmonics, cable ampacity, protection settings or compliance checks.

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

Input Schema

NameRequiredDescriptionDefault
modeNoCalculation: balanced, feeder, per_unit, components or fault; each mode rejects unrelated quantity inputs.balanced
lengthNoOne-way feeder length, e.g. '100 m'; feeder mode only, '' omitted otherwise.
sourceNoBalanced/feeder data source: power_pf, power_pq or phasors; phasor angles reference phase-A voltage.power_pf
phasorsNoComponents mode: exactly 3 'real,imag' rows, e.g. '1 V,0 V;0 V,0 V;0 V,0 V'; <=1000 chars per row.
directionNoComponents direction: phase_to_sequence (abc to 012) or sequence_to_phase (012 to abc).phase_to_sequence
frequencyNoSupply cyclic frequency, e.g. '50 Hz'; used for capacitor correction only.50 Hz
impedanceNoPer-unit mode 'real,imag' impedance, e.g. '1 ohm,2 ohm' or '.1 dimensionless,.2 dimensionless'; '' omits.
base_powerNoOld three-phase apparent base, e.g. '10 MVA'; per_unit mode, VA family only.
connectionNoLoad connection wye or delta for balanced/feeder winding phase values.wye
fault_typeNoFault mode: three_phase, line_ground (a), line_line (b-c), or double_line_ground (b-c-ground).three_phase
real_powerNoTotal consumed real power, e.g. '12 kW'; power_pf/power_pq modes; W family, '' omits for phasors.
peak_methodNoPeak factor: half_cycle approx. sqrt(2)(1+exp(-pi R/X)) of fault loop, or iec_kappa sqrt(2)*kappa from bolted R1/X1.half_cycle
phasor_kindNoComponents quantity: voltage or current; all three phasors must use compatible V or A units.voltage
base_voltageNoOld line-line base voltage, e.g. '11 kV'; per_unit mode required.
line_currentNoLine RMS current magnitude, e.g. '25 A'; phasors source only, '' omitted for power inputs.
line_voltageNoReceiving or prefault line-line RMS voltage, e.g. '400 V'; balanced, feeder and fault modes.
power_factorNoDisplacement power factor magnitude, 0.001..1; used only by power_pf source.
current_angleNoLine-A current angle versus phase-A voltage, e.g. '-30 deg'; phasors source only, '' means 0 deg.
new_base_powerNoNew three-phase apparent base, e.g. '20 MVA'; per_unit mode, '' keeps old apparent base.
reactive_powerNoTotal signed reactive power, e.g. '9 kvar'; power_pq only, positive inductive; '' omitted otherwise.
zero_impedanceNoFault zero-sequence 'R,X', e.g. '0.2 ohm,3 ohm'; required for ground faults, '' otherwise.
fault_impedanceNoFault path passive 'R,X', e.g. '0 ohm,0 ohm'; line_line is b-c path, ground types share ground path.0 ohm,0 ohm
impedance_basisNoPer-unit input basis: ohm or per_unit; new base outputs always include dimensionless impedance.ohm
feeder_reactanceNoOne-conductor inductive reactance per length, e.g. '0.1 ohm/km'; feeder mode required.
new_base_voltageNoNew line-line voltage base, e.g. '33 kV'; per_unit mode, '' keeps old voltage base.
feeder_resistanceNoOne-conductor resistance per length, e.g. '0.2 ohm/km'; feeder mode required.
negative_impedanceNoFault negative-sequence 'R,X', e.g. '0.1 ohm,1 ohm'; required for unbalanced faults, '' otherwise.
positive_impedanceNoFault positive-sequence Thevenin 'R,X', e.g. '0.1 ohm,1 ohm'; required, passive.
target_power_factorNoCapacitor correction target 0.001..1, lagging; 0 omits correction. Balanced/feeder modes only.
capacitor_connectionNoCorrection bank connection: delta or wye; capacitance output is per branch.delta
power_factor_directionNoReactive direction for power_pf source: lagging or leading.lagging

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It does meaningful work by declaring the method basis (Fitzgerald/Kirtley steady-state RMS) and the analysis limits (no harmonics, ampacity, protection or compliance), which tells the agent when results are not applicable. However, it says nothing about return shape, error behavior when inputs conflict with a mode, or that the tool is a pure computation with no side effects.

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?

Three dense sentences: capability inventory first, method basis second, exclusions last. Semicolon-separated lists compress a great deal of scope into little text, and every clause carries information. Slightly telegraphic, which costs it the top score for readability.

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

Completeness4/5

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

For a 31-parameter multi-mode calculator with no output schema, the description covers the full mode surface and states the domain limits an agent most needs before calling. What remains unaddressed is what a result looks like and how mode-specific input rejection surfaces to the caller, though the schema documents inputs thoroughly.

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 all 31 parameters carry per-parameter descriptions including mode applicability, units and defaults, so the baseline is 3. The description reinforces the mode names (balanced, feeder, per_unit, components, fault) that map to the mode parameter, but adds no unit syntax, range or interaction detail beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates exactly what the tool computes: balanced three-phase P/Q/S, capacitor correction, feeder drop, per-unit rebasing, Fortescue components and four fault types. That is specific enough for an agent to know this is a steady-state power-flow calculator rather than a converter or motor-sizing tool. It stops short of naming or contrasting with any sibling tool, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives a clear positive scope (the five calculation families) and an explicit negative scope: no harmonics, cable ampacity, protection settings or compliance checks. What is missing is routing guidance — it never says which sibling to use when a request falls outside those exclusions, so the agent must infer alternatives from names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools