Skip to main content
Glama

Get Current Time

get_time
Read-only

Returns the current time (or an offset from it) in both ISO 8601 format and unix epoch seconds.

  • Purpose: Get the current real time in UTC, optionally offset by a number of seconds, for any time-based calculations.

  • What this tool returns: { success: true, iso8601: "...", timestamp: ... } with the time in ISO 8601 format and as a unix epoch integer.

  • Use offset_seconds to get a future or past time relative to now (e.g. 7200 for 2 hours from now, -3600 for 1 hour ago).

  • Use timezone to get the ISO 8601 time in a specific timezone.

Input Schema

NameRequiredDescriptionDefault
timezoneNoTimezone name to use for the time calculation. Use IANA timezone names (e.g. 'Asia/Singapore'). If not provided, UTC will be used.
offset_secondsNoNumber of seconds to offset from current time. Positive for future, negative for past. Defaults to 0, the current time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / offset_seconds / description
      Previous value: -"Number of seconds to offset from current time. Positive for future, negative for past. Use 0 to get the current time."New value: +"Number of seconds to offset from current time. Positive for future, negative for past. Defaults to 0, the current time."
    • removedInput schema / required
      Removed value: -[
      -  "offset_seconds"
      -]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered; the description adds the return payload shape and the default-to-UTC behavior when timezone is omitted. It does not note that repeated calls return different values (consistent with idempotentHint=false), which would have been useful for caching decisions.

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?

The lead sentence is front-loaded and the bullets are scannable and each carries distinct information. The 'What this tool returns' bullet mildly duplicates the opening sentence's format claim, costing a bit of tightness.

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?

With no output schema, the description supplies the return shape ({ success, iso8601, timestamp }) itself, plus defaults for both optional parameters. For a zero-required-parameter utility tool, 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.

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes beyond the schema by giving worked examples (7200 = 2 hours ahead, -3600 = 1 hour ago) and by tying timezone to the ISO 8601 output specifically. This is additive meaning, not repetition.

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?

The first sentence states a specific verb and resource ('Returns the current time ... in ISO 8601 and unix epoch seconds') with scope (optionally offset). No sibling tool in the list deals with time, so the utility role is unambiguous and an agent can select it without opening the schema.

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?

It gives concrete usage context ('for any time-based calculations') and explains both knobs: offset_seconds for future/past times and timezone for localized ISO output. No alternatives or exclusions are named, but none of the siblings overlap, so the routing gap is minimal.

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.