API & MCP
Everything a person can do on TimeFair Meeting Planner, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://timefair.usefulweb.site/api/v1/calculate– run TimeFair Meeting PlannerGET https://timefair.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
TimeFair Meeting Planner
Enter participants with their IANA time zone and working hours. TimeFair scores every candidate slot by how far it falls outside each person’s working day (extra penalty at night), ranks slots by total and worst-case inconvenience, and builds a rotation plan for recurring meetings so the pain is shared. Exports an .ics calendar file.
| Field | Type | Default | Description |
|---|---|---|---|
title | text | "Team meeting" | Meeting title |
participants (required) | table | — | Participants. IANA time zone such as Europe/Berlin, America/New_York, Asia/Kolkata. Work end earlier than start means an overnight shift. The first participant is the organiser (date range uses their calendar). |
startDate | date | — | First day. In the organiser’s time zone. Defaults to today (UTC date). |
days | integer | 5 | Number of days |
durationMinutes | integer | 60 | Meeting length |
granularity | select (15, 30, 60) | "30" | Slot granularity |
workdays | multiselect (sun, mon, tue, wed, thu, fri, sat) | ["mon","tue","wed","thu","fri"] | Working days (local to each participant) |
recurrences | integer | 4 | Occurrences to rotate |
intervalDays | integer | 7 | Repeat every |
Example request
Berlin, New York, Bengaluru, Kathmandu
curl -X POST https://timefair.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"title":"Platform sync","startDate":"2026-10-19","days":5,"durationMinutes":60,"granularity":"30","recurrences":4,"participants":[{"name":"Anna","timeZone":"Europe/Berlin","workStart":"09:00","workEnd":"17:30"},{"name":"Ben","timeZone":"America/New_York","workStart":"09:00","workEnd":"17:00"},{"name":"Chitra","timeZone":"Asia/Kolkata","workStart":"10:00","workEnd":"18:30"},{"name":"Dev","timeZone":"Asia/Kathmandu","workStart":"10:00","workEnd":"17:00"}]}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://timefair.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
timefair - Local stdio connector:
node src/mcp-stdio.ts --tool=timefair
{
"mcpServers": {
"timefair": { "type": "http", "url": "https://timefair.usefulweb.site/mcp" }
}
}