Skip to main content
Glama

The Cable Code

NEC cable tray fill and ampacity

tray_fill
Read-onlyIdempotent

The NEC cable tray fill (392.22, Tables 392.22(A)(1), (A)(5), (A)(6), (B)(1)) and the ampacity of each cable in the tray (392.80), for 2000 V and below and Type MV: the fill against the allowable area or width, pass or fail, and each cable's derated ampacity with its table. For a conduit or other raceway use conduit_fill (free); for one cable's IEC rating use design_cable. Without full and without payment the answer is the verdict a visitor sees on the site, counted against the designs' daily free allowance; full: true (or any paid call) answers in full. pdf: true adds the calculation sheet. input: {tray: ladder | solid | ventChannel | solidChannel, width (mm, a width the table lists), depth?, use: power | control, covered, layout: touching | spaced | triangular, ambientC, mv, kv?, cables: [{kind: multi | single, size (AWG or kcmil), metal, count, od (mm), tempC, carrying}]}. $0.50 per calculation in USDC with x402; the free verdict counts against the designs' 2 free calls per caller per UTC day; a list of up to 50 items at $0.50 per item, one payment.

Input Schema

NameRequiredDescriptionDefault
pdfNoFull mode: add the calculation sheet as pdf_base64.
fullNotrue: the whole answer, a paid call. Without it the free verdict, counted against the designs' daily free allowance.
langNoAny of the site's 15 languages; default en.
inputNoinput: {tray: ladder | solid | ventChannel | solidChannel, width (mm, a width the table lists), depth?, use: power | control, covered, layout: touching | spaced | triangular, ambientC, mv, kv?, cables: [{kind: multi | single, size (AWG or kcmil), metal, count, od (mm), tempC, carrying}]}
itemsNoInstead of one: a project's list, 1 to 50 items, each {input}; always in full, paid per item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: the free tier (2 calls per caller per UTC day), the $0.50 USDC x402 price, per-item billing for lists, and that pdf: true attaches a calculation sheet. It does not describe the shape of the returned verdict beyond 'pass or fail' and 'derated ampacity with its table', which is the main remaining gap.

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

Conciseness3/5

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

The opening sentence front-loads the purpose well, but the middle is a dense run-on mixing mode selection, pricing, and a verbatim copy of the input object shape that already appears in the schema. The free-allowance rule and the $0.50 rate are effectively restated in two places, and the inline schema blob is redundant rather than additive.

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 tool with nested objects, no output schema, and a paid/free split, the description covers purpose, alternatives, billing, and the nested input shape. What it lacks is any statement of the response structure (field names for the fill verdict or ampacity table) and error behavior for invalid widths or cable combinations.

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 description coverage is 100%, so a 3 is the baseline, but the description adds real meaning on top: width must be 'a width the table lists', covered/layout enums are paired with their valid values, and full/pdf/items are tied to their billing consequences. It stops short of explaining units or defaults for depth, ambientC, mv/kv, or the cables array fields beyond their names.

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 (NEC cable tray fill per 392.22 and cable ampacity per 392.80) with the exact code tables cited, and explicitly names the two siblings it is not (conduit_fill for raceways, design_cable for single-cable IEC ratings). An agent can route correctly 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 Guidelines5/5

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

Gives explicit alternative routing (conduit/raceway → conduit_fill, single-cable IEC → design_cable) plus the mode selection rule: omit full for the free verdict, set full: true or make any paid call for the complete answer, and use items instead of input for a batch. Exclusions and preconditions are stated rather than inferred.

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