Skip to main content
Glama
VikasPrajapati1998

DateTime-LocalMCPServer

timezone_datetime

Get the current date and time for any specified timezone in ISO 8601 format. Convert timezone names to accurate local datetime values.

Instructions

Return the current date and time for a specified timezone.

Parameters

timezone : str, optional IANA timezone name (e.g., "UTC", "Asia/Kolkata"). Defaults to "UTC".

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution or error. - timezone : str Requested timezone. - datetime : str Current datetime in ISO 8601 format for the given timezone.

If an invalid timezone is provided, an error response is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timezoneNoUTC

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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 of behavioral disclosure. It effectively describes key behaviors: it returns current datetime in ISO 8601 format, handles invalid timezone inputs with an error response, and defaults to UTC if no timezone is specified. This covers core operational traits, though it lacks details on rate limits or authentication needs.

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 appropriately sized and front-loaded, starting with the core purpose. The parameter and return sections are well-structured but slightly verbose; every sentence earns its place by clarifying behavior, though some redundancy exists in stating the default and error handling.

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?

Given the tool's low complexity (1 optional parameter), no annotations, and the presence of an output schema (which the description details), the description is complete enough. It explains what the tool does, parameter usage, return values, and error handling, covering all necessary context for effective use.

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 description coverage is 0%, so the description must fully compensate. It adds significant meaning beyond the input schema by explaining the parameter 'timezone' as an optional IANA timezone name with examples ('UTC', 'Asia/Kolkata') and a default value of 'UTC'. This provides clear semantics that the schema alone does not convey.

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 specific action ('Return the current date and time') and resource ('for a specified timezone'), distinguishing it from siblings like 'current_date' or 'current_time' which lack timezone specification. It explicitly mentions the timezone parameter, making its purpose distinct from tools that return local or UTC-only values.

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

Usage Guidelines3/5

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

The description implies usage by specifying it returns datetime 'for a specified timezone', suggesting it should be used when timezone-aware output is needed versus siblings that may default to UTC or local time. However, it does not explicitly state when to use this tool over alternatives like 'formatted_datetime' or 'current_datetime', nor does it provide exclusion criteria or prerequisites.

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/VikasPrajapati1998/DateTime-LocalMCPServer'

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