Skip to main content
Glama

Epoch / Unix Timestamp Converter API - s/ms/us/ns, ISO 8601, timezones & batch

epoch_converter
Read-onlyIdempotent

Convert Unix epoch timestamps (seconds, milliseconds, microseconds, nanoseconds, hex, WebKit/Chrome, LDAP/FILETIME) to ISO 8601, RFC 2822, and any IANA timezone — or convert human dates back to Unix timestamps. Supports single values, batch arrays up to 1,000 items, and optional elapsed duration between two timestamps. 0 AI, pure stdlib deterministic, < 5 ms, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/epoch-converter.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "input": "1767225599",
      "timezone": "America/New_York"
    },
    "name": "epoch_converter"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoInput precision: auto, s, ms, us, ns, webkit, or ldapauto
inputNoUnix timestamp (s/ms/us/ns/hex), ISO 8601 or RFC 2822 date string, or 'now'1767225599
inputsNoOptional batch list of up to 1,000 timestamps or dates
timezoneNoTarget IANA timezone (e.g. UTC, America/New_York, Europe/Berlin, Asia/Tokyo)UTC
compareToNoOptional 2nd timestamp or date to compute exact duration difference

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description adds substantive traits beyond them: nothing stored, deterministic stdlib, <5ms latency, 1,000-item batch cap, 5 free calls/day per IP, and requiring an X-API-Key or x402 payment. Auth and rate-limit disclosure is exactly the kind of context annotations cannot carry.

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?

Two dense sentences with the capability front-loaded and limits/auth on the paid tail, so an agent gets the essentials first. The pricing URL and per-call cost are somewhat promotional but still relevant to access, so nothing is egregiously wasteful.

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 5-param, zero-required converter with no output schema, the description covers input formats, units, batch limits, and output formats (ISO 8601, RFC 2822, IANA). It stops short of describing the response shape (field names, how batch results or the duration delta are returned), which an agent must discover at call time.

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 coverage is already 100%, but the description disambiguates values the schema only lists tersely — e.g., expanding 'webkit' as WebKit/Chrome and 'ldap' as LDAP/FILETIME, and framing compareTo as an exact elapsed-duration computation. That adds real meaning on top of the enum names.

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?

States a specific verb+resource ('Convert Unix epoch timestamps') and enumerates both directions (timestamps to ISO 8601/RFC 2822/IANA, and human dates back to Unix), plus the accepted input precisions. This clearly separates it from generic siblings like time_zone_converter or case_converter.

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?

Context for use is clear: convert timestamps, batch up to 1,000, or compute elapsed duration via a second timestamp. It does not explicitly name an alternative tool or a when-not-to-use condition, so it falls short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources