Toolpal

@toolpal/meeting-planner

public

v2.0published 1 download this weekMIT

Finds meeting times across cities and time zones, with daylight saving time handled exactly. Lists the windows on a given day when everyone is within working hours (or, if there are none, the windows that suit the most people), and converts a proposed time into every participant's local time. Offline, no API key needed.

Examples

Verified from build

Real input and sandbox-captured output from this version.

“Find working-hour overlap between New York and London on 2026-11-24 and check 10:00 AM NY”

Input
{
  "date": "2026-11-24",
  "time": "10:00",
  "zones": [
    "New York",
    "London"
  ]
}
OutputSandbox run
{
  "date": "2026-11-24",
  "zones": [
    {
      "input": "New York",
      "timeZone": "America/New_York",
      "utcOffset": "UTC-05:00",
      "proposedTime": "Tue 2026-11-24 10:00",
      "proposedTimeIsWorkingHours": true
    },
    {
      "input": "London",
      "timeZone": "Europe/London",
      "utcOffset": "UTC+00:00",
      "proposedTime": "Tue 2026-11-24 15:00",
      "proposedTimeIsWorkingHours": true
    }
  ],
  "summary": "All 2 participants are within working hours for 4h 0m on 2026-11-24, in 1 window(s).",
  "windows": [
    {
      "local": [
        {
          "to": "Tue 2026-11-24 13:00",
          "from": "Tue 2026-11-24 09:00",
          "working": true,
          "timeZone": "America/New_York"
        },
        {
          "to": "Tue 2026-11-24 18:00",
          "from": "Tue 2026-11-24 14:00",
          "working": true,
          "timeZone": "Europe/London"
        }
      ],
      "endUtc": "2026-11-24T18:00Z",
      "startUtc": "2026-11-24T14:00Z",
      "durationMinutes": 240
    }
  ],
  "workingHours": "09:00–18:00, Mon–Fri",
  "everyoneAvailable": true
}

Finds meeting windows across cities and IANA time zones with exact daylight saving time (DST) handling — completely offline, with no API key required.

How it works

  1. Resolves major city names (e.g. San Francisco, London, Bengaluru, Tokyo), common abbreviations (UTC, IST, ET, PT), and full IANA zone IDs (America/New_York, Europe/Paris).
  2. Scans the chosen date in 15-minute increments using each zone's actual UTC offset on that date (including DST transitions).
  3. Returns every window where all participants are within working hours, or — if no full overlap exists — the distinct windows that suit the largest subset of participants.
  4. Optionally converts a proposed HH:MM time in the first zone into every participant's local wall-clock time and notes whether it falls inside working hours.

Example

{
  "zones": ["San Francisco", "London", "Bengaluru"],
  "date": "2026-11-24",
  "time": "09:00"
}

Notes

  • Pure compute: zero network access, zero file access, zero environment variables.
  • Default working hours are 09:00–18:00 Monday–Friday (configurable via workdayStart, workdayEnd, and includeWeekends).

Input

Validated before the workflow runs.

  • datestring

    Day to plan, YYYY-MM-DD in the first zone; today there by default

    pattern ^\d{4}-\d{2}-\d{2}$

  • timestring

    A proposed meeting time, HH:MM in the first zone, to convert for everyone

    pattern ^([01]?\d|2[0-3]):[0-5]\d$

  • zonesrequiredstring[]

    Cities or IANA time zones, e.g. ["New York", "London", "Asia/Kolkata"]. The first is the reference for date and time.

    min items 1 · max items 12

  • workdayEndinteger

    End of working hours, 18 by default

    ≥ 1 · ≤ 24

  • workdayStartinteger

    Start of working hours, 9 by default

    ≥ 0 · ≤ 23

  • includeWeekendsboolean

    Count Saturday and Sunday as working days; false by default

JSON Schema
{
  "type": "object",
  "required": [
    "zones"
  ],
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Day to plan, YYYY-MM-DD in the first zone; today there by default"
    },
    "time": {
      "type": "string",
      "pattern": "^([01]?\\d|2[0-3]):[0-5]\\d$",
      "description": "A proposed meeting time, HH:MM in the first zone, to convert for everyone"
    },
    "zones": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 60
      },
      "maxItems": 12,
      "minItems": 1,
      "description": "Cities or IANA time zones, e.g. [\"New York\", \"London\", \"Asia/Kolkata\"]. The first is the reference for date and time."
    },
    "workdayEnd": {
      "type": "integer",
      "maximum": 24,
      "minimum": 1,
      "description": "End of working hours, 18 by default"
    },
    "workdayStart": {
      "type": "integer",
      "maximum": 23,
      "minimum": 0,
      "description": "Start of working hours, 9 by default"
    },
    "includeWeekends": {
      "type": "boolean",
      "description": "Count Saturday and Sunday as working days; false by default"
    }
  }
}

Output

Validated before your agent receives it.

  • daterequiredstring
  • zonesrequiredobject[]
  • summaryrequiredstring
  • windowsrequiredobject[]
  • workingHoursrequiredstring
  • everyoneAvailablerequiredboolean

    Whether some window has every participant within working hours

JSON Schema
{
  "type": "object",
  "required": [
    "date",
    "workingHours",
    "zones",
    "everyoneAvailable",
    "windows",
    "summary"
  ],
  "properties": {
    "date": {
      "type": "string"
    },
    "zones": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "input",
          "timeZone",
          "utcOffset"
        ],
        "properties": {
          "input": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "utcOffset": {
            "type": "string",
            "description": "Offset in effect on that day"
          },
          "proposedTime": {
            "type": "string"
          },
          "proposedTimeIsWorkingHours": {
            "type": "boolean"
          }
        }
      }
    },
    "summary": {
      "type": "string"
    },
    "windows": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "startUtc",
          "endUtc",
          "durationMinutes",
          "local"
        ],
        "properties": {
          "local": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "timeZone",
                "from",
                "to",
                "working"
              ],
              "properties": {
                "to": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "working": {
                  "type": "boolean"
                },
                "timeZone": {
                  "type": "string"
                }
              }
            }
          },
          "endUtc": {
            "type": "string"
          },
          "startUtc": {
            "type": "string"
          },
          "durationMinutes": {
            "type": "integer"
          }
        }
      }
    },
    "workingHours": {
      "type": "string"
    },
    "everyoneAvailable": {
      "type": "boolean",
      "description": "Whether some window has every participant within working hours"
    }
  }
}