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/pythagorean-theorem-calculator
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/pythagorean-theorem-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.
solve_for· string · required-
Enter solve for for this calculation. Accepted values:
hypotenuse, leg. side_a· number · required- Enter side a for this calculation.
side_b_or_hypotenuse· number · required- Enter side b or hypotenuse for this calculation.
{
"type": "object",
"properties": {
"solve_for": {
"type": "string",
"description": "Enter solve for for this calculation.",
"enum": [
"hypotenuse",
"leg"
]
},
"side_a": {
"type": "number",
"description": "Enter side a for this calculation.",
"minimum": 0
},
"side_b_or_hypotenuse": {
"type": "number",
"description": "Enter side b or hypotenuse for this calculation.",
"minimum": 0
}
},
"required": [
"solve_for",
"side_a",
"side_b_or_hypotenuse"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
solved_side· number- Solved side calculated by the tool.
equation· string- Equation calculated by the tool.
triangle_area· number- Triangle area calculated by the tool.
{
"type": "object",
"properties": {
"solved_side": {
"type": "number",
"description": "Solved side calculated by the tool."
},
"equation": {
"type": "string",
"description": "Equation calculated by the tool."
},
"triangle_area": {
"type": "number",
"description": "Triangle area calculated by the tool."
}
},
"additionalProperties": false
}
Pythagorean Theorem 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/pythagorean-theorem-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"solve_for": "hypotenuse",
"side_a": 3,
"side_b_or_hypotenuse": 4
}'
{
"ok": true,
"data": {
"slug": "pythagorean-theorem-calculator",
"result": {
"values": {
"solved_side": 5,
"equation": "c = √(a² + b²)",
"triangle_area": 6
},
"display": {
"display": "5"
},
"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.