← All tool references

Date & Time · not_available

Alarm Clock

Calculate next alarm from alarm time, alarm label, repeat.

Open public tool

Overview

Category
Date & Time
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/alarm-clock

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/alarm-clock/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.

alarm_time · string · required
Enter alarm time.
label · string · required
Enter alarm label.
repeat · string · required
Enter repeat. Accepted values: once, daily, weekdays.
{
    "type": "object",
    "properties": {
        "alarm_time": {
            "type": "string",
            "description": "Enter alarm time."
        },
        "label": {
            "type": "string",
            "description": "Enter alarm label."
        },
        "repeat": {
            "type": "string",
            "description": "Enter repeat.",
            "enum": [
                "once",
                "daily",
                "weekdays"
            ]
        }
    },
    "required": [
        "alarm_time",
        "label",
        "repeat"
    ],
    "additionalProperties": false
}

Output schema

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

next_alarm · string
Next alarm produced by the tool.
time_remaining · string
Time remaining produced by the tool.
repeat_rule · string
Repeat rule produced by the tool.
{
    "type": "object",
    "properties": {
        "next_alarm": {
            "type": "string",
            "description": "Next alarm produced by the tool."
        },
        "time_remaining": {
            "type": "string",
            "description": "Time remaining produced by the tool."
        },
        "repeat_rule": {
            "type": "string",
            "description": "Repeat rule produced by the tool."
        }
    },
    "additionalProperties": false
}

Alarm Clock 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/alarm-clock/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "alarm_time": "07:30",
    "label": "Start the day",
    "repeat": "once"
}'
{
    "ok": true,
    "data": {
        "slug": "alarm-clock",
        "result": {
            "values": {
                "next_alarm": "2026-07-16T12:30:00.000Z",
                "time_remaining": "18:18:32",
                "repeat_rule": "once"
            },
            "display": {
                "display": "2026-07-16T12:30:00.000Z"
            },
            "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.