Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_ohms_law

Calculates voltage, current, resistance, and electrical power using Ohm's Law and PIVR inversions, preventing LLM arithmetic errors in deterministic circuit computations.

Instructions

Ohm's Law & Electrical Power (PIVR) Calculator. Calculate Voltage (V), Current (I), Resistance (R), and Electrical Power (P) with bidirectional four-quadrant PIVR inversions. Discipline: PHYSICS. Governing mathematical model / formula: V = I · R | Power P = V · I = I² · R = V² / R.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of current_amps (Current Draw (I)), power_watts (Power Dissipated (P)), power_hp (Mechanical Horsepower), conductance_siemens (Electrical Conductance (G = 1/R)) using voltage_v (Voltage (V) in volts), resistance_r (Resistance (R) in ohms (Ω)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Ohm's Law & Electrical Power (PIVR) Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "ohms-law"

    • category (string): "physics"

    • name (string): "Ohm's Law & Electrical Power (PIVR) Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.current_amps (Current Draw (I)): Formatted display string (e.g. '8.000 Amperes')

      • metrics.power_watts (Power Dissipated (P)): Formatted display string (e.g. '960.00 Watts')

      • metrics.power_hp (Mechanical Horsepower): Formatted display string (e.g. '1.29 HP (746 W/HP)')

      • metrics.conductance_siemens (Electrical Conductance (G = 1/R)): Formatted display string (e.g. '0.0667 Siemens')

    • execution_time_ms (number): Latency in milliseconds.

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

Input Schema

NameRequiredDescriptionDefault
voltage_vNoVoltage (V) (volts). Electrical potential difference. Default: 120. Min: 0.1. Max: 100000.
resistance_rNoResistance (R) (ohms (Ω)). Circuit electrical resistance. Default: 15. Min: 0.01. Max: 1000000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools