Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_ellipse

Calculate ellipse area, Ramanujan perimeter, focal distance, and eccentricity from semi-major and semi-minor axes, eliminating arithmetic and formula mistakes.

Instructions

Ellipse Area, Perimeter & Eccentricity Calculator. Calculate exact ellipse area, Ramanujan high-precision perimeter approximation, semi-axes, focal distance, and orbital eccentricity. Discipline: GEOMETRY. Governing mathematical model / formula: Area = π · a · b | Perimeter ≈ π(a + b)[1 + 3h / (10 + √(4 - 3h))], where h = (a - b)² / (a + b)².

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of ellipse_area (Exact Ellipse Area), ramanujan_perimeter (Perimeter (Ramanujan II)), linear_eccentricity (Focal Distance (c = √(a² - b²))), first_eccentricity (Orbital Eccentricity (e = c/a)) using semi_major (Semi-Major Axis (a) in units), semi_minor (Semi-Minor Axis (b) in units). 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 'Ellipse Area, Perimeter & Eccentricity 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): "ellipse"

    • category (string): "geometry"

    • name (string): "Ellipse Area, Perimeter & Eccentricity Calculator"

    • formula (string): Governing mathematical formula string

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

    • metrics (object): Dictionary of computed outputs:

      • metrics.ellipse_area (Exact Ellipse Area): Formatted display string (e.g. '188.4956 units²')

      • metrics.ramanujan_perimeter (Perimeter (Ramanujan II)): Formatted display string (e.g. '51.0540 units')

      • metrics.linear_eccentricity (Focal Distance (c = √(a² - b²))): Formatted display string (e.g. '8.0000 units')

      • metrics.first_eccentricity (Orbital Eccentricity (e = c/a)): Formatted display string (e.g. '0.8000 (Elliptic)')

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

Input Schema

NameRequiredDescriptionDefault
semi_majorNoSemi-Major Axis (a) (units). Half the longest diameter. Default: 10. Min: 0.1. Max: 1000.
semi_minorNoSemi-Minor Axis (b) (units). Half the shortest diameter (b ≤ a). Default: 6. Min: 0.1. Max: 1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools