Skip to main content
Glama
hlteoh37

mcp-datetime

by hlteoh37

format_date

Format dates and times with custom patterns such as YYYY-MM-DD HH:mm:ss. Accepts ISO 8601, unix timestamps, or 'now' for current time.

Instructions

Format a date/time using a format string. Tokens: YYYY, MM, DD, HH, mm, ss, SSS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate to format (ISO 8601, unix timestamp, or 'now')
formatYesFormat string, e.g. 'YYYY-MM-DD HH:mm:ss'
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It discloses the token set (YYYY, MM, etc.), which is useful, but it does not mention timezone handling, invalid input behavior, or other edge cases that could affect formatting.

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?

The description is a single sentence with a compact token list. It is front-loaded with the core purpose and wastes no words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool, the description plus schema cover the essential usage. The only notable gap is timezone behavior, but this may not be critical given the token set. No output schema exists, so return value explanation is not required.

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 descriptions already cover both parameters, so the baseline is 3. The description adds the list of valid tokens, which directly enriches the format parameter's meaning and goes beyond the schema example.

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 formats a date/time using a format string, which is a specific verb+resource. It also enumerates the supported tokens, making it distinct from sibling tools like convert_timezone or date_diff.

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 the tool is for formatting dates with custom tokens, but it does not explicitly mention when to prefer this over alternative date tools or any exclusions. No comparison to siblings is provided.

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/hlteoh37/mcp-datetime'

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