← All tool references

Math · not_available

Endpoint Calculator

Find a missing endpoint from one endpoint and the midpoint.

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/endpoint-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/endpoint-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.

x1 · number · required
Enter known endpoint x.
y1 · number · required
Enter known endpoint y.
mid_x · number · required
Enter midpoint x.
mid_y · number · required
Enter midpoint y.
{
    "type": "object",
    "properties": {
        "x1": {
            "type": "number",
            "description": "Enter known endpoint x."
        },
        "y1": {
            "type": "number",
            "description": "Enter known endpoint y."
        },
        "mid_x": {
            "type": "number",
            "description": "Enter midpoint x."
        },
        "mid_y": {
            "type": "number",
            "description": "Enter midpoint y."
        }
    },
    "required": [
        "x1",
        "y1",
        "mid_x",
        "mid_y"
    ],
    "additionalProperties": false
}

Output schema

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

endpoint · string
Missing endpoint produced by the tool.
x2 · number
Missing x produced by the tool.
y2 · number
Missing y produced by the tool.
{
    "type": "object",
    "properties": {
        "endpoint": {
            "type": "string",
            "description": "Missing endpoint produced by the tool."
        },
        "x2": {
            "type": "number",
            "description": "Missing x produced by the tool."
        },
        "y2": {
            "type": "number",
            "description": "Missing y produced by the tool."
        }
    },
    "additionalProperties": false
}

Endpoint Calculator worked 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/endpoint-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "x1": -3,
    "y1": 4,
    "mid_x": 2,
    "mid_y": 1
}'
{
    "ok": true,
    "data": {
        "slug": "endpoint-calculator",
        "result": {
            "values": {
                "endpoint": "(7, -2)",
                "x2": 7,
                "y2": -2
            },
            "display": {
                "display": "(7, -2)"
            },
            "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.