Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Electric Converter

electric_converter

Calculates buck, boost, and inverting buck-boost converter duty cycles, CCM/DCM ripple, small-ripple behavior, stresses, and losses from electrical and switching inputs.

Instructions

State-space averaged buck/boost/inverting buck-boost duty, CCM/DCM triangular ripple, stresses and losses; small-ripple model.

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_converter"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoConduction requirement: auto selects CCM/DCM; ccm or dcm rejects incompatible load and inductance.auto
topologyNoPower stage: buck, boost, or buck_boost (inverting output); a diode unless synchronous=true.buck
dead_timeNoWith synchronous=true: dead time per edge, e.g. '30 ns'; body diode (diode_drop) conducts, loss Vf*(Ipk+Imin)*t*f.0 s
fall_timeNoSwitch turn-off voltage-current overlap duration, e.g. '30 ns'; must fit the switching period.0 s
rise_timeNoSwitch turn-on voltage-current overlap duration, e.g. '20 ns'; triangular overlap estimate.0 s
diode_dropNoForward diode drop while it conducts, e.g. '0.6 V'; with synchronous=true only the body-diode drop in dead_time.0 V
inductanceNoInductor value with units, e.g. '150 uH'; omit only when target_current_ripple sizes it.
gate_chargeNoGate charge per switching cycle with coulomb units, e.g. '30 nC'; sum of both FETs if synchronous=true.0 C
synchronousNoTrue: a synchronous FET replaces the diode (see low_side_resistance, dead_time); below the CCM boundary it acts as diode emulation.
gate_voltageNoGate-drive voltage paired with gate_charge, e.g. '10 V'; both must be positive or both zero.0 V
capacitor_esrNoOutput-capacitor series resistance with units, e.g. '20 mohm'; zero is ideal.0 ohm
input_voltageNoPositive DC source voltage with units, e.g. '24 V'; supported 1e-6..1e6 V.
output_currentNoPositive DC load-current magnitude with units, e.g. '5 A'; no-load operation is excluded.
output_voltageNoPositive output-voltage magnitude, e.g. '12 V'; buck_boost reports a negative signed output.
switch_resistanceNoOn-state MOSFET resistance Rds(on), e.g. '10 mohm'; the off-state is open.0 ohm
output_capacitanceNoOptional output capacitance with units, e.g. '470 uF'; needed for ripple and control-pole outputs.
inductor_resistanceNoInductor winding DC resistance, e.g. '30 mohm'; core and AC copper losses are excluded.0 ohm
low_side_resistanceNoWith synchronous=true: Rds(on) of the synchronous (low-side) FET, e.g. '8 mohm'; replaces the diode drop in the off interval.0 ohm
switching_frequencyNoFixed switching frequency with Hz units, e.g. '20 kHz'; supported 1e-3..1e9 Hz.
target_output_rippleNoOptional total output peak-to-peak ripple target, e.g. '50 mV'; sizes capacitance after the ESR allowance.
target_current_rippleNoOptional desired inductor peak-to-peak ripple in A; in DCM this is the peak current, e.g. '2 A'.
reverse_recovery_chargeNoDiode hard-commutation reverse-recovery charge, e.g. '15 nC'; assumed zero recovery loss in DCM.0 C

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.2/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 burden, but it does disclose a genuinely useful behavioral fact: results come from a state-space averaged, small-ripple model rather than a switching-level simulation, and it enumerates the computed quantities (duty, ripple, stresses, losses). It still says nothing about accuracy limits, error behavior for incompatible mode/topology combinations, or unit-handling failures.

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?

At roughly two dozen words there is zero filler, and the computed outputs are front-loaded. The phrasing is heavily compressed into jargon fragments, which costs a little readability against a very complex tool, but nothing is redundant.

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

Completeness3/5

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

For a 22-parameter tool with no annotations and no output schema, the description at least lists the output categories (duty, ripple, stresses, losses), which helps. It is still thin on how the optional sizing parameters (target_output_ripple, target_current_ripple) change the computation and on invocation preconditions, leaving gaps the schema alone cannot close.

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%, with every one of the 22 parameters documented including units, enums, and dependency notes (synchronous/dead_time, gate_charge/gate_voltage pairing). The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 names a specific resource and analysis domain (duty, CCM/DCM ripple, stresses, losses for buck, boost, and inverting buck-boost) and its modeling method (state-space averaged, small-ripple), which is enough to distinguish it from the motor/drive siblings. It is a telegraphic noun phrase without a verb, and it never explicitly contrasts itself with any sibling, keeping it below 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no stated prerequisites (e.g. that output_voltage and switching_frequency are effectively needed for a meaningful result), and no pointer to alternatives among the electric_* siblings. Usage must be entirely inferred from the topology list.

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