Skip to main content
Glama
Simple DateTime MCP Server

Simple DateTime MCP Server

by solverio-pl

getDateTime

Retrieve the current date and time in any IANA timezone, with optional custom formatting and NTP synchronization for higher accuracy. Falls back to server time on timeout.

Instructions

Get current date and time in specified timezone with optional NTP synchronization. Fast response using server time by default, optionally fetch from NTP servers for high accuracy.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "timezone": "<timezone>"
    },
    "name": "getDateTime"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOptional format string. Supported tokens: YYYY (year), MM (month), DD (day), HH (24-hour), hh (12-hour), mm (minutes), ss (seconds), SSS (milliseconds), A/a (AM/PM). Example: 'YYYY-MM-DD HH:mm:ss'
localeNoOptional locale for formatting (e.g., 'en-US', 'pl-PL'). Used when format string not provided. Default: 'en-US'
useNTPNoUse NTP servers for time synchronization. Default: false (uses fast server time)
timezoneYesIANA timezone name (e.g., 'America/New_York', 'Europe/Warsaw', 'Asia/Tokyo')
ntpTimeoutNoNTP timeout in milliseconds. Default: 1000ms. Falls back to server time on timeout

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully distinguishes the two operating modes (fast server time vs NTP-backed) and their tradeoff, but omits error behavior for invalid timezone names and does not state that the call is a side-effect-free read, which is only inferable from the verb.

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?

Two short sentences, front-loaded with the core action, and no filler. Minor redundancy between 'with optional NTP synchronization' and 'optionally fetch from NTP servers', which repeats the same fact twice.

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

Completeness4/5

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

For a simple single-purpose read tool with 100% schema coverage and no annotations, the definition covers the what, the default behavior, and the latency/accuracy tradeoff. The one gap is the return shape — there is no output schema and the description never says whether the result is a formatted string, an object with offset, or includes the resolved timezone.

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 all five parameters (format tokens, locale, useNTP, timezone IANA names, ntpTimeout) are already documented in the schema. The description only restates the timezone and NTP concepts at a high level and adds no syntax or semantics beyond what the schema provides, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Get current date and time') plus the scoping dimension ('in specified timezone') and an optional mode ('with optional NTP synchronization'). It is unambiguous, though there are no sibling tools to differentiate against and no explicit statement of what the tool does *not* do (e.g., no conversion or arithmetic).

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?

The description gives actionable context for the main decision point: default server time is 'fast', NTP is for 'high accuracy', which tells an agent when to set useNTP. It stops short of explicit exclusions (e.g., 'do not enable NTP for bulk/repeated calls') or guidance on timezone selection.

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

Deploy Server

Other Tools