Skip to main content
Glama

The Cable Code

Cable end preparation

cable_prep
Read-only

End preparation of an LV, MV or HV cable for a termination or joint: cut steps with the design's depths, makers' cut-back lengths (typical), lug, accessory kinds, outdoor creepage (IEC TS 60815-3), glands and cleats. $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/cable_prep.

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

Input Schema

NameRequiredDescriptionDefault
pdfNoFull mode: add the calculation sheet as pdf_base64.
fullNotrue: the whole answer (paid).
langNoAnswer language; default en.
specNoOr a design_cable spec.
inputNoinput: {pollution?: a to e, fittings?: {formation, spacingMm, currentA, ...}, ...}
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. Changed7 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 / 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: {pollution?: a | b | c | d | e (the site pollution severity class of IEC TS 60815-1:2025 for the outdoor termination's minimum creepage; absent: every class, none picked; f, extremely heavy, has no reference value and is refused), edge?: true (the class read at its upper edge on the IEC TS 60815-1 curve), htm_lower?: true (an HTM insulator: one class lower), fittings?: {formation: trefoil | flat, spacingMm, currentA, lengthM (single-point bonded section), limitV, ikKa, rx, ipKa, leadM, cleatM, freq: 50 | 60, connectorA} (every field optional)} (the design decides the rest, and the kit's own instruction wins over the makers' lengths)"New value: +"input: {pollution?: a to e, fittings?: {formation, spacingMm, currentA, ...}, ...}"
    • 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. Changed1 schema field changed
    • changedInput schema / properties / input / description
      Previous value: -"input: {pollution?: a | b | c | d | e (the site pollution severity class of IEC TS 60815-1 for the outdoor termination's minimum creepage; absent: every class, none picked), edge?: true (the class read at its upper edge on the IEC TS 60815-1 curve), htm_lower?: true (an HTM insulator: one class lower), fittings?: {formation: trefoil | flat, spacingMm, currentA, lengthM (single-point bonded section), limitV, ikKa, rx, ipKa, leadM, cleatM, freq: 50 | 60, connectorA} (every field optional)} (the design decides the rest, and the kit's own instruction wins over the makers' lengths)"New value: +"input: {pollution?: a | b | c | d | e (the site pollution severity class of IEC TS 60815-1:2025 for the outdoor termination's minimum creepage; absent: every class, none picked; f, extremely heavy, has no reference value and is refused), edge?: true (the class read at its upper edge on the IEC TS 60815-1 curve), htm_lower?: true (an HTM insulator: one class lower), fittings?: {formation: trefoil | flat, spacingMm, currentA, lengthM (single-point bonded section), limitV, ikKa, rx, ipKa, leadM, cleatM, freq: 50 | 60, connectorA} (every field optional)} (the design decides the rest, and the kit's own instruction wins over the makers' lengths)"
  3. Changed1 schema field changed
    • changedInput schema / properties / input / description
      Previous value: -"input: {pollution?: a | b | c | d | e} (the site pollution severity class of IEC TS 60815-1 for the outdoor termination's minimum creepage; absent: every class, none picked; the design decides the rest, and the kit's own instruction wins over the makers' lengths)"New value: +"input: {pollution?: a | b | c | d | e (the site pollution severity class of IEC TS 60815-1 for the outdoor termination's minimum creepage; absent: every class, none picked), edge?: true (the class read at its upper edge on the IEC TS 60815-1 curve), htm_lower?: true (an HTM insulator: one class lower), fittings?: {formation: trefoil | flat, spacingMm, currentA, lengthM (single-point bonded section), limitV, ikKa, rx, ipKa, leadM, cleatM, freq: 50 | 60, connectorA} (every field optional)} (the design decides the rest, and the kit's own instruction wins over the makers' lengths)"
  4. Changed1 schema field changed
    • changedInput schema / properties / input / description
      Previous value: -"input: none (the design decides; the kit's own instruction wins over the makers' lengths)"New value: +"input: {pollution?: a | b | c | d | e} (the site pollution severity class of IEC TS 60815-1 for the outdoor termination's minimum creepage; absent: every class, none picked; the design decides the rest, and the kit's own instruction wins over the makers' lengths)"
  5. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false, so the cost/limit context is where the description earns credit: $0.50 USDC per calculation via x402, a free verdict-only tier, and a 2-calls-per-caller-per-UTC-day quota. That is material behavior an agent must know before invoking. It stops short of describing the response shape (what 'verdict' contains) or failure/payment modes.

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 purpose and deliverable list are front-loaded, followed by pricing, free-tier condition, and a guide pointer — a logical order. It is dense but every clause carries information; only the long enumerations of fitting types border on list-dumping.

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

Completeness5/5

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

For an 8-parameter, nested-object computation tool with no output schema, the description covers what is computed, the paid/free boundary, the rate limit, and a reference to thecablecode://guide/cable_prep. The main residual gap is the exact shape of the returned verdict, but the paid/full distinction and guide link give an agent enough to call it correctly.

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 schema already documents full/pdf/lang/spec/input/items/design/sentence. The description adds only a little beyond that: 'the verdict alone (no full)' clarifies the paid-vs-free semantics of the `full` flag, and 'design_cable spec/design' reinforces the schema's hints. The remaining parameters (lang, pdf, input subfields) get no additional meaning from the description.

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 a specific operation (end preparation of a cable for termination or joint) and scopes it to LV/MV/HV, then enumerates the concrete deliverables: cut steps with design depths, cut-back lengths, lugs, accessory kinds, creepage, glands and cleats. This is clearly distinguishable from siblings like design_cable, check_cable or pull_cable, and it ties itself to the design workflow by referencing 'the design's depths.'

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 context is implied rather than stated: the tool consumes a design, and the schema allows a sentence, a design_cable spec, or a list, but the description never says 'run design_cable first' or when to use design_cable instead. The free-verdict condition ('within the designs' 2 calls per caller per UTC day') is genuinely useful usage guidance, but no alternatives or exclusions are named.

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