Skip to main content
Glama

Electrician Calc: NEC & IEC wire calculator

Calculate conduit fill (NEC Chapter 9)

calculate_conduit_fill
Read-onlyIdempotent

Conduit fill percent and how many wires fit: THHN/THWN-2 in EMT or PVC Schedule 40 from NEC Chapter 9 Table 1 (53 % for one wire, 31 % for two, 40 % for three or more), Table 4 (conduit area) and Table 5 (wire area), with Note 7 rounding for wires of one size, so the counts equal Annex C Table C.1 (e.g. 16 × 12 AWG or 22 × 14 AWG in 3/4" EMT). Mixes sizes (circuit wires plus a ground), says how many more fit and the smallest conduit. Or, for any round cable (IEC practice), fill from the cable's outer diameter and the conduit's inner diameter in mm.

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

Input Schema

NameRequiredDescriptionDefault
conductorsNoNEC mode: THHN/THWN-2 conductors by size and count, grounds included
trade_sizeNo3/4
cable_countNoAny-cable mode: number of cables
conduit_typeNoEMT or PVC Schedule 40emt
cable_diameter_mmNoAny-cable mode (IEC, multi-core cables): outer Ø, mm
conduit_inner_diameter_mmNoAny-cable mode: conduit inner Ø, mm

Output Schema

NameRequiredDescriptionDefault
moreYes
stepsYes
methodYes
passesYes
warningsYes
area_unitYes
wire_areaYes
conductorsYes
conduit_areaYes
fill_percentYes
limit_percentYesChapter 9 Table 1: 53 % one wire, 31 % two, 40 % three or more
room_for_moreNo
permitted_by_note_7No
smallest_trade_sizeNoSmallest conduit of this type that fits them all
max_conductors_of_this_sizeNoWhen all conductors are one size: the most that fit (Annex C count)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a read-only, idempotent, closed-world calculation, so the bar is lower; the description still adds real substance by naming the NEC tables applied, the Note 7 rounding rule, and what the result reports (how many more fit, smallest conduit). It stops short of stating error behavior or what the output fields look like.

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?

Mode and deliverable are front-loaded in the first clause, and every sentence earns its place by adding a table reference, a rounding rule, or a worked example. The dense parentheticals and mid-sentence table citations make it heavier to parse than it needs to be.

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 six-parameter calculator with an output schema and full annotation coverage, the description supplies the mode selection logic, the standards basis, and concrete output expectations. An agent can pick parameters and predict the answer shape without further context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the schema already documents most parameters; the description still adds mode-level meaning by tying conductors/trade_size/conduit_type to NEC mode and the two diameter parameters to cable mode, and by noting grounds count as conductors. It does not cover the trade_size enum or defaults explicitly.

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?

States a specific verb and resource: conduit fill percent and how many conductors fit, plus the exact NEC tables behind the number. It never names or contrasts a sibling tool, so differentiation is left to the domain name alone, which keeps it just 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 Guidelines4/5

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

The description clearly lays out two operating modes — NEC THHN/THWN-2 mode driven by conductor size/count, and any-cable/IEC mode driven by cable and conduit diameters — which maps the agent to the right parameters. It gives no explicit when-not-to-use cases or pointers to the sizing/voltage-drop siblings.

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.