Skip to main content
Glama
karimi-mohammad

local-time-mcp

get_current_datetime

Get current date and time in any IANA timezone, with ISO 8601 format, Unix timestamp, and Persian Jalali calendar date.

Instructions

Get the current date and time.

Returns structured JSON with the current datetime, including:

  • ISO 8601 datetime string

  • Date (YYYY-MM-DD)

  • Time (HH:MM:SS)

  • Day of week in English and Persian

  • IANA timezone name

  • UTC offset

  • Unix timestamp

  • Jalali (Solar Hijri) date in numeric and Persian formats

Args: timezone: Optional IANA timezone name (e.g., "Asia/Tehran", "Europe/Berlin", "America/New_York", "UTC"). If not provided, uses system local timezone.

Returns: JSON string with datetime information, or error message for invalid timezone.

Examples: - get_current_datetime() -> Current time in system timezone - get_current_datetime("Asia/Tehran") -> Current time in Tehran - get_current_datetime("UTC") -> Current time in UTC

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timezoneNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It thoroughly explains the return format (fields like ISO 8601, Jalali date, timezone info) and mentions error behavior for invalid timezone. This covers the tool's observable behavior well for a read-only utility.

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 well-structured with a summary, bulleted return fields, Args section, and examples. While slightly long, every section adds value and the structure aids scanning. No fluff or redundancy.

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 single-parameter tool with no siblings and no annotations, this description is fully complete. It covers purpose, parameters, return format, error handling, and examples. The output schema is described in detail, so an agent knows exactly what to expect.

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

Parameters5/5

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

The schema provides only the name 'timezone' with no description (0% coverage). The description compensates fully: it explains the purpose, lists valid IANA examples, documents the default behavior, and provides usage examples. This adds complete semantic meaning beyond the schema.

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 starts with a clear verb-object statement: 'Get the current date and time.' It then enumerates the exact data returned, making the tool's functionality unambiguous. No siblings exist, so distinction is automatically satisfied.

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 states when to use the optional timezone parameter and what happens if it's omitted ('If not provided, uses system local timezone'). Examples cover typical use cases. No exclusions or alternatives are needed since there are no 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/karimi-mohammad/local-time-mcp'

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