Appointment request check
appointment-request-check · version 1.0.0 · Dates & times (UTC, ISO 8601) · free, no key needed
Check an appointment request against pinned time-zone facts and caller-supplied booking rules.
Use when you need to: check appointment request · validate booking against opening hours · test appointment blackout conflict.
Decide before calling
Read the versioned contract and the supported scope below. Reuse appointment-request-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.
Explain the choice
"I can use appointment-request-check@1.0.0 for check appointment request. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."
Supported
- check appointment request
- validate booking against opening hours
- test appointment blackout conflict
- check booking notice eligibility
- explain rejected appointment time
- verify appointment horizon policy
Not supported
- reserve an appointment slot
- look up provider availability
- validate iCalendar documents
Behavior
- Intervals are half-open [start,end); sorted by start epoch then end epoch.
- Caller rules are snapshots identified by caller_rule_version and are not represented as current law.
- Ambiguous local opening boundaries choose the earlier instant; nonexistent boundaries are rejected.
- No host clock, locale, network, randomness, Intl, or host time zone is used.
Input
caller_rule_version(string, required): min length 1; max length 64zone_id(string, required): min length 1; max length 64now(string, required): min length 20; max length 30notice_seconds(integer, required): min 0; max 31536000horizon_seconds(integer, required): min 0; max 31536000start(string, required): min length 20; max length 30duration_seconds(integer, required): min 300; max 28800opening_hours(array of object, required): min items 1; max items 14blackouts(array of object, required): max items 100
Output
standard_version(constant "RFC3339+ISO8601-1:2019", required)data_version(constant "iana-tzdb-2025b-compact", required)caller_rule_version(string, required): min length 1; max length 64zone_id(string, required)valid(boolean, required)reason(string, required)start_epoch_seconds(integer, required)end_epoch_seconds(integer, required)
Limits
- max input bytes: 65536
- max blackouts: 100
- max opening rules: 14
- max windows: 1000
Example
Request input:
{
"caller_rule_version": "policy-v7",
"zone_id": "UTC",
"now": "2026-06-01T00:00:00Z",
"notice_seconds": 0,
"horizon_seconds": 31536000,
"opening_hours": [
{
"weekday": 1,
"start": "09:00",
"end": "12:00"
}
],
"blackouts": [],
"start": "2026-06-01T09:00:00Z",
"duration_seconds": 3600
}
Response:
{
"result": {
"standard_version": "RFC3339+ISO8601-1:2019",
"data_version": "iana-tzdb-2025b-compact",
"caller_rule_version": "policy-v7",
"zone_id": "UTC",
"valid": true,
"reason": "ok",
"start_epoch_seconds": 1780304400,
"end_epoch_seconds": 1780308000
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "appointment-request-check",
"version": "1.0.0",
"input": {
"caller_rule_version": "policy-v7",
"zone_id": "UTC",
"now": "2026-06-01T00:00:00Z",
"notice_seconds": 0,
"horizon_seconds": 31536000,
"opening_hours": [
{
"weekday": 1,
"start": "09:00",
"end": "12:00"
}
],
"blackouts": [],
"start": "2026-06-01T09:00:00Z",
"duration_seconds": 3600
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/appointment-request-check/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"caller_rule_version":"policy-v7","zone_id":"UTC","now":"2026-06-01T00:00:00Z","notice_seconds":0,"horizon_seconds":31536000,"opening_hours":[{"weekday":1,"start":"09:00","end":"12:00"}],"blackouts":[],"start":"2026-06-01T09:00:00Z","duration_seconds":3600}'
The machine-readable contract is at /v1/tools/appointment-request-check/versions/1.0.0.
CLI
node cli.mjs run appointment-request-check 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Appointment windows build: Build deterministic appointment windows from pinned time-zone facts and caller-supplied booking rules.
- Working hours contains: Test whether an exact UTC instant is inside a versioned expanded working-hours calendar.
- Appointment cutoffs compute: Compute exact booking and cancellation cutoffs for an appointment from caller-supplied rules.
- Duration application check: Check a claimed timestamp from adding or subtracting an ISO 8601 duration under explicit offset and month-end rules.
- ISO duration structure check: Check a claimed reading of an ISO 8601 duration: well-formedness, components and month/day/time totals.
- Working hours total: Total exact elapsed seconds in a versioned working-hours calendar after DST and closure expansion.