← All tool references

Cooking · not_available

Coffee Ratio Calculator

Calculate coffee and water amounts for a selected brew ratio.

Open public tool

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/coffee-ratio-calculator

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/coffee-ratio-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.

brew_method · string · required
Enter the brew method used by this tool. Accepted values: pour_over, drip, french_press, aeropress, cold_brew.
solve_for · string · required
Enter the calculate from used by this tool. Accepted values: coffee, water.
coffee_grams · number · required
Enter the coffee used by this tool.
water_grams · number · required
Enter the water used by this tool.
water_per_coffee · number · required
Enter the water-to-coffee ratio used by this tool.
{
    "type": "object",
    "properties": {
        "brew_method": {
            "type": "string",
            "description": "Enter the brew method used by this tool.",
            "enum": [
                "pour_over",
                "drip",
                "french_press",
                "aeropress",
                "cold_brew"
            ]
        },
        "solve_for": {
            "type": "string",
            "description": "Enter the calculate from used by this tool.",
            "enum": [
                "coffee",
                "water"
            ]
        },
        "coffee_grams": {
            "type": "number",
            "description": "Enter the coffee used by this tool.",
            "minimum": 0
        },
        "water_grams": {
            "type": "number",
            "description": "Enter the water used by this tool.",
            "minimum": 0
        },
        "water_per_coffee": {
            "type": "number",
            "description": "Enter the water-to-coffee ratio used by this tool.",
            "minimum": 1,
            "maximum": 30
        }
    },
    "required": [
        "brew_method",
        "solve_for",
        "coffee_grams",
        "water_grams",
        "water_per_coffee"
    ],
    "additionalProperties": false
}

Output schema

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

coffee_grams_result · number
Coffee needed produced by the tool.
water_grams_result · number
Water needed produced by the tool.
brew_ratio · string
Brew ratio produced by the tool.
estimated_beverage_ounces · number
Estimated beverage volume produced by the tool.
method_guidance · string
Method guidance produced by the tool.
{
    "type": "object",
    "properties": {
        "coffee_grams_result": {
            "type": "number",
            "description": "Coffee needed produced by the tool."
        },
        "water_grams_result": {
            "type": "number",
            "description": "Water needed produced by the tool."
        },
        "brew_ratio": {
            "type": "string",
            "description": "Brew ratio produced by the tool."
        },
        "estimated_beverage_ounces": {
            "type": "number",
            "description": "Estimated beverage volume produced by the tool."
        },
        "method_guidance": {
            "type": "string",
            "description": "Method guidance produced by the tool."
        }
    },
    "additionalProperties": false
}

Coffee Ratio 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/coffee-ratio-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "brew_method": "pour_over",
    "solve_for": "coffee",
    "coffee_grams": 30,
    "water_grams": 480,
    "water_per_coffee": 16
}'
{
    "ok": true,
    "data": {
        "slug": "coffee-ratio-calculator",
        "result": {
            "values": {
                "coffee_grams_result": 30,
                "water_grams_result": 480,
                "brew_ratio": "1:16",
                "estimated_beverage_ounces": 16.23100000000000164845914696343243122100830078125,
                "method_guidance": "Use a medium-fine grind and pour in controlled pulses."
            },
            "display": {
                "display": "30"
            },
            "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.