Skip to main content
Glama

The Cable Code

NEC conduit fill: the smallest trade size

conduit_fill
Read-only

NEC Chapter 9 conduit fill: the smallest trade size of a raceway type (EMT, IMC, RMC, PVC, ENT, FMC, LFNC, LFMC, HDPE ...) for a list of conductors or cables, against Table 1's fill limits, with the jam ratio; each area with its table. Free, no LLM. Notes: thecablecode://guide/conduit_fill.

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": {
      "cables": "<cables>"
    },
    "name": "conduit_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
cablesYesConductor rows: {type (THHN, XHHW, THW, RHW, RHW*, USE-2, THHN-5A ... bare, bare-solid), size (AWG or kcmil), count}, or a cable by its diameter {type: "od", od_mm, count}.
nippleNoA nipple up to 600 mm (Note 4, 60 %).
racewayNoTable 4 raceway type; default EMT.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / cables / items / properties / count / description
      Added value: +"How many of this row, 1 to 200."
    • changedInput schema / properties / cables / items / properties / count / maximum
      Previous value: -9007199254740991New value: +200
    • changedInput schema / properties / cables / items / properties / count / minimum
      Previous value: --9007199254740991New value: +1
    • addedInput schema / properties / cables / items / properties / od_mm / description
      Added value: +"With type \"od\": the cable's diameter, mm."
    • addedInput schema / properties / cables / items / properties / size / description
      Added value: +"AWG or kcmil size."
    • addedInput schema / properties / cables / items / properties / type / description
      Added value: +"Conductor type, or \"od\" for a cable by its diameter."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real context beyond that: the calculation is deterministic ("Free, no LLM"), follows NEC Chapter 9 Table 1, accounts for the jam ratio, and reports each area with its table — useful for predicting output shape.

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 purpose is front-loaded in the first clause, and the trailing notes carry the guide URI and no-LLM caveat without padding. The heavy parenthetical list of raceway types is somewhat dense but each element is informative.

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?

With no output schema, the description does its part by indicating the result (smallest trade size, jam ratio, per-area table values). Combined with 100% schema coverage and read-only annotations, an agent has what it needs, though explicit return-format detail and usage routing are absent.

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%, so the schema already documents `cables`, `nipple`, and `raceway`. The description adds only marginal meaning — it names some raceway types (already enumerated in the schema) and hints at the nipple 60% Note 4 rule, but nothing about `cables` row semantics beyond the schema.

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?

States a specific verb-and-resource pair: it computes the smallest trade size of a raceway for a conductor list against NEC Chapter 9 Table 1 fill limits. The mention of raceway types, jam ratio, and per-area tables makes it distinguishable from siblings such as tray_fill or drum_fit without opening a schema.

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?

The intended use (sizing a raceway for a list of conductors or cables) is implied by the description and the required `cables` parameter, but there is no explicit when-to-use, when-not, or named alternative. The pointer to thecablecode://guide/conduit_fill gives context but is not routing guidance.

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