← All tool references

Lifestyle · not_available

Clothing Size Converter

Calculate converted size from garment, from system, entered size, to system.

Open public tool

Overview

Category
Lifestyle
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/clothing-size-converter

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/clothing-size-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.

garment · string · required
Enter garment. Accepted values: tops, bottoms.
from_system · string · required
Enter from system. Accepted values: US, UK, EU, international.
size · string · required
Enter entered size.
to_system · string · required
Enter to system. Accepted values: US, UK, EU, international.
{
    "type": "object",
    "properties": {
        "garment": {
            "type": "string",
            "description": "Enter garment.",
            "enum": [
                "tops",
                "bottoms"
            ]
        },
        "from_system": {
            "type": "string",
            "description": "Enter from system.",
            "enum": [
                "US",
                "UK",
                "EU",
                "international"
            ]
        },
        "size": {
            "type": "string",
            "description": "Enter entered size."
        },
        "to_system": {
            "type": "string",
            "description": "Enter to system.",
            "enum": [
                "US",
                "UK",
                "EU",
                "international"
            ]
        }
    },
    "required": [
        "garment",
        "from_system",
        "size",
        "to_system"
    ],
    "additionalProperties": false
}

Output schema

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

converted_size · string
Converted size produced by the tool.
nearby_sizes · array
Nearby sizes produced by the tool.
fit_note · string
Fit note produced by the tool.
{
    "type": "object",
    "properties": {
        "converted_size": {
            "type": "string",
            "description": "Converted size produced by the tool."
        },
        "nearby_sizes": {
            "type": "array",
            "description": "Nearby sizes produced by the tool."
        },
        "fit_note": {
            "type": "string",
            "description": "Fit note produced by the tool."
        }
    },
    "additionalProperties": false
}

Clothing Size 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/clothing-size-converter/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "garment": "tops",
    "from_system": "US",
    "size": "8",
    "to_system": "EU"
}'
{
    "ok": true,
    "data": {
        "slug": "clothing-size-converter",
        "result": {
            "values": {
                "converted_size": "38",
                "nearby_sizes": [
                    {
                        "fit": "Smaller",
                        "size": 36
                    },
                    {
                        "fit": "Closest",
                        "size": 38
                    },
                    {
                        "fit": "Larger",
                        "size": 40
                    }
                ],
                "fit_note": "Approximate tops conversion; verify the brand measurement chart."
            },
            "display": {
                "display": "38"
            },
            "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.