Skip to main content
Glama

Unix timestamp converter: convert a Unix timestamp to a date and time, or a date to a timestamp

unix
Read-only

Convert a Unix timestamp (seconds or milliseconds, detected automatically) to ISO date and time, or an ISO date to a Unix timestamp. Without input, returns the current time in both forms. Use to read timestamps in logs and APIs. Example: value=1792281600. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
valueNoUnix seconds/milliseconds or an ISO date (default now)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / value / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "boolean"
      +]
  2. Added
  3. Removed
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive/non-idempotent, and the description usefully adds that unit detection is automatic, that omitting input returns now, and that every call is billed (failed ones free) — which explains the non-idempotent hint. It stops short of describing output shape or precision/timezone handling.

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?

Conversion semantics and the no-input default are front-loaded, then usage, then an example. The pricing sentence is somewhat promotional but is genuinely decision-relevant since calls cost money.

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 one-parameter pure-compute tool with no output schema, the description covers input forms, defaults, unit detection, and cost. Minor gaps remain around output format details and timezone assumptions.

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?

With a single parameter at 100% schema coverage, the schema already carries the baseline. The description still adds real meaning: seconds vs milliseconds are auto-detected, ISO date strings are accepted, and a concrete example (value=1792281600) is supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with both directions spelled out (timestamp→ISO date, ISO date→timestamp) plus the no-input default, so the operation is unambiguous. It never names the nearby siblings (date_info, date_add, date_diff), so an agent must infer the boundary itself.

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?

"Use to read timestamps in logs and APIs" gives concrete invocation context, and the no-input case is explicitly defined. There is no when-not guidance and no explicit alternative named for date arithmetic versus simple conversion.

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.