Overview
- Category
- Travel & Auto
- 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/baggage-weight-converter
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/baggage-weight-converter/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.
weight· number · required- Enter bag weight.
from_unit· string · required-
Enter from unit. Accepted values:
kilograms, pounds. to_unit· string · required-
Enter to unit. Accepted values:
kilograms, pounds. limit· number · required- Enter entered carrier limit.
{
"type": "object",
"properties": {
"weight": {
"type": "number",
"description": "Enter bag weight."
},
"from_unit": {
"type": "string",
"description": "Enter from unit.",
"enum": [
"kilograms",
"pounds"
]
},
"to_unit": {
"type": "string",
"description": "Enter to unit.",
"enum": [
"kilograms",
"pounds"
]
},
"limit": {
"type": "number",
"description": "Enter entered carrier limit."
}
},
"required": [
"weight",
"from_unit",
"to_unit",
"limit"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
converted_weight· number- Converted weight produced by the tool.
limit_status· string- Limit status produced by the tool.
difference_from_limit· number- Difference from entered limit produced by the tool.
{
"type": "object",
"properties": {
"converted_weight": {
"type": "number",
"description": "Converted weight produced by the tool."
},
"limit_status": {
"type": "string",
"description": "Limit status produced by the tool."
},
"difference_from_limit": {
"type": "number",
"description": "Difference from entered limit produced by the tool."
}
},
"additionalProperties": false
}
Baggage Weight Converter 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/baggage-weight-converter/execute" \
-H "Content-Type: application/json" \
-d '{
"weight": 23,
"from_unit": "kilograms",
"to_unit": "pounds",
"limit": 50
}'
{
"ok": true,
"data": {
"slug": "baggage-weight-converter",
"result": {
"values": {
"converted_weight": 50.71000000000000085265128291212022304534912109375,
"limit_status": "Over entered limit",
"difference_from_limit": -0.70999999999999996447286321199499070644378662109375
},
"display": {
"display": "50.71"
},
"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.