Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_octagon

Calculate regular octagon area, perimeter, span, and inradius from side length using exact formulas, reducing arithmetic errors in geometry workflows.

Instructions

Regular Octagon 8-Variable Bidirectional Solver. Exact 8-variable regular octagon solver with radical closed-form geometry, Cartesian blueprints, and step-by-step proofs. Discipline: GEOMETRY. Governing mathematical model / formula: Area = 2 · (1 + √2) · a² | Span = a · (1 + √2) | Short Diagonal = a · √(2 + √2).

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of area (Enclosed Area), perimeter (Perimeter), span (Span (Width Across Flats)), inradius (Apothem (Inradius)) using side (Side Length (a) 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 'Regular Octagon 8-Variable Bidirectional Solver' 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): "octagon"

    • category (string): "geometry"

    • name (string): "Regular Octagon 8-Variable Bidirectional Solver"

    • formula (string): Governing mathematical formula string

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

    • metrics (object): Dictionary of computed outputs:

      • metrics.area (Enclosed Area): Formatted display string (e.g. '482.8427 sq units')

      • metrics.perimeter (Perimeter): Formatted display string (e.g. '80.0000 units')

      • metrics.span (Span (Width Across Flats)): Formatted display string (e.g. '24.1421 units')

      • metrics.inradius (Apothem (Inradius)): Formatted display string (e.g. '12.0711 units')

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

Input Schema

NameRequiredDescriptionDefault
sideNoSide Length (a) (units). Length of an outer regular edge. Default: 10. Min: 0.001. Max: 100000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools