Skip to main content
Glama

get_current_time

Get current date and time with timezone support, returning formatted datetime, timezone info, and Unix timestamp. Use for time checks, timezone comparisons, logging timestamps, and scheduling tasks.

Instructions

GET CURRENT DATE AND TIME with timezone support. Returns formatted datetime, timezone info, and Unix timestamp. Use for getting current time, checking time in different timezones, timestamps for logging. Keywords: time, date, now, current time, timestamp, timezone, clock. / 获取当前日期和时间,支持时区。返回格式化的日期时间、时区信息和Unix时间戳。用于获取当前时间、检查不同时区的时间、日志时间戳。关键词:时间、日期、当前时间、时间戳、时区。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timezoneNoIANA timezone name (optional). If empty or not provided, uses the system's local timezone. Common timezones: 'Asia/Shanghai' (China), 'America/New_York' (US East), 'Europe/London' (UK), 'UTC' (Universal), 'Asia/Tokyo' (Japan), 'America/Los_Angeles' (US West), 'Europe/Paris' (France).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
timeYes
unixYes
is_dstNo
weekdayYes
datetimeYes
timezoneYes
unix_milliYes
timezone_offsetYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses behavioral traits: returns formatted datetime, timezone info, Unix timestamp, and explains timezone optionality (system local if not provided). It doesn't explicitly state non-destructiveness, but the nature of the tool makes it evident. Good coverage for a simple read-only operation.

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 description is reasonably concise and front-loaded with the purpose, then return values, then use cases. It includes keywords and a Chinese translation, which add slight redundancy but do not bloat it excessively. It earns a score above average for its clear structure despite minor repetition.

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 tool with one optional parameter and an output schema, the description is complete. It covers use cases, return data, timezone behavior, and falls back to system local time when appropriate. Nothing essential is missing, and the output schema handles return-value details.

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%, and the schema already provides a thorough explanation of the 'timezone' parameter including IANA examples, optionality, and default behavior. The description text only mentions 'timezone support' without adding meaning beyond the schema, so the baseline of 3 applies.

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 description clearly states the tool's purpose with a specific verb and resource: 'GET CURRENT DATE AND TIME with timezone support.' It also enumerates the exact return values (formatted datetime, timezone info, Unix timestamp), making it unambiguous. Sibling tools are all file/command related, so this tool stands out distinctly as the time/date utility.

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 provides explicit use cases: 'Use for getting current time, checking time in different timezones, timestamps for logging,' and the schema adds scheduling and time-based operations. It gives clear when-to-use guidance, though it doesn't mention when not to use it or alternatives—which are unnecessary given the absence of competing sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shibingli/mcp-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server