Skip to main content
Glama

util_datetime

Read-onlyIdempotent

Retrieves the current date and time in UTC, local time, or a specified IANA/Windows time zone to resolve deadlines, weekdays, and convert local times to UTC timestamps.

Instructions

Gets the current date and time from this computer's clock. Without timeZoneId it returns two lines: UTC, and the local time with its zone id and offset (ISO 8601). With timeZoneId it returns one line: that zone's id and its time with offset; an unknown id is an error that names the expected form. Reads only. Use it whenever an answer depends on today's date, a weekday, a deadline or the owner's local time, instead of guessing; and to turn a local time into the UTC timestamp code_changes_since expects. waymark_ping only gives the server's UTC time.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "util_datetime"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeZoneIdNoOptional time zone id. IANA ids such as 'Europe/London' or 'Asia/Kolkata' work on every system; Windows ids such as 'India Standard Time' work too. Leave empty for UTC plus this computer's local time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.2
    • removedInput schema / properties / guide
      Removed value: -{
      -  "description": "true: put the Waymark overview first in the result. Prefer the waymark_guide tool.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / timeZoneId / description
      Previous value: -"Optional time zone id such as 'Europe/London' or 'India Standard Time'. Leave empty for UTC and local time."New value: +"Optional time zone id. IANA ids such as 'Europe/London' or 'Asia/Kolkata' work on every system; Windows ids such as 'India Standard Time' work too. Leave empty for UTC plus this computer's local time."
  2. First observedv0.2.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the exact return shape (two lines for UTC plus local with zone id and offset, one line when timeZoneId is given, ISO 8601) and the failure mode (an unknown id is an error that names the expected form). That output and error detail is precisely the kind of context annotations cannot carry, and nothing here conflicts with readOnlyHint or idempotentHint.

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

Conciseness5/5

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

Front-loaded with the core action, then the two output cases, then usage and sibling differentiation — a logical order with no filler sentences. Every clause carries information an agent needs, including the trailing note about waymark_ping, which prevents a plausible wrong choice.

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 one-optional-param, no-output-schema reader tool, the definition covers everything an agent needs: what it returns in each case, the error condition, that it is a read, and when to prefer it over the sibling. There is no gap that would force a trial call to learn behavior.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description adds value by explaining the behavioral consequence of omitting the parameter (UTC plus this computer's local time) and of supplying an unknown id (a named-form error). The remaining definition of accepted id formats lives in the schema, so the description does not fully carry that load itself.

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 ('Gets the current date and time from this computer's clock') and immediately distinguishes the tool from the sibling that could be confused with it ('waymark_ping only gives the server's UTC time'). The contrast between the no-argument two-line result and the one-line result with timeZoneId makes the scope unambiguous.

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

Usage Guidelines5/5

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

Gives explicit positive guidance ('Use it whenever an answer depends on today's date, a weekday, a deadline or the owner's local time, instead of guessing') and a concrete chaining case ('to turn a local time into the UTC timestamp code_changes_since expects'). It also names the alternative (waymark_ping) with the condition that rules it out, so the agent does not have to infer selection.

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