Skip to main content
Glama

The Cable Code

IEC against NEC / UL equivalence report

equivalence_report
Read-only

An IEC cable in mm2 against its North American counterpart (XHHW-2, RHW-2, THHN or MV-105), value by value with sources, as lines and a report file; never a statement of interchangeability. $0.50 USDC per calculation (x402), no free allowance. Notes: thecablecode://guide/equivalence_report.

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": "equivalence_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoAnswer language; default en.
specNoOr a design_cable spec.
inputNoinput: {format?: md | txt (the report file; default md)}
itemsNoOr a list of {sentence | spec | design, input}, paid per item.
designNoOr a design_cable design.
sentenceNoThe cable, as design_cable takes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / design / description
      Previous value: -"Instead of a sentence: the design field of a design_cable answer."New value: +"Or a design_cable design."
    • changedInput schema / properties / items / description
      Previous value: -"Instead of one: a project's list, 1 to 50 items, each {sentence | spec | design, input}; always in full, paid per item."New value: +"Or a list of {sentence | spec | design, 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."
    • changedInput schema / properties / sentence / description
      Previous value: -"The cable in words or its designation, as design_cable takes it."New value: +"The cable, as design_cable takes it."
    • changedInput schema / properties / spec / description
      Previous value: -"Instead of a sentence: a spec as design_cable takes it."New value: +"Or a design_cable spec."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=true and openWorldHint=false, so the description must carry the rest, and it does: a concrete price of $0.50 USDC per calculation via x402, the explicit absence of a free allowance, the delivery shape (lines plus a report file), and a scope disclaimer that the result is not an interchangeability statement. Pricing and the no-free-tier constraint are exactly the kind of non-schema behavior an agent needs. It does not cover failure modes or latency, keeping it below a 5.

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 core comparison and its scope caveat are front-loaded in a single dense sentence, followed by pricing and a pointer to further notes. Every clause carries information: counterpart types, value-by-value sourcing, output shape, the non-interchangeability disclaimer, and cost. The bare URI note is the only weakly integrated element.

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 six optional parameters, nested objects, no output schema, and no required fields, the description does enough: it identifies the input domain (IEC mm2 cable), the output form (lines plus a report file), and the cost model, so an agent can call it without guessing. What remains thin is guidance on the per-item versus single-spec modes implied by the items array, which the description never mentions.

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 lang, spec, design, sentence, items, and input.format; the baseline of 3 applies. The description hints at the report file ('as lines and a report file') and the mm2 cable input, which loosely maps to the input.format and sentence/spec parameters. It adds no format, limit, or per-item payment detail beyond what the schema already states.

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 verb and resource: an equivalence report comparing an IEC cable in mm2 against named North American counterparts (XHHW-2, RHW-2, THHN, MV-105), value by value with sources, delivered as lines plus a report file. That is far more specific than the title alone. It stops short of distinguishing itself from sibling tools such as find_equivalents or awg_metric, so an agent still has to infer which comparison tool to pick.

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?

Usage is implied rather than stated: you use this when you have an IEC mm2 cable and want a documented North American comparison. The explicit caveat 'never a statement of interchangeability' usefully tells the agent what the output must not be used for. However, no alternative tool is named and no conditions for choosing between this and find_equivalents are given, and the guide pointer is a bare URI with no explanation of what it resolves.

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