Skip to main content
Glama

The Cable Code

Decode a cable designation

decode_cable_code
Read-onlyIdempotent

Decode a cable type designation (DIN VDE, HAR, BS/IEC, NEC, TS, UTE, CEI-UNEL and 64 more of its 71 coding systems, plus LAN and fibre) into its layers: conductor, insulation, screen, armour, sheath, with the source behind each symbol. Deterministic, no LLM.

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": {
      "code": "<code>"
    },
    "name": "decode_cable_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesA cable type designation as printed or listed, e.g. "NYY-J 3x1,5", "N2XSEYRY", "12/2 NM-B", "H07RN-F 3G2,5".
langNoAny of the site's 15 languages; default en.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lang / description
      Added value: +"Any of the site's 15 languages; default en."
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "tr"
      -]New value: +[
      +  "en",
      +  "tr",
      +  "de",
      +  "nl",
      +  "sv",
      +  "fr",
      +  "es",
      +  "da",
      +  "no",
      +  "fi",
      +  "it",
      +  "ro",
      +  "pl",
      +  "cs",
      +  "ru"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false. The description usefully adds that decoding is deterministic and not LLM-based, that each symbol has a cited source, and that output covers conductor, insulation, screen, armour, and sheath. It does not describe behavior for unknown or ambiguous codes.

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

Conciseness5/5

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

The definition is a single front-loaded sentence with no wasted preamble. The coding-system list and output-layer list are dense but relevant, and 'Deterministic, no LLM' earns its place as useful behavioral context.

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?

There is no output schema, but the description compensates by outlining the decoded layer structure and source provenance for each symbol. It leaves minor gaps around error handling for unrecognized designations and how the lang parameter affects returned text.

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%, and the schema already documents the code parameter with examples and the lang enum/default. The description adds no parameter-specific details such as accepted formatting, normalization, or how lang changes output, so the baseline of 3 is appropriate.

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?

Opens with a specific verb, 'Decode', and resource, 'cable type designation', then enumerates supported coding systems and the output layers. This makes clear it is an interpretation tool rather than a validation or design tool such as check_cable or design_cable.

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 is implied: interpret a printed or listed cable designation into its construction layers. However, it never explicitly states when to use this versus check_cable, find_equivalents, or other siblings, and it gives no exclusions or prerequisites.

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