Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_frustum_pyramid

Calculate volume, face slant height, lateral trapezoid area, and total surface area of a truncated square pyramid using top and bottom side lengths and height.

Instructions

Frustum of a Pyramid (Truncated Pyramid) Calculator. Calculate volume, slant height, and surface area of a truncated square pyramid from top base a₁, bottom base a₂, and height. Discipline: GEOMETRY. Governing mathematical model / formula: Volume = ⅓ · h · (A₁ + A₂ + √(A₁ · A₂)).

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of pyramid_frustum_vol (Frustum Volume), face_slant_height (Lateral Face Slant Height (s)), trapezoid_faces_area (4 Lateral Trapezoid Faces), total_surface_area (Total Surface Area) using bottom_side (Bottom Square Side (a₁) in units), top_side (Top Square Side (a₂) in units), frustum_height (Frustum Height (h) 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 'Frustum of a Pyramid (Truncated Pyramid) 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): "frustum-pyramid"

    • category (string): "geometry"

    • name (string): "Frustum of a Pyramid (Truncated Pyramid) Calculator"

    • formula (string): Governing mathematical formula string

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

    • metrics (object): Dictionary of computed outputs:

      • metrics.pyramid_frustum_vol (Frustum Volume): Formatted display string (e.g. '756.0000 units³')

      • metrics.face_slant_height (Lateral Face Slant Height (s)): Formatted display string (e.g. '9.4868 units')

      • metrics.trapezoid_faces_area (4 Lateral Trapezoid Faces): Formatted display string (e.g. '341.5260 units²')

      • metrics.total_surface_area (Total Surface Area): Formatted display string (e.g. '521.5260 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_frustum_pyramid"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_sideNoTop Square Side (a₂) (units). Side length of upper base. Default: 6. Min: 0.1. Max: 1000.
bottom_sideNoBottom Square Side (a₁) (units). Side length of lower base. Default: 12. Min: 0.5. Max: 1000.
frustum_heightNoFrustum Height (h) (units). Vertical distance between bases. Default: 9. Min: 0.5. Max: 1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools