Skip to main content
Glama

Text & Number Toolkit

Parse a human-written date (200 locales + Hijri)

parse_date
Read-onlyIdempotent

Turn a date written in natural language or local numeric formats into an ISO date/datetime: '3 mars 2026', '12.11.2026', 'next month', 'غداً', 'in 3 weeks', and Hijri dates such as '15 رمضان 1447' or '1 Muharram 1448' (converted by Umm al-Qura). Returns precision (day/month/year/time), the detected language and the relative base used. Pass languages and date_order when known. Example: text '١٥ رمضان ١٤٤٧'. Response: result plus data_confidence, estimated_items[], sources[], data_version, warnings[]; deterministic (no AI inside), nothing logged.

Input Schema

NameRequiredDescriptionDefault
textYesA date as humans write it: '3 mars 2026', '12/11/2026', 'غداً', 'in 3 weeks', '15 رمضان 1447', '2026-11-12T10:00'.
timezoneNoIANA zone for the result, e.g. 'Asia/Dubai'.
languagesNoLanguage codes to try, e.g. ['en','ar','fr']. Strongly recommended for speed and accuracy.
date_orderNoOrder for ambiguous numeric dates. Pass it whenever you know the source country.
prefer_futureNoResolve ambiguous relative dates forward (deadlines) rather than backward.
relative_baseNoISO datetime that relative phrases ('tomorrow', 'in 3 days') count from. Default: now.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond annotations by disclosing that the engine is deterministic ('no AI inside'), that 'nothing logged', which Hijri convention is used (Umm al-Qura), and what precision/language/relative-base metadata is returned. These are non-obvious behavioral traits an agent would otherwise not know.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose with examples, then covers params and response shape. It is dense and packs several ideas into one paragraph, but virtually every clause carries information; minor trimming of the fully-duplicated example would help.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-param tool with an output schema and full annotation coverage, the description supplies everything needed: input formats, when to pass hints, determinism/privacy behavior, and a sketch of the response. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so parameters are already well documented. The description adds only mild value by echoing 'Pass languages and date_order when known' and noting relative base is reported, but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Turn a date written in natural language... into an ISO date/datetime') with concrete multilingual examples including Hijri. This clearly separates it from numeric siblings like parse_number or convert_digits.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives actionable guidance ('Pass languages and date_order when known') and implies the tool's context via examples. However, it never explicitly contrasts with siblings or states when NOT to use it (e.g., for pure numbers), leaving some inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources