Overview
- Category
- Cooking
- API mode
execute- 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/flour-weight-converter
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/flour-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.
amount· number · required- Non-negative quantity.
ingredient· string · required-
Flour density reference. Accepted values:
all_purpose_flour, bread_flour, cake_flour, whole_wheat_flour, gluten_free_all_purpose_flour. from_unit· string · required-
Source unit. Accepted values:
g, oz, lb, cup, tbsp, tsp. to_unit· string · required-
Destination unit. Accepted values:
g, oz, lb, cup, tbsp, tsp.
{
"type": "object",
"properties": {
"amount": {
"type": "number",
"minimum": 0,
"description": "Non-negative quantity."
},
"ingredient": {
"type": "string",
"enum": [
"all_purpose_flour",
"bread_flour",
"cake_flour",
"whole_wheat_flour",
"gluten_free_all_purpose_flour"
],
"description": "Flour density reference."
},
"from_unit": {
"type": "string",
"enum": [
"g",
"oz",
"lb",
"cup",
"tbsp",
"tsp"
],
"description": "Source unit."
},
"to_unit": {
"type": "string",
"enum": [
"g",
"oz",
"lb",
"cup",
"tbsp",
"tsp"
],
"description": "Destination unit."
}
},
"required": [
"amount",
"ingredient",
"from_unit",
"to_unit"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
result· number- Converted culinary quantity.
density_grams_per_cup· number- Selected grams-per-cup reference.
ingredient· string- Selected flour identifier.
from_unit· string- Source unit.
to_unit· string- Destination unit.
{
"type": "object",
"properties": {
"result": {
"type": "number",
"description": "Converted culinary quantity."
},
"density_grams_per_cup": {
"type": "number",
"description": "Selected grams-per-cup reference."
},
"ingredient": {
"type": "string",
"description": "Selected flour identifier."
},
"from_unit": {
"type": "string",
"description": "Source unit."
},
"to_unit": {
"type": "string",
"description": "Destination unit."
}
},
"additionalProperties": false
}
120 grams of all-purpose flour to cups
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/flour-weight-converter/execute" \
-H "Content-Type: application/json" \
-d '{
"amount": 120,
"ingredient": "all_purpose_flour",
"from_unit": "g",
"to_unit": "cup"
}'
{
"ok": true,
"data": {
"slug": "flour-weight-converter",
"result": {
"values": {
"result": 1,
"density_grams_per_cup": 120,
"ingredient": "all_purpose_flour",
"from_unit": "g",
"to_unit": "cup"
},
"display": {
"display": "1"
},
"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.