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/dot-product-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/dot-product-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.
vector_a· string · required- Enter vector a.
vector_b· string · required- Enter vector b.
operation· string · required-
Enter operation. Accepted values:
dot.
{
"type": "object",
"properties": {
"vector_a": {
"type": "string",
"description": "Enter vector a."
},
"vector_b": {
"type": "string",
"description": "Enter vector b."
},
"operation": {
"type": "string",
"description": "Enter operation.",
"enum": [
"dot"
]
}
},
"required": [
"vector_a",
"vector_b",
"operation"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
dot_product· number- Dot product produced by the tool.
magnitude_a· number- Magnitude A produced by the tool.
magnitude_b· number- Magnitude B produced by the tool.
angle_degrees· number- Angle produced by the tool.
{
"type": "object",
"properties": {
"dot_product": {
"type": "number",
"description": "Dot product produced by the tool."
},
"magnitude_a": {
"type": "number",
"description": "Magnitude A produced by the tool."
},
"magnitude_b": {
"type": "number",
"description": "Magnitude B produced by the tool."
},
"angle_degrees": {
"type": "number",
"description": "Angle produced by the tool."
}
},
"additionalProperties": false
}
Dot Product 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/dot-product-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"vector_a": "3, 4, 2",
"vector_b": "1, -2, 5",
"operation": "dot"
}'
{
"ok": true,
"data": {
"slug": "dot-product-calculator",
"result": {
"values": {
"dot_product": 5,
"magnitude_a": 5.38516499999999975756281855865381658077239990234375,
"magnitude_b": 5.4772259999999999280362317222170531749725341796875,
"angle_degrees": 80.240328000000005204128683544695377349853515625
},
"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.