Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Electric Pm Dc Motor

electric_pm_dc_motor

Calculate PM DC, trapezoidal BLDC, and PMSM dq motor operating points, thermal screening, SVPWM current/voltage envelopes, and CSV curves from constant resistance, flux, and inductance inputs.

Instructions

Chapman/Fitzgerald PM DC, Boldea-Nasar trapezoidal BLDC and Krause peak-amplitude PMSM dq estimates. Constant R, flux and inductance; steady nonnegative motoring. Returns operating points, thermal screening, SVPWM current/voltage envelopes and CSV curves. Ignores saturation, switching, iron loss and demagnetization; unreviewed, not a rating or protection certification.

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

Input Schema

NameRequiredDescriptionDefault
modeNoMotor model: pm_dc, pmsm, or bldc_trapezoidal.pm_dc
speedNoMechanical speed, e.g. 100 rad/s or 1500 rpm; DC accepts speed or torque, not both.
torqueNoDC/PMSM electromagnetic torque, e.g. 1 N*m; nonnegative and exclusive with explicit dq currents.
voltageNoDC terminal supply or PMSM inverter DC bus voltage, e.g. 48 V.
d_currentNoPMSM signed peak d-axis current, e.g. -5 A; must accompany q-axis current.
q_currentNoPMSM nonnegative peak q-axis current, e.g. 10 A; must accompany d-axis current.
pole_pairsNoPMSM electrical pole-pair count, integer 1 through 100.
resistanceNoDC terminal or BLDC line-line resistance; PMSM phase resistance, e.g. 0.2 ohm.
curve_pointsNoNumber of automatically spaced motor curve rows, integer 2 through 100.
d_inductanceNoPMSM d-axis phase inductance in H, e.g. 0.5 mH.
flux_linkageNoPMSM permanent-magnet peak phase flux linkage, e.g. 0.05 Wb.
q_inductanceNoPMSM q-axis phase inductance in H, e.g. 0.8 mH.
speed_pointsNoOptional PMSM envelope speeds, e.g. 0 rad/s;100 rad/s; at most 100 semicolon-separated entries.
current_limitNoOptional DC terminal current limit; required PMSM peak phase current limit, e.g. 10 A.
voltage_limitNoAll modes: optional supply or bus ceiling, e.g. 60 V; supplied voltage must stay within it.
mechanical_lossNoAll modes: fixed mechanical loss, e.g. 5 W; default zero; PMSM applies it only at the requested point.
torque_constantNoDC or trapezoidal BLDC torque per terminal current, e.g. 0.1 N*m/A.
back_emf_constantNoOptional DC/BLDC line-line EMF constant, e.g. 0.1 V*s/rad or 10 V/krpm; must match torque constant within 1e-3; no Hz.
thermal_resistanceNoAll modes: optional winding-to-ambient thermal resistance, e.g. 2 K/W; requires allowed temperature rise.
allowed_temperature_riseNoAll modes: allowed winding rise, e.g. 40 K, paired with thermal resistance; absolute degC is invalid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it declares the constant-parameter assumption, the steady motoring restriction, and explicitly lists ignored physics (saturation, switching, iron loss, demagnetization). It also disclaims certification, which is valuable safety context. It lacks error/validation behavior, so not 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?

Two sentences plus a limitation clause, front-loaded with the model names an agent needs to pick a mode. Dense but every clause carries information. Minor cost: the reference-name list is heavy for the space it occupies.

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 20-parameter tool with no output schema and no annotations, the description compensates by naming the return surface (operating points, thermal screening, SVPWM envelopes, CSV curves) and the physical limits. That is enough for correct invocation. Mode-specific parameter interactions live in the schema, which is fully documented.

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 every one of the 20 parameters is already documented with units and examples. The description adds only a general note about constant R, flux, and inductance and the nonnegative motoring constraint, which is modest added meaning over the schema. Baseline 3 is appropriate.

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 the three supported models (pm_dc, pmsm, bldc_trapezoidal) with their underlying references and states the outputs produced: operating points, thermal screening, SVPWM envelopes, and CSV curves. That gives an agent a concrete verb-and-resource picture. It does not explicitly position itself against the sibling electric_induction_motor, so it stops short of 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 Guidelines3/5

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

Usage constraints are implied by phrases like 'steady nonnegative motoring' and 'Constant R, flux and inductance', and the schema descriptions carry the mode-selection rules. The prose itself, however, offers no when-to-use/when-not guidance and never tells the agent to prefer electric_induction_motor for asynchronous machines. Adequate but leaves routing to inference.

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