Inject the current date, time, and timezone into the model's context automatically.
Not yet available. The Datetime server tool is not yet available.
Most LLMs have no reliable sense of the current date. The Datetime server tool solves this cleanly: the gateway records the exact timestamp at request time and injects it into the conversation so the model can reason about dates, deadlines, and relative time without hallucinating.
The gateway injects a system-level context block before the model's first token:
The model can then answer date-relative questions accurately without any extra work on your side.
| Option | Type | Default | Description |
|---|---|---|---|
timezone | string | "Africa/Algiers" | IANA timezone name for formatting |
format | string | "iso8601" | "iso8601", "human", or "unix" |
include_weekday | boolean | true | Prepend day-of-week to human format |
The default timezone is Africa/Algiers (UTC+1 year-round), which is correct for most Algerian users. Override it if your users are in a different region.
"iso8601":
"human":
"unix":
Unlike most server tools, Datetime does not require a model tool-call decision — the value is injected unconditionally whenever the tool is listed, before generation begins. This makes it safe to include on every request with negligible overhead (the injected text is ~30–60 tokens).
Datetime adds a small, fixed token overhead to each request. There is no per-invocation fee beyond the token cost of the injected timestamp.