tilwhen date engine

com.tilwhenPublished by tilwhen.comOfficial publisherv1.0.1Updated Nov 22, 2026

Deterministic date arithmetic with auditable receipts: business days, due dates, holidays.

VerifiedStreamable HTTPWeb executableProductivity & WorkflowFinance

Overview

AI-generated overview

Remote date-arithmetic engine that answers business-day, due-date and holiday questions deterministically, returning an auditable receipt with each answer.

What you can do
  • Parse natural-language date queries and answer them, flagging ambiguous dates for clarification
  • Add or subtract calendar days and measure the signed gap between two dates in a chosen timezone
  • Count business days between dates or find the date N business days away
  • Compute Net-N invoice due dates, optionally rolling forward past weekends and holidays
  • Find the next occurrence of a weekday or a tracked event such as a holiday
  • List observed public holidays with legal dates and rule-versus-declared status
When to use it
Useful when an assistant must give exact, reproducible date answers — deadlines, payment terms, working-day counts, holiday-aware scheduling — and should show how the result was derived rather than estimating in its head.
Requirements
A remote streamable HTTP endpoint; no package, account, API key or environment variable is declared. Answers depend on the timezone passed in the request, which defaults to UTC.
Before you install
There is no default holiday calendar: omitting the jurisdiction excludes no holidays, and the server advises asking the user which calendar is meant rather than inferring one. Spans crossing years without officially declared holidays return a holiday_data_incomplete warning that should be reported alongside the number.

Installation

In SourceWeft

  1. Open tilwhen date engine in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/com.tilwhen%2Ftilwhen/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "tilwhen-date-engine": {
      "type": "http",
      "url": "https://mcp.tilwhen.com/mcp"
    }
  }
}

README

This repository has no README.

Tools

9

parse_date_query

Parse a natural-language date question

Parses queries like "90 business days from today in uganda" into a normalized operation, answers it, and returns the auditable receipt. Ambiguous dates (03/04/2027) return needsClarification instead of a guess.

Parametersqrequiredtzlocale

add_days

Add calendar days to a date

The date N whole calendar days after a date (exclusive counting: the start date is day 0). Omit date for today in tz. For working days use business_days; for the gap between two dates use days_between.

Parameterstzdatedaysrequired

subtract_days

Subtract calendar days from a date

The date N whole calendar days before a date (exclusive counting: the start date is day 0). Omit date for today in tz. For working days use business_days; for the gap between two dates use days_between.

Parameterstzdatedaysrequired

days_between

Days between two dates

Signed whole calendar days from the from date to the to date, midnight to midnight in tz: positive when to is later, negative when it is earlier. Endpoints are exclusive, so this is the gap and consecutive dates are 1 apart. Either date may be "today", resolved in tz. For working days between two dates use business_days; to move a date by N days use add_days or subtract_days.

Parameterstorequiredtzfromrequired

business_days

Business-day calculations

Span mode (from+to): business days between two dates, exclusive of the start day, inclusive of the end day. Add mode (days, optional date): the date N business days away. Passing from or to selects span mode and needs both; days and date are then ignored, so add mode takes its start date in date, not from. Optional holiday jurisdiction or custom calendar, and a selectable working week. For calendar days use add_days, subtract_days or days_between.

ParameterstotzdatedaysfromworkweekjurisdictioncustomHolidays

invoice_due

Invoice due date from net terms

Due date for Net-N payment terms (calendar days, invoice date = day 0). Optional roll-forward past weekends and, with a jurisdiction or custom calendar, public holidays.

ParameterstznetrequiredrollworkweekinvoiceDatejurisdictioncustomHolidays

next_occurrence

Next occurrence of an event or weekday

The next occurrence strictly after the base date (default today) of either a tracked event slug (e.g. "christmas") or a weekday (0 = Sunday .. 6 = Saturday). Provide exactly one of event/weekday.

Parameterstzfromeventweekday

holidays

Public holidays for a jurisdiction and year

Observed public holidays with the nominal (legal) date and status: rule (statutory) or declared (officially declared for that year). Declared-only holidays are omitted for undeclared years, with a holiday_data_incomplete warning.

Parametersyearrequiredjurisdictionrequired

explain

Explain a calculation step by step

Runs any operation and returns the receipt plus human-readable derivation steps. Set op, then pass the fields that operation's own tool takes. Use it when the user asks how an answer was reached.

Parametersoprequiredtotznetdatedaysfromrollyeareventweekdayworkweek+3 more

Version history

2
  1. v1.0.1LatestSep 18, 2026
  2. v1.0.0Sep 16, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.