Skip to main content
Glama
Drefetr

CableSizeCalculatorMCP

by Drefetr

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CABLESIZE_DATA_FILENoPath to a local JSON file containing a custom cable dataset. If omitted, the bundled dataset is used.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
size_cableA

Select the smallest candidate passing all requested experimental model checks.

load/unit describe the design load; length_m is the positive one-way route length.
voltage is line-to-line for 3phase and phase-to-neutral for 1phase. DC is unsupported.
ambient_temp_c is air temperature above ground and soil temperature underground;
None uses the configured dataset's reference temperature. num_circuits and depth_m
must fall within the configured data. The model uses V90 at 75 C or X90 at 90 C.

mcb_rating_amps enables the approximate AC loop check; supply_loop_impedance_ohm
is the non-negative external source-loop magnitude (default zero is an assumption).
Supplying a nonzero source-loop magnitude requires mcb_rating_amps.
Check the actual protective device and measured supply impedance independently.
check_fault enables active AND earth adiabatic checking using fault_current_ka and
fault_time_s. The earth conditions default to those active conditions; override them
with earth_fault_current_ka and/or earth_fault_time_s for the actual earth fault.
Earth fault overrides require check_fault=True.
Omitted fault checks are reported as not requested. The earth material is independent
of the active material. An experimental selection is not an installation approval.
cable_construction="flat_2c_earth" selects a dedicated two-loaded-conductor profile
and requires phase="1phase". For in_thermal_insulation, explicitly choose
partially_surrounded or completely_surrounded; unenclosed_in_air uses none.
Unsupported construction/condition combinations are rejected without generic fallback.
The generic default preserves the existing dataset column and does not identify a
physical cable construction or insulation exposure.
calculate_voltage_dropA

Calculate experimental AC voltage drop using the configured resistance/reactance data.

length_m is the one-way route length, size_mm2 must exist in the configured dataset,
and voltage is line-to-line for 3phase or phase-to-neutral for 1phase. worst_case_pf
uses the impedance magnitude instead of the specified power factor. Threshold flags
apply only to this voltage-drop model and do not establish standards compliance.
calculate_deratingB

Calculate model temperature, grouping and depth factors from the configured data.

ambient_temp_c denotes soil temperature for underground installations and air
temperature otherwise. None uses the dataset's reference value. Unsupported
ranges are rejected; factors between rows use conservative lookup. Installation
labels do not describe every cable construction, grouping layout or soil condition.
check_loop_impedanceA

Estimate an AC earth-fault loop length limit using resistance plus reactance.

nominal_phase_voltage is phase-to-earth voltage. The external source-loop magnitude
defaults to zero and must be supplied for a realistic check. length_m enables the
route-length pass/fail comparison; without it no route check is performed. Material
is specified separately for active and earth conductors. Generic B/C/D trip
multipliers do not verify a specific device's clearing time or guarantee disconnection.
check_short_circuitA

Check experimental adiabatic thermal withstand: I^2t <= k^2S^2.

Supply the applicable fault current in kA and actual protective-device clearing
time in seconds (0 < time <= 5). The default 0.1 s is an assumption, not a device
rating. k comes from configured data and assumes the model's initial/final conductor
temperatures. This check alone does not approve an active or earth conductor.
get_standards_infoB

Return model scope and provenance status, without reproducing reference tables.

generate_calculation_reportB

Generate an ASCII report of inputs, assumptions and requested experimental checks.

Parameters and assumptions match size_cable. The report identifies optional checks
as passed, failed or not requested; it does not certify standards compliance.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct calculation (sizing, voltage drop, derating, thermal withstand, loop impedance, report, standards provenance), but size_cable explicitly duplicates the behaviour of the individual check tools, so an agent may be unsure whether to call size_cable or the granular checks. The descriptions do clarify that the individual checks are for standalone use, keeping the overlap manageable.

Naming Consistency5/5

All seven names follow a clean snake_case verb_noun pattern (check_short_circuit, get_standards_info, size_cable, calculate_voltage_drop, calculate_derating, check_loop_impedance, generate_calculation_report). The verb set is varied but idiomatic and predictable.

Tool Count5/5

Seven tools is well-scoped for a cable sizing/verification domain, with each tool earning its place as a distinct engineering check or report generator. No filler or redundant tooling exists beyond the intentional granular/aggregate split.

Completeness4/5

The surface covers the full sizing workflow: derating inputs, voltage drop, adiabatic fault checks, loop impedance, selection, standards provenance and reporting. Minor gaps remain, such as listing/inspecting the configured cable dataset or exporting results beyond an ASCII report, but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo issues