Skip to main content
Glama

Electrician Calc: NEC & IEC wire calculator

Calculate electrical box fill (NEC 314.16)

calculate_box_fill
Read-onlyIdempotent

NEC 314.16 box fill: volume allowances (each insulated conductor 1, all internal clamps 1, each fixture stud or hickey 1, each device yoke 2, equipment grounds 1 for up to four plus ¼ for each additional, NEC 2023) times the Table 314.16(B)(1) volume per conductor of the largest wire (14 AWG 2.00 in³, 12 AWG 2.25 in³, 10 AWG 2.50 in³), against the box volume. Says whether it fits, how many more wires fit and the smallest metal box of Table 314.16(A) that holds it.

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": {
      "box_volume_in3": "<box_volume_in3>",
      "insulated_conductors": "<insulated_conductors>"
    },
    "name": "calculate_box_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
devicesNoSwitches and receptacles on a yoke: 2 each
ground_wiresNoEquipment grounding conductors: 1 for up to four, ¼ each beyond
largest_wireNoLargest conductor in the box, 18 to 6 AWG12
box_volume_in3YesBox volume in cubic inches: stamped inside plastic boxes; metal 4 in square × 1½ in = 21, × 2⅛ in = 30.3. Add a ring's marked volume
internal_clampsNoInternal cable clamps: one allowance for all
insulated_conductorsYesHots and neutrals entering the box (a wire passing through once counts 1, pigtails 0)
fixture_studs_hickeysNo

Output Schema

NameRequiredDescriptionDefault
moreYes
stepsYes
passesYes
warningsYes
fill_percentYes
box_volume_in3Yes
volume_allowancesYes
smallest_metal_boxYesSmallest Table 314.16(A) metal box that holds it
required_volume_in3Yes
room_for_more_conductorsYes
volume_per_conductor_in3Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive calculation. The description adds meaningful domain behavior: it discloses the NEC 2023 allowance rules, the Table 314.16(B)(1) volume basis, and what the result reports (fit, spare wire capacity, smallest metal box).

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?

The description is a single dense paragraph but is front-loaded with the standard and calculation purpose. Every clause contributes to the box-fill methodology or the reported result, though it could be easier to scan if structured into separate rule and output sentences.

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 has an output schema and rich annotations, and the description still explains the calculation basis and the three result categories. It is complete for invocation, with only a minor gap in explicit when-to-use routing against sibling calculators.

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 high at 86%, so the parameter meanings are largely documented in the schema itself. The description reinforces the calculation inputs by listing volume allowances and wire-size volumes, but it does not add parameter-specific syntax or edge-case guidance beyond what the schema already provides.

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 standard and resource: 'NEC 314.16 box fill', then explains the calculation and the result. It clearly distinguishes this from conduit fill, voltage drop, and wire-sizing siblings by naming the box-fill domain and its NEC article.

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 is implied by the NEC box-fill context and the sibling names, but the description never explicitly says when to use this tool versus calculate_conduit_fill or the other calculators. It also does not state exclusions or prerequisites beyond the NEC reference.

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.