Skip to main content
Glama

Electrician Calc: NEC & IEC wire calculator

Convert wire gauge: AWG, kcmil and mm²; aluminum ↔ copper

convert_wire_size
Read-onlyIdempotent

AWG to mm² and mm² to AWG (d = 0.127 mm × 92^((36 − n) / 39), A = π/4 · d²), kcmil (MCM) to mm² (1 kcmil = 0.5067 mm²), with the next standard size in the other system (IEC metric sizes 0.5–300 mm², AWG 24 to 4/0 and NEC kcmil). Also the aluminum size equal in resistance to a copper one and back (ρ20 0.028264 vs 0.017241 Ω·mm²/m), rounded up to the next standard size, for the same voltage drop and losses.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "conversion": "<conversion>",
      "size": "<size>"
    },
    "name": "convert_wire_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYesawg_to_mm2: '12', '4/0' or '0000'; mm2_to_awg and the aluminum ↔ copper swaps: mm², e.g. '2.5'; kcmil_to_mm2: e.g. '250'
conversionYes

Output Schema

NameRequiredDescriptionDefault
moreYes
noteNo
inputYes
stepsYes
resultYes
area_mm2No
conversionYes
diameter_mmNoSolid conductor diameter
circular_milsNo
next_awg_sizeNoNext AWG / kcmil size at least as large
next_metric_size_mm2NoNext standard metric size up (IEC)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, which lowers the bar. The description adds real value by disclosing output behavior: results are 'rounded up to the next standard size' and it reports 'the next standard size in the other system', plus the resistivity constants used for the aluminum↔copper swap. It does not say what happens for out-of-range or invalid sizes, leaving a modest gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The whole description is one long, run-on sentence padded with formulas and parenthetical constants. It is front-loaded and contains no filler, but the density of math crowds out practical guidance and makes it harder to scan.

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?

The tool is simple (2 required parameters), an output schema exists, and the description covers input ranges (IEC 0.5–300 mm², AWG 24 to 4/0), rounding behavior, and the physical basis of each conversion. Only error and boundary behavior is unspecified.

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 coverage is 50%: the size parameter is fully documented, while the conversion enum only lists values. The description compensates by explaining what each conversion family means, including the d/92-exponent formula and the ρ20 constants behind the aluminum↔copper modes. This is helpful but does not tie the enum values to the semantics in a one-to-one way, so extra inference is needed.

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 description opens with a specific verb and resource pair, 'AWG to mm² and mm² to AWG', and then names every conversion family it handles: kcmil (MCM), IEC metric sizes, NEC kcmil, and aluminum↔copper resistance-equivalent sizing. This clearly marks it as a unit converter, distinct from the sibling calculators (voltage drop, conduit fill, box fill).

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?

Implied guidance comes from listing supported ranges and conversions, which lets an agent infer scope, but there is no statement of when to use it versus a sibling or when to avoid it, for example when a load-based sizing calculation is needed. The usage is inferable but never explicit.

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.