Skip to main content
Glama

sodural-electrical-mcp

Electrotechnical SI Unit Converter & Auto-Scaler

brain_convert_electrotech_units
Read-onlyIdempotent

Convert and auto-scale electrotechnical SI magnitudes across apparent power (VA/kVA/MVA), active power (W/kW/MW), reactive power (var/kvar/Mvar), current (A/kA), voltage (V/kV), and impedance (mOhm/Ohm). When to use: Use for exact dimensional unit conversion, SI prefix auto-scaling, and locale-formatted output strings. Do not use for: Computing electrical power, voltage drop, or fault currents from circuit models -- call brain_calc_lv_feeder_physics or brain_calc_hv_substation_grid_compliance instead. Behavior: Runs a stateless, deterministic linear SI scaling pass with zero side effects; invalid argument payloads raise JSON-RPC -32602, while omitted arguments default to mode="convert", value=1000, fromUnit="kVA", toUnit="MVA", decimals=4, and lang="fr". Returns: mode, inputValue, fromUnit, value, roundedValue, unit, formatted, and legalNotice.

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

Input Schema

NameRequiredDescriptionDefault
langNoResponse localization language code ("fr" for French or "en" for English, defaults to "fr").fr
modeNoOperation mode: convert units, auto-scale SI prefix, format string, or list unit families.convert
valueNoNumeric magnitude in source unit to convert or auto-scale (defaults to 1000).
toUnitNoTarget SI unit token within same physical dimension, or "auto" (defaults to "MVA").MVA
decimalsNoDecimal rounding precision between 0 and 12 digits (defaults to 4).
fromUnitNoSource SI or engineering unit token (e.g. "VA", "kVA", "MVA", "A", "kV", "mOhm", defaults to "kVA").kVA

Output Schema

NameRequiredDescriptionDefault
modeNoExecuted unit conversion or auto-scaling mode.
unitNoResolved output physical unit label.
valueNoExact converted numerical value in target unit.
fromUnitNoNormalized source physical unit label.
formattedNoLocale-formatted quantity with target unit suffix.
inputValueNoNormalized numeric input value prior to SI scaling.
legalNoticeNoInformational engineering compliance notice confirming SI physical scope and intellectual property rules.
roundedValueNoConverted value rounded to the requested decimal count.
numericFormattedNoLocale-formatted numeric string without unit suffix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / fromUnit / description
      Previous value: -"Source SI or engineering unit token (e.g. \"VA\", \"kVA\", \"MVA\", \"kW\", \"A\", \"kV\", \"mOhm\", defaults to \"kVA\")."New value: +"Source SI or engineering unit token (e.g. \"VA\", \"kVA\", \"MVA\", \"A\", \"kV\", \"mOhm\", defaults to \"kVA\")."
    • changedInput schema / properties / mode / description
      Previous value: -"Operation mode: convert units, auto-scale magnitude, format string, or list supported unit pairs."New value: +"Operation mode: convert units, auto-scale SI prefix, format string, or list unit families."
    • changedInput schema / properties / toUnit / description
      Previous value: -"Target SI unit token within the same physical dimension (defaults to \"MVA\")."New value: +"Target SI unit token within same physical dimension, or \"auto\" (defaults to \"MVA\")."
    • changedOutput schema / properties / formatted / description
      Previous value: -"Locale-formatted quantity with unit suffix."New value: +"Locale-formatted quantity with target unit suffix."
    • changedOutput schema / properties / fromUnit / description
      Previous value: -"Normalized source unit label."New value: +"Normalized source physical unit label."
    • changedOutput schema / properties / inputValue / description
      Previous value: -"Normalized numeric input value prior to scaling."New value: +"Normalized numeric input value prior to SI scaling."
    • changedOutput schema / properties / mode / description
      Previous value: -"Executed conversion mode."New value: +"Executed unit conversion or auto-scaling mode."
    • changedOutput schema / properties / unit / description
      Previous value: -"Resolved output unit label."New value: +"Resolved output physical unit label."
  2. Changed16 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • addedInput schema / properties / decimals / default
      Added value: +4
    • addedInput schema / properties / decimals / description
      Added value: +"Decimal rounding precision between 0 and 12 digits (defaults to 4)."
    • addedInput schema / properties / decimals / maximum
      Added value: +12
    • addedInput schema / properties / decimals / minimum
      Added value: +0
    • addedInput schema / properties / fromUnit / default
      Added value: +"kVA"
    • addedInput schema / properties / fromUnit / description
      Added value: +"Source SI or engineering unit token (e.g. \"VA\", \"kVA\", \"MVA\", \"kW\", \"A\", \"kV\", \"mOhm\", defaults to \"kVA\")."
    • addedInput schema / properties / lang / default
      Added value: +"fr"
    • addedInput schema / properties / lang / description
      Added value: +"Response localization language code (\"fr\" for French or \"en\" for English, defaults to \"fr\")."
    • addedInput schema / properties / mode / default
      Added value: +"convert"
    • addedInput schema / properties / mode / description
      Added value: +"Operation mode: convert units, auto-scale magnitude, format string, or list supported unit pairs."
    • addedInput schema / properties / toUnit / default
      Added value: +"MVA"
    • addedInput schema / properties / toUnit / description
      Added value: +"Target SI unit token within the same physical dimension (defaults to \"MVA\")."
    • addedInput schema / properties / value / default
      Added value: +1000
    • addedInput schema / properties / value / description
      Added value: +"Numeric magnitude in source unit to convert or auto-scale (defaults to 1000)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Unit conversion output containing exact numeric scaling and formatted display strings.",
      +  "properties": {
      +    "formatted": {
      +      "description": "Locale-formatted quantity with unit suffix.",
      +      "type": "string"
      +    },
      +    "fromUnit": {
      +      "description": "Normalized source unit label.",
      +      "type": "string"
      +    },
      +    "inputValue": {
      +      "description": "Normalized numeric input value prior to scaling.",
      +      "type": "number"
      +    },
      +    "legalNotice": {
      +      "description": "Informational engineering compliance notice confirming SI physical scope and intellectual property rules.",
      +      "type": "string"
      +    },
      +    "mode": {
      +      "description": "Executed conversion mode.",
      +      "type": "string"
      +    },
      +    "numericFormatted": {
      +      "description": "Locale-formatted numeric string without unit suffix.",
      +      "type": "string"
      +    },
      +    "roundedValue": {
      +      "description": "Converted value rounded to the requested decimal count.",
      +      "type": "number"
      +    },
      +    "unit": {
      +      "description": "Resolved output unit label.",
      +      "type": "string"
      +    },
      +    "value": {
      +      "description": "Exact converted numerical value in target unit.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the safety profile is largely pre-supplied. The description still adds real value beyond them: stateless deterministic scaling, zero side effects, JSON-RPC -32602 on invalid payloads, and the full default set for omitted arguments. It loses a point only because the 'Returns' list duplicates the existing output schema.

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?

Clearly front-loaded with labeled sections ('When to use', 'Do not use for', 'Behavior', 'Returns') and the most decision-relevant content comes first. However, the enumerated defaults and the return-field list are padding that repeats structured fields the agent already has, costing some tightness.

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?

With an output schema present and annotations declaring the safety profile, the description needn't explain return values in depth, yet it still covers mode behaviors, error semantics and defaults. Nothing essential for correct invocation is missing for a stateless converter.

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 explains every parameter including enums, defaults and the 0-12 decimals bound. The description's restatement of default values adds little semantic meaning beyond that; it does not explain unit-token syntax or cross-dimension mismatch handling, which would be genuine added value.

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?

States specific verbs ('convert and auto-scale') plus the exact resource dimensions covered (VA/kVA/MVA, W/kW/MW, var/kvar/Mvar, A/kA, V/kV, mOhm/Ohm). It also names the sibling tools it is NOT (brain_calc_lv_feeder_physics, brain_calc_hv_substation_grid_compliance), so an agent can separate pure unit scaling from circuit-model computation without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'When to use' (exact dimensional conversion, SI prefix auto-scaling, locale-formatted strings) and 'Do not use for' with two named alternative tools. The boundary between this tool and the physics calculators is stated outright rather than implied.

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