Overview
- Category
- Cooking
- 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/cake-pan-conversion-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/cake-pan-conversion-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.
source_shape· string · required-
Enter the source pan shape used by this tool. Accepted values:
round, square, rectangle. source_length_or_diameter· number · required- Enter the source length or diameter used by this tool.
source_width· number · required- Enter the source width used by this tool.
target_shape· string · required-
Enter the target pan shape used by this tool. Accepted values:
round, square, rectangle. target_length_or_diameter· number · required- Enter the target length or diameter used by this tool.
target_width· number · required- Enter the target width used by this tool.
original_servings· number · required- Enter the original recipe servings used by this tool.
{
"type": "object",
"properties": {
"source_shape": {
"type": "string",
"description": "Enter the source pan shape used by this tool.",
"enum": [
"round",
"square",
"rectangle"
]
},
"source_length_or_diameter": {
"type": "number",
"description": "Enter the source length or diameter used by this tool.",
"minimum": 0.1000000000000000055511151231257827021181583404541015625
},
"source_width": {
"type": "number",
"description": "Enter the source width used by this tool.",
"minimum": 0.1000000000000000055511151231257827021181583404541015625
},
"target_shape": {
"type": "string",
"description": "Enter the target pan shape used by this tool.",
"enum": [
"round",
"square",
"rectangle"
]
},
"target_length_or_diameter": {
"type": "number",
"description": "Enter the target length or diameter used by this tool.",
"minimum": 0.1000000000000000055511151231257827021181583404541015625
},
"target_width": {
"type": "number",
"description": "Enter the target width used by this tool.",
"minimum": 0.1000000000000000055511151231257827021181583404541015625
},
"original_servings": {
"type": "number",
"description": "Enter the original recipe servings used by this tool.",
"minimum": 1
}
},
"required": [
"source_shape",
"source_length_or_diameter",
"source_width",
"target_shape",
"target_length_or_diameter",
"target_width",
"original_servings"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
recipe_multiplier· number- Recipe multiplier produced by the tool.
source_area· number- Source pan area produced by the tool.
target_area· number- Target pan area produced by the tool.
scaled_servings· number- Scaled servings produced by the tool.
fill_change· number- Batter change produced by the tool.
{
"type": "object",
"properties": {
"recipe_multiplier": {
"type": "number",
"description": "Recipe multiplier produced by the tool."
},
"source_area": {
"type": "number",
"description": "Source pan area produced by the tool."
},
"target_area": {
"type": "number",
"description": "Target pan area produced by the tool."
},
"scaled_servings": {
"type": "number",
"description": "Scaled servings produced by the tool."
},
"fill_change": {
"type": "number",
"description": "Batter change produced by the tool."
}
},
"additionalProperties": false
}
Cake Pan Conversion Calculator 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/cake-pan-conversion-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"source_shape": "round",
"source_length_or_diameter": 9,
"source_width": 9,
"target_shape": "rectangle",
"target_length_or_diameter": 13,
"target_width": 9,
"original_servings": 12
}'
{
"ok": true,
"data": {
"slug": "cake-pan-conversion-calculator",
"result": {
"values": {
"recipe_multiplier": 1.8391239999999999810142981004901230335235595703125,
"source_area": 63.6173000000000001818989403545856475830078125,
"target_area": 117,
"scaled_servings": 22.069500000000001449507180950604379177093505859375,
"fill_change": 83.9123790000000013833414413966238498687744140625
},
"display": {
"display": "1.839124"
},
"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.