Parse a natural-language date question
parse_date_queryParses 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| tz | No | IANA timezone that defines "today" (e.g. Africa/Kampala). Default UTC. | UTC |
| locale | No | Resolves ambiguous slash dates; omit to receive clarification choices |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | No | The calculated answer, absent when parsed is null | |
| parsed | Yes | Normalized operation, or null when the query could not be understood confidently | |
| receipt | No | Auditable receipt, absent when parsed is null | |
| warnings | Yes | Machine-readable notes, e.g. unsupported_unit or time_ignored | |
| confidence | Yes | 1.0 is a clean grammar hit; below 0.5 the query is refused rather than guessed | |
| canonicalUrl | No | tilwhen page that answers this query, to cite; null when no page covers it | |
| needsClarification | No | Present when the query is genuinely ambiguous (e.g. 03/04/2027); offers explicit choices instead of a guess |