validate_weekday_date
Validates a weekday and date claim against the current week, returning whether it is correct and the corrected date if not.
Instructions
Validate a weekday+date claim against the current week and correct it.
The weekday name is authoritative: if claimed_date is not that weekday's
date in the current week, is_correct is false and corrected_date
gives the right date.
Args:
weekday: The weekday the caller asserts — name or 3-letter abbreviation.
claimed_date: The caller's asserted date, ISO YYYY-MM-DD.
week_start: Day the week starts on. Omit to use the configured default.
timezone: IANA timezone name anchoring "today". Omit to use the default.
Returns:
is_correct, the claimed/corrected dates and weekday names, the week's
start/end dates, and context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weekday | Yes | ||
| timezone | No | ||
| week_start | No | ||
| claimed_date | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||