Skip to main content
Glama

The Cable Code

AWG or kcmil to mm² and back, by area and by resistance

awg_metric
Read-onlyIdempotent

AWG / kcmil against IEC 60228 mm², both ways, by area and by maximum resistance at 20 °C (4/0 AWG is not 95 mm²), each size with its resistance and source (NEC Chapter 9 Table 8, UL 1581 Table 30.3, IEC 60228:2004 Table 2); with k, the ICEA insulation constant K (MΩ·1000 ft at 15.6 °C) in MΩ·km and why it cannot be checked against an IEC Ki. Send awg or mm2 (one of them), metal Cu (default) or Al. Use it to translate a North American size; to decode a whole designation use decode_cable_code, to size a cable design_cable. An unknown size is a 400 that names the sizes. Free, deterministic, no LLM.

Input Schema

NameRequiredDescriptionDefault
kNoAn ICEA insulation constant K, MΩ·1000 ft at 15.6 °C.
awgNoAn AWG or kcmil size: 12, 1/0, 4/0, 500.
mm2NoAn IEC 60228 class 2 size, mm².
langNoAny of the site's 15 languages; default en.
metalNoCu (default) or Al.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/closed-world annotations it discloses source tables (NEC Ch. 9 Table 8, UL 1581 Table 30.3, IEC 60228:2004 Table 2), the 400 error behavior for unknown sizes, determinism/no-LLM, and the caveat that an ICEA K cannot be verified against an IEC Ki. It does not say what happens if both awg and mm2 are supplied, or neither, which is the one behavioral gap.

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?

Front-loaded with the conversion scope, then inputs, then alternatives, then behavior — a sensible order with no filler sentences. It is written as a long semicolon-chained block, and the source-table parenthetical is dense, which costs a point on readability but not on content value.

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 5-parameter, zero-required, no-output-schema conversion tool it covers inputs, defaults, error behavior, sources, and sibling routing. What is only partially covered is the return shape — 'each size with its resistance and source' hints at a table but the granularity for a single-size lookup versus a full list is not spelled out.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: awg and mm2 are mutually exclusive alternatives rather than independent filters, metal defaults to Cu, and k is specifically the ICEA constant expressed in MΩ·km with a stated comparability limitation. That goes beyond the schema's one-line property descriptions.

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 transformation: AWG/kcmil ↔ IEC 60228 mm², in both directions, by area and by maximum resistance at 20 °C. It also names the two sibling tools it is not (decode_cable_code for whole designations, design_cable for sizing), so an agent can route 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?

Explicit routing: 'Use it to translate a North American size; to decode a whole designation use decode_cable_code, to size a cable design_cable.' It also states the input rule 'Send awg or mm2 (one of them)' and the metal default, so when-to-use and which-argument-to-supply are both covered.

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