← All tool references

Math · not_available

Circle Calculator

Calculate a circle’s radius, diameter, circumference, and area from one measurement.

Open public tool

Overview

Category
Math
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/circle-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/circle-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

known_measurement · string · required
Enter the known measurement used by this tool. Accepted values: radius, diameter, circumference, area.
value · number · required
Enter the known value used by this tool.
{
    "type": "object",
    "properties": {
        "known_measurement": {
            "type": "string",
            "description": "Enter the known measurement used by this tool.",
            "enum": [
                "radius",
                "diameter",
                "circumference",
                "area"
            ]
        },
        "value": {
            "type": "number",
            "description": "Enter the known value used by this tool.",
            "minimum": 0
        }
    },
    "required": [
        "known_measurement",
        "value"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

radius · number
Radius produced by the tool.
diameter · number
Diameter produced by the tool.
circumference · number
Circumference produced by the tool.
area · number
Area produced by the tool.
formula_summary · string
Formula summary produced by the tool.
{
    "type": "object",
    "properties": {
        "radius": {
            "type": "number",
            "description": "Radius produced by the tool."
        },
        "diameter": {
            "type": "number",
            "description": "Diameter produced by the tool."
        },
        "circumference": {
            "type": "number",
            "description": "Circumference produced by the tool."
        },
        "area": {
            "type": "number",
            "description": "Area produced by the tool."
        },
        "formula_summary": {
            "type": "string",
            "description": "Formula summary produced by the tool."
        }
    },
    "additionalProperties": false
}

Circle Calculator example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/circle-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "known_measurement": "radius",
    "value": 8
}'
{
    "ok": true,
    "data": {
        "slug": "circle-calculator",
        "result": {
            "values": {
                "radius": 8,
                "diameter": 16,
                "circumference": 50.265482457399997429092763923108577728271484375,
                "area": 201.061929829700005711856647394597530364990234375,
                "formula_summary": "d = 2r; C = 2πr; A = πr²"
            },
            "display": {
                "display": "8"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.