{
  "slug": "geometry-calculator",
  "name": "gizza-ai/geometry-calculator",
  "version": "0.1.0",
  "title": "Geometry Calculator — Area, Perimeter, Surface Area & Volume — gizza.ai",
  "description": "Geometry calculator for area, perimeter, surface area and volume — squares, triangles, circles, spheres, cylinders, cones and more. Free, private, in-browser.",
  "tags": [
    "geometry calculator",
    "area calculator",
    "perimeter calculator",
    "volume calculator",
    "surface area calculator",
    "circle area",
    "cylinder volume",
    "sphere volume",
    "triangle area"
  ],
  "category": "math",
  "urls": {
    "page": "https://gizza.ai/tools/geometry-calculator/",
    "markdown": "https://gizza.ai/tools/geometry-calculator/index.md",
    "descriptor": "https://gizza.ai/tools/geometry-calculator/tool.json",
    "deep_link_example": "https://gizza.ai/tools/geometry-calculator/?shape=square&side=5&width=3&height=4&length=2&radius=2&radius_a=4&radius_b=2&base=6&top=4&sides=6&side_a=3&side_b=4&side_c=5"
  },
  "cli": "gizza tool geometry-calculator \"...\"",
  "tool": {
    "description": "Calculate area and perimeter for 2D shapes or surface area and volume for 3D shapes from their dimensions.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "base": {
          "description": "Base length (triangle, trapezoid, parallelogram, pyramid).",
          "type": "number"
        },
        "height": {
          "description": "Height (rectangle, triangle, trapezoid, parallelogram, rectangular_prism, cylinder, cone, pyramid).",
          "type": "number"
        },
        "length": {
          "description": "Length / depth (rectangular_prism).",
          "type": "number"
        },
        "radius": {
          "description": "Radius (circle, sphere, cylinder, cone).",
          "type": "number"
        },
        "radius_a": {
          "description": "Semi-major axis (ellipse).",
          "type": "number"
        },
        "radius_b": {
          "description": "Semi-minor axis (ellipse).",
          "type": "number"
        },
        "shape": {
          "description": "The shape to measure.",
          "enum": [
            "square",
            "rectangle",
            "triangle",
            "circle",
            "ellipse",
            "trapezoid",
            "parallelogram",
            "regular_polygon",
            "cube",
            "rectangular_prism",
            "sphere",
            "cylinder",
            "cone",
            "pyramid"
          ],
          "type": "string"
        },
        "side": {
          "description": "Edge length (square, cube, regular_polygon).",
          "type": "number"
        },
        "side_a": {
          "description": "Side A length (parallelogram slant; optional triangle/trapezoid edge).",
          "type": "number"
        },
        "side_b": {
          "description": "Side B length (optional triangle/trapezoid edge).",
          "type": "number"
        },
        "side_c": {
          "description": "Side C length (optional triangle edge).",
          "type": "number"
        },
        "sides": {
          "description": "Number of sides, >= 3 (regular_polygon).",
          "type": "number"
        },
        "top": {
          "description": "Top / shorter parallel side (trapezoid).",
          "type": "number"
        },
        "width": {
          "description": "Width (rectangle, rectangular_prism).",
          "type": "number"
        }
      },
      "required": [
        "shape"
      ],
      "type": "object"
    }
  }
}