Skip to main content
Glama

The Cable Code

Find the cable drum a length needs

drum_fit
Read-only

Which cable drum (reel) a length needs (od, length), or what one drum takes (od, D, d, W): nested whole layers on 1.05 x OD under a freeboard, over KTG, Nordic K, DIN, Spanish, NEMA, Turkish, IS 10418 and makers' drums with sources, with barrel and load checks; reeling adds the NFPA 79 derating, lagging the handling block. Notes: thecablecode://guide/drum_fit. Free, outside the daily calls; 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": {
      "od": "<od>"
    },
    "name": "drum_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
DNoA drum by its dimensions: flange diameter, mm.
WNoWinding width between the flanges, mm.
dNoBarrel diameter, mm, less than D.
kgNoCable mass, kg/km: adds weights and the load check.
odYesCable outer diameter, mm (a flat cable: its larger side).
maxNoMost drums of one size the length may be split over; default 1.
kindNoCable kind for the smallest barrel; default lv-multi.
langNoThe handling block's words: any of the site's 15 languages.
poolNoWith length, 1: pooled sizes over makers (pools[]) instead of one row per drum.
layersNoWith reeling: the layers wound; default 1.
lengthNoCable length to wind, m.
systemNoDrum family; default all.
laggingNoAdds the handling and storage block, with this lagging.
reelingNoA motor-driven reeling drum: adds the NFPA 79 (2024) derating.
handlingNo1: the handling block with lagging none.
materialNoWith D, d and W: the drum's material for the handling block (default wood).
allowanceNoWound diameter over OD. Default 1.05.
barrel_odNoA bundle's lay-up diameter for the barrel check, mm; default od.
freeboardNoFreeboard to the flange rim, mm.
free_heightNoWith D, d and W, a part-used drum: flange rim down to the cable top, mm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • changedInput schema / properties / barrel_od / description
      Previous value: -"A bundle's lay-up diameter, mm, for the barrel check where it is not od (a triplex or three single cores laid up: drum.ts barrelBasis); the capacity still winds on od. Default od."New value: +"A bundle's lay-up diameter for the barrel check, mm; default od."
    • changedInput schema / properties / free_height / description
      Previous value: -"With D, d and W: a part-used drum, the height measured from the flange rim down to the top of the cable, mm. Gives the length left on it as a range (the top layer may be part wound)."New value: +"With D, d and W, a part-used drum: flange rim down to the cable top, mm."
    • changedInput schema / properties / freeboard / description
      Previous value: -"Freeboard to the flange rim, mm. Default max(50 mm, one wound diameter)."New value: +"Freeboard to the flange rim, mm."
    • changedInput schema / properties / kg / description
      Previous value: -"Cable mass, kg/km: gives cable and gross (cable + tare) kg per drum and the maker's load check."New value: +"Cable mass, kg/km: adds weights and the load check."
    • changedInput schema / properties / kind / description
      Previous value: -"Cable kind for the smallest barrel (KTG table, x OD): flexible 12, lv-multi 15, lv-single 20, mv-multi 20, mv-single 25, hv 25, telecom 20, paper-lead 30. Default lv-multi."New value: +"Cable kind for the smallest barrel; default lv-multi."
    • changedInput schema / properties / lagging / description
      Previous value: -"Adds handling: the drum page's handling and storage block (lagging and its estimated mass, the rules for lifting, transport, storage and payout, HD 620 for MV kinds, return terms, ISPM 15) for the first drum of the answer, every line with its sources; each fit (or pool row) also carries its own handling: lagging, gross mass, bolt torque, rules, HD 620 barrel and return terms."New value: +"Adds the handling and storage block, with this lagging."
    • changedInput schema / properties / layers / description
      Previous value: -"With reeling: the layers wound, 1 to 5 (a cylindrical drum's factor depends on them, a radial drum's does not; NFPA 79 gives factors for 1 to 4, DIN VDE 0298-4 Table 27 for 1 to 5). Default 1."New value: +"With reeling: the layers wound; default 1."
    • changedInput schema / properties / layers / maximum
      Previous value: -9007199254740991New value: +5
    • changedInput schema / properties / layers / minimum
      Previous value: --9007199254740991New value: +1
    • changedInput schema / properties / max / description
      Previous value: -"Most drums of one size the length may be split over. Default 1."New value: +"Most drums of one size the length may be split over; default 1."
    • changedInput schema / properties / max / maximum
      Previous value: -9007199254740991New value: +10
    • changedInput schema / properties / max / minimum
      Previous value: --9007199254740991New value: +1
    • changedInput schema / properties / pool / description
      Previous value: -"With length: 1 answers with pooled drum sizes (pools[], one row per nominal size and material, its makers' drums inside, each with its own numbers) instead of one row per maker's drum (fits[]). Default 0: the answer is unchanged."New value: +"With length, 1: pooled sizes over makers (pools[]) instead of one row per drum."
    • changedInput schema / properties / reeling / description
      Previous value: -"A motor-driven reeling drum (crane, mining machine, festoon reel) for a flexible cable: cylindrical (ventilated, wide flanges), radial-vent or radial-closed (spiral). Adds reeling: the NFPA 79 (2024) Table 12.7.3 factor on the cable's current rating and the drum rules of 13.4.3.2."New value: +"A motor-driven reeling drum: adds the NFPA 79 (2024) derating."
    • changedInput schema / properties / system / description
      Previous value: -"Drum system: KTG (the KTG rental pool, Europe), nordic-k (Nordic K series), din (older DIN 46391 series as Eland and Romagna Cavi print it), spanish (Spanish makers), EU (every European drum), NEMA (WC 26 classes), NA (every North American drum), TR (Turkish makers), IS (IS 10418:2024, India: the standard's own sizes, no tare or load), reels (plastic, plywood and cardboard reels), maker (one maker's own sizes), other (Brazil NBR 11137, Chinese steel drums) or all. Default all."New value: +"Drum family; default all."
  2. Changed1 schema field changed
    • addedInput schema / properties / barrel_od
      Added value: +{
      +  "description": "A bundle's lay-up diameter, mm, for the barrel check where it is not od (a triplex or three single cores laid up: drum.ts barrelBasis); the capacity still winds on od. Default od.",
      +  "type": "number"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / layers / description
      Previous value: -"With reeling: the layers wound, 1 to 4 (a cylindrical drum's factor depends on them, a radial drum's does not). Default 1."New value: +"With reeling: the layers wound, 1 to 5 (a cylindrical drum's factor depends on them, a radial drum's does not; NFPA 79 gives factors for 1 to 4, DIN VDE 0298-4 Table 27 for 1 to 5). Default 1."
  4. Changed1 schema field changed
    • changedInput schema / properties / lagging / description
      Previous value: -"Adds handling: the drum page's handling and storage block (lagging and its estimated mass, the rules for lifting, transport, storage and payout, HD 620 for MV kinds, return terms, ISPM 15) for the first drum of the answer, every line with its sources."New value: +"Adds handling: the drum page's handling and storage block (lagging and its estimated mass, the rules for lifting, transport, storage and payout, HD 620 for MV kinds, return terms, ISPM 15) for the first drum of the answer, every line with its sources; each fit (or pool row) also carries its own handling: lagging, gross mass, bolt torque, rules, HD 620 barrel and return terms."
  5. Changed4 schema fields changed
    • addedInput schema / properties / handling
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": 0,
      +      "type": "number"
      +    },
      +    {
      +      "const": 1,
      +      "type": "number"
      +    },
      +    {
      +      "type": "boolean"
      +    }
      +  ],
      +  "description": "1: the handling block with lagging none."
      +}
    • addedInput schema / properties / lagging
      Added value: +{
      +  "description": "Adds handling: the drum page's handling and storage block (lagging and its estimated mass, the rules for lifting, transport, storage and payout, HD 620 for MV kinds, return terms, ISPM 15) for the first drum of the answer, every line with its sources.",
      +  "enum": [
      +    "none",
      +    "full",
      +    "export",
      +    "spaced",
      +    "cat",
      +    "wrap",
      +    "steel"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "The handling block's words: any of the site's 15 languages.",
      +  "enum": [
      +    "en",
      +    "tr",
      +    "de",
      +    "nl",
      +    "sv",
      +    "fr",
      +    "es",
      +    "da",
      +    "no",
      +    "fi",
      +    "it",
      +    "ro",
      +    "pl",
      +    "cs",
      +    "ru"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / material
      Added value: +{
      +  "description": "With D, d and W: the drum's material for the handling block (default wood).",
      +  "enum": [
      +    "wood",
      +    "plywood",
      +    "steel",
      +    "plastic",
      +    "cardboard"
      +  ],
      +  "type": "string"
      +}
  6. Changed2 schema fields changed
    • addedInput schema / properties / layers
      Added value: +{
      +  "description": "With reeling: the layers wound, 1 to 4 (a cylindrical drum's factor depends on them, a radial drum's does not). Default 1.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / reeling
      Added value: +{
      +  "description": "A motor-driven reeling drum (crane, mining machine, festoon reel) for a flexible cable: cylindrical (ventilated, wide flanges), radial-vent or radial-closed (spiral). Adds reeling: the NFPA 79 (2024) Table 12.7.3 factor on the cable's current rating and the drum rules of 13.4.3.2.",
      +  "enum": [
      +    "cylindrical",
      +    "radial-vent",
      +    "radial-closed"
      +  ],
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • changedInput schema / properties / system / description
      Previous value: -"Drum system: KTG (the KTG rental pool, Europe), nordic-k (Nordic K series), din (older DIN 46391 series as Eland and Romagna Cavi print it), spanish (Spanish makers), EU (every European drum), NEMA (WC 26 classes), NA (every North American drum), TR (Turkish makers), reels (plastic, plywood and cardboard reels), maker (one maker's own sizes), other (Brazil NBR 11137, Chinese steel drums) or all. Default all."New value: +"Drum system: KTG (the KTG rental pool, Europe), nordic-k (Nordic K series), din (older DIN 46391 series as Eland and Romagna Cavi print it), spanish (Spanish makers), EU (every European drum), NEMA (WC 26 classes), NA (every North American drum), TR (Turkish makers), IS (IS 10418:2024, India: the standard's own sizes, no tare or load), reels (plastic, plywood and cardboard reels), maker (one maker's own sizes), other (Brazil NBR 11137, Chinese steel drums) or all. Default all."
    • changedInput schema / properties / system / enum
      Previous value: -[
      -  "KTG",
      -  "nordic-k",
      -  "din",
      -  "spanish",
      -  "EU",
      -  "NEMA",
      -  "NA",
      -  "TR",
      -  "reels",
      -  "maker",
      -  "other",
      -  "all"
      -]New value: +[
      +  "KTG",
      +  "nordic-k",
      +  "din",
      +  "spanish",
      +  "EU",
      +  "NEMA",
      +  "NA",
      +  "TR",
      +  "IS",
      +  "reels",
      +  "maker",
      +  "other",
      +  "all"
      +]
  8. Changed1 schema field changed
    • addedInput schema / properties / free_height
      Added value: +{
      +  "description": "With D, d and W: a part-used drum, the height measured from the flange rim down to the top of the cable, mm. Gives the length left on it as a range (the top layer may be part wound).",
      +  "type": "number"
      +}
  9. Changed3 schema fields changed
    • addedInput schema / properties / pool
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": 0,
      +      "type": "number"
      +    },
      +    {
      +      "const": 1,
      +      "type": "number"
      +    },
      +    {
      +      "type": "boolean"
      +    }
      +  ],
      +  "description": "With length: 1 answers with pooled drum sizes (pools[], one row per nominal size and material, its makers' drums inside, each with its own numbers) instead of one row per maker's drum (fits[]). Default 0: the answer is unchanged."
      +}
    • changedInput schema / properties / system / description
      Previous value: -"Drum family: KTG (Europe), NEMA (North America), TR (Turkish makers), maker (one maker's own sizes) or all. Default all."New value: +"Drum system: KTG (the KTG rental pool, Europe), nordic-k (Nordic K series), din (older DIN 46391 series as Eland and Romagna Cavi print it), spanish (Spanish makers), EU (every European drum), NEMA (WC 26 classes), NA (every North American drum), TR (Turkish makers), reels (plastic, plywood and cardboard reels), maker (one maker's own sizes), other (Brazil NBR 11137, Chinese steel drums) or all. Default all."
    • changedInput schema / properties / system / enum
      Previous value: -[
      -  "KTG",
      -  "NEMA",
      -  "TR",
      -  "maker",
      -  "all"
      -]New value: +[
      +  "KTG",
      +  "nordic-k",
      +  "din",
      +  "spanish",
      +  "EU",
      +  "NEMA",
      +  "NA",
      +  "TR",
      +  "reels",
      +  "maker",
      +  "other",
      +  "all"
      +]
  10. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false. The description adds meaningful behavioral context beyond that: it is free and outside daily calls, deterministic, no LLM, includes sources and load checks, and applies NFPA 79 derating when reeling is requested.

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 purpose is front-loaded and most clauses are relevant, but the description is a dense run-on with nested parentheses and multiple sub-modes packed into one paragraph. It would be easier to use if the two modes and optional add-ons were separated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex 20-parameter tool with no output schema, so the description needs to carry more of the return-value burden. It hints at layers, sources, barrel/load checks, handling blocks, and derating, but does not clearly explain what the response contains or how to interpret the checks.

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 coverage is 100%, so the input schema already documents all 20 parameters. The description adds the conceptual split between length-driven and drum-capacity-driven calls, but it does not explain most individual parameters beyond what the schema already provides.

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 clearly states a specific verb/resource: finding which cable drum a length needs, or what a given drum takes. It names standards and checks, but the phrasing is dense and the two operating modes are embedded in a run-on sentence.

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 by the two input modes (length plus od versus od, D, d, W), and the description notes a guide URL. However, it does not explicitly say when to use drum_fit instead of drum_loading or other siblings, nor does it state exclusions.

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