Skip to main content
Glama

SparkQuote NEC calculators

Box fill calculator

box_fill
Read-onlyIdempotent

Minimum outlet box volume from NEC 314.16(B): conductor, device (2 each), clamp and grounding allowances times the Table 314.16(B) volume for the largest conductor.

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": {
      "awg": "<awg>",
      "conductors": "<conductors>",
      "devices": "<devices>",
      "clamps": "<clamps>",
      "grounds": "<grounds>"
    },
    "name": "box_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
awgYesLargest conductor. "6" = 6 AWG; "8" = 8 AWG; "10" = 10 AWG; "12" = 12 AWG; "14" = 14 AWG; "16" = 16 AWG; "18" = 18 AWG.12
clampsYesInternal cable clamps. "0" = None; "1" = One or more.1
devicesYesDevices (switches, receptacles).
groundsYesEquipment grounds entering box (count).
supportsNoSupport fitting types (stud / hickey). Optional.
boxVolumeNoMarked box volume (blank for minimum only) (in³). Optional.
conductorsYesInsulated conductors (not counting grounds).

Output Schema

NameRequiredDescriptionDefault
okYes
urlYes
codeYes
rowsYes
tableNo
inputsYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / boxVolume
      Added value: +{
      +  "description": "Marked box volume (blank for minimum only) (in³). Optional.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / grounds / default
      Previous value: -"1"New value: +1
    • changedInput schema / properties / grounds / description
      Previous value: -"Equipment grounding conductors. \"0\" = None; \"1\" = One or more."New value: +"Equipment grounds entering box (count)."
    • removedInput schema / properties / grounds / enum
      Removed value: -[
      -  "0",
      -  "1"
      -]
    • addedInput schema / properties / grounds / minimum
      Added value: +0
    • changedInput schema / properties / grounds / type
      Previous value: -"string"New value: +"number"
    • addedInput schema / properties / supports
      Added value: +{
      +  "default": 0,
      +  "description": "Support fitting types (stud / hickey). Optional.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive, closed-world computation, so the safety profile is fully covered. The description still adds real value by disclosing the calculation methodology — devices counted at 2 each, clamp and grounding allowances, largest-conductor volume — which lets an agent trust what the number represents. It does not say what happens when boxVolume is supplied, which keeps it from 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?

A single dense sentence with no filler, front-loaded with the purpose. The technical phrasing ('conductor, device (2 each), clamp and grounding allowances') requires a careful read, but every clause earns its place.

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 7-parameter calculator with an output schema and complete annotation coverage, the description plus schema is close to sufficient. The main omission is the boxVolume comparison behavior, though the schema hint ('blank for minimum only') partially compensates.

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 100%, so the baseline is 3. The description does add a bit beyond the schema by stating devices count as 2 each and that volume is based on the largest conductor, but it says nothing about supports or boxVolume semantics, which the schema already labels.

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 concrete resource and outcome ('Minimum outlet box volume from NEC 314.16(B)') and names the exact code basis, which is unambiguous against siblings like conduit_fill or wire_size. It does not explicitly differentiate itself from siblings, but the resource is specific enough that no confusion is likely.

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?

Provides no when-to-use guidance: it never says when to pick this over conduit_fill or load_calculator, nor when to supply the optional boxVolume for a comparison check. Usage is only inferable from the tool name and the electrical-calculator context.

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.

Resources