Skip to main content
Glama

SparkQuote NEC calculators

Conduit fill calculator

conduit_fill
Read-onlyIdempotent

Percent fill and maximum number of THHN/THWN-2 conductors of one size in EMT or PVC Schedule 40, from NEC Chapter 9 Tables 1, 4 and 5.

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": {
      "type": "<type>",
      "size": "<size>",
      "awg": "<awg>",
      "count": "<count>"
    },
    "name": "conduit_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
awgYesTHHN/THWN-2 size. "1" = 1 AWG; "2" = 2 AWG; "3" = 3 AWG; "4" = 4 AWG; "6" = 6 AWG; "8" = 8 AWG; "10" = 10 AWG; "12" = 12 AWG; "14" = 14 AWG; "1/0" = 1/0 AWG; "2/0" = 2/0 AWG; "3/0" = 3/0 AWG; "4/0" = 4/0 AWG.12
sizeYesTrade size. "1" = 1"; "2" = 2"; "3" = 3"; "4" = 4"; "1/2" = 1/2"; "3/4" = 3/4"; "1-1/4" = 1-1/4"; "1-1/2" = 1-1/2"; "2-1/2" = 2-1/2"; "3-1/2" = 3-1/2".3/4
typeYesConduit type. "EMT" = EMT; "PVC-40" = PVC Schedule 40.EMT
countYesNumber of conductors.
groupsNoMixed THHN/THWN-2 groups: quantity, size per line (blank uses the single-size inputs)

Output Schema

NameRequiredDescriptionDefault
okYes
urlYes
codeYes
rowsYes
tableNo
inputsYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / groups
      Added value: +{
      +  "default": "",
      +  "description": "Mixed THHN/THWN-2 groups: quantity, size per line (blank uses the single-size inputs)",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real context by grounding results in specific NEC tables and limiting applicability to THHN/THWN-2 in EMT/PVC-40, but says nothing about rounding, units, or how the 'maximum number' is derived beyond the cited tables.

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

Conciseness5/5

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

A single dense sentence with the primary outputs front-loaded, followed by the material and code-source qualifiers. No filler and no repetition of the title.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. For a pure read-only calculator this is close to sufficient, with the mixed-size 'groups' input being the only notable omission.

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% with enums on awg, size and type, so the schema carries parameter meaning fully; baseline 3 applies. The phrase 'conductors of one size' adds a little framing but does not explain the optional 'groups' parameter for mixed sizes, which is the one input an agent might misread.

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 a specific computation (percent fill and maximum conductor count), the exact conductor type (THHN/THWN-2), the conduit types (EMT, PVC Schedule 40) and the code basis (NEC Chapter 9 Tables 1, 4, 5). That is enough to separate it from siblings like box_fill or wire_size, though it never explicitly contrasts itself with them.

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?

There is no statement of when to use this versus alternatives such as box_fill (box fill vs conduit fill) or wire_size, and no prerequisites or exclusions. The scope is inferable from the purpose sentence alone, but no guidance is actually given.

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