Skip to main content
Glama

The Cable Code

NEC cable tray fill and ampacity

tray_fill
Read-only

NEC cable tray fill (392.22) and each cable's derated ampacity (392.80), up to 2000 V and Type MV: pass or fail. A conduit: conduit_fill (free). $0.50 USDC per calculation (x402); the verdict alone (no full) is free within the designs' 2 calls per caller per UTC day. Notes: thecablecode://guide/tray_fill.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tray_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdfNoFull mode: add the calculation sheet as pdf_base64.
fullNotrue: the whole answer (paid).
langNoAnswer language; default en.
inputNoinput: {tray, width (mm), use, layout, ambientC, mv, cables: [{kind, size, metal, count, od, tempC, carrying}], ...}
itemsNoOr a list of {input}, paid per item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / full / description
      Previous value: -"true: the whole answer, a paid call. Without it the free verdict, counted against the designs' daily free allowance."New value: +"true: the whole answer (paid)."
    • changedInput schema / properties / input / description
      Previous value: -"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}]}"New value: +"input: {tray, width (mm), use, layout, ambientC, mv, cables: [{kind, size, metal, count, od, tempC, carrying}], ...}"
    • changedInput schema / properties / items / description
      Previous value: -"Instead of one: a project's list, 1 to 50 items, each {input}; always in full, paid per item."New value: +"Or a list of {input}, paid per item."
    • changedInput schema / properties / lang / description
      Previous value: -"Any of the site's 15 languages; default en."New value: +"Answer language; default en."
  2. Added

TDQS

A4.1/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 the safety profile is covered; the description adds genuinely useful behavior the annotations cannot convey — $0.50 USDC per calculation via x402, a free verdict-only path limited to 2 calls per caller per UTC day. It does not describe latency, failure modes, or what happens when quota is exceeded, so it is strong but not complete.

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?

Purpose and standards are front-loaded in the first clause, followed by the sibling routing, then pricing — a sensible order. The single dense sentence mixes pricing, quota, and a resource URI without separation, but little of it is filler.

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 paid computation tool with a nested `input` object, batch mode, and no output schema, the definition covers cost, quota, alternative tool, and the core return value (pass/fail, optional PDF sheet). The main gap is any description of the full answer's structure beyond the PDF, which an agent would have to discover by calling.

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 every parameter is already documented, and the description only reinforces the free/paid split implied by `full` ('the verdict alone (no full) is free'). It adds no detail on `input` field requirements (tray, width, layout, cables), `pdf`, `lang`, or the 50-item batch limit beyond what the schema states.

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 names the specific resource and the exact NEC articles it implements (tray fill 392.22, derated ampacity 392.80), bounds the scope (up to 2000 V and Type MV), and states the output form (pass or fail). An agent can distinguish this from the conduit and cable-rating siblings without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It explicitly routes conduit work to `conduit_fill` (noting it is free), which is the main competing choice, and it explains the cost/free-quota structure that governs when a call is worth making. It stops short of saying when to submit a batch via `items` versus a single `input`, so the guidance is clear but not exhaustive.

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