Skip to main content
Glama

Current Date and Time

current_datetime
Read-only

Get current date and time with optional IANA timezone. Use to compute ages, durations, or timestamp events accurately.

Instructions

Return the current date and time. Use this whenever you need to know "now", compute ages/durations, or timestamp something — never guess the date.

Args:

  • timezone (string): Optional IANA timezone, e.g. "Europe/Madrid", "America/New_York", "UTC". Defaults to the system timezone.

Returns the ISO timestamp, a human-readable string, and component parts.

Example: { "timezone": "Asia/Tokyo" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timezoneNoIANA timezone (default: system local)
Behavior4/5

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

Annotations already indicate read-only and non-destructive behavior. The description adds valuable information: returns ISO timestamp, human-readable string, and component parts. It also details default timezone behavior, which goes beyond annotations.

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?

Concise, front-loaded purpose, followed by structured args and example. Every sentence serves a purpose without 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 simple tool with one parameter, the description covers purpose, parameter details, output format, and usage context. No missing information given the tool's complexity and lack of output schema.

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 describes timezone as IANA timezone with default system local. The description adds examples of valid timezones and clarifies optionality. This adds meaningful value beyond the schema, which already has 100% coverage.

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 it returns the current date and time, and provides specific use cases like computing ages/durations and timestamping. No other sibling tool provides datetime functionality, so it is well-distinguished.

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?

Explicitly advises to use when needing 'now' and warns against guessing the date. Provides an example. Could be improved by mentioning when not to use (e.g., for past or future dates), but overall clear.

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/highercomve/mcptools'

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