Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_engine_displacement

Calculates engine displacement in cc, liters, and cubic inches from bore, stroke, and cylinder count to eliminate manual formula and arithmetic errors.

Instructions

Engine Displacement & Cylinder Volume Calculator. Calculate total internal combustion engine displacement in Cubic Centimeters (cc), Liters (L), and Cubic Inches (CID) from bore, stroke, and cylinder count. Discipline: PHYSICS. Governing mathematical model / formula: Displacement = π × (Bore / 2)² × Stroke × Cylinders.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of displacement_cc (Engine Displacement (cc)), displacement_liters (Engine Displacement (Liters)), displacement_cid (Cubic Inches (CID)), bore_stroke_ratio (Bore-to-Stroke Ratio Profile) using cylinder_bore_mm (Cylinder Bore Diameter (mm) in mm), piston_stroke_mm (Piston Stroke Length (mm) in mm), number_of_cylinders (Number of Cylinders). 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.

  • SIBLING ROUTING: Use this dedicated specialist tool for 'Engine Displacement & Cylinder Volume Calculator' rather than generic dispatchers like omni_universal_query. For cross-discipline dynamic dispatch, see omni_universal_query.

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): "engine-displacement"

    • category (string): "physics"

    • name (string): "Engine Displacement & Cylinder Volume Calculator"

    • formula (string): Governing mathematical formula string

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

    • metrics (object): Dictionary of computed outputs:

      • metrics.displacement_cc (Engine Displacement (cc)): Formatted display string (e.g. '1,998 cc')

      • metrics.displacement_liters (Engine Displacement (Liters)): Formatted display string (e.g. '2.0 Liters')

      • metrics.displacement_cid (Cubic Inches (CID)): Formatted display string (e.g. '121.9 CID')

      • metrics.bore_stroke_ratio (Bore-to-Stroke Ratio Profile): Formatted display string (e.g. '1.00 (Square Engine)')

    • 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_engine_displacement"
  }
}

Input Schema

NameRequiredDescriptionDefault
cylinder_bore_mmNoCylinder Bore Diameter (mm) (mm). Internal diameter of cylinder bore. Default: 86. Min: 40. Max: 150.
piston_stroke_mmNoPiston Stroke Length (mm) (mm). Crankshaft throw travel distance. Default: 86. Min: 40. Max: 150.
number_of_cylindersNoNumber of Cylinders. e.g. 4 (Inline-4), 6 (V6), 8 (V8). Default: 4. Min: 1. Max: 16.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools