Skip to main content
Glama

Unix Timestamp Converter (Seconds, Milliseconds, ISO 8601)

timestamp_convert
Read-onlyIdempotent

Convert a Unix timestamp to a date and time, or a date and time to a Unix timestamp. Send timestamp (text of digits, seconds, milliseconds, microseconds or nanoseconds since 1970-01-01 00:00:00 UTC; leave unit as auto and the unit is found from the size of the number) and optionally a zone (IANA name such as America/Chicago) to also get the local time. Or send iso, an RFC 3339 date and time such as 2023-11-14T22:13:20Z or 2023-11-14T16:13:20-06:00 (or without an offset plus zone), and get the epoch in seconds, milliseconds, microseconds and nanoseconds, exact. Flags a number that looks like the wrong unit (a seconds value sent as milliseconds lands in January 1970), a value of 0, and values past the signed 32-bit limit of 2038-01-19. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/timestamp-convert). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "timestamp_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
isoNoDate and time as RFC 3339 / ISO 8601: YYYY-MM-DDTHH:MM:SS[.fraction][Z or +HH:MM]. Without Z or an offset, zone is required. Send this or timestamp, not both.
unitNoUnit of timestamp. auto (default) picks the one unit that puts the date between 1990 and 2100.auto
zoneNoIANA time zone to show the local time in (timestamp) or to read an iso with no offset in. Optional for a timestamp; UTC is always shown.
labelNoOptional label (your own text, echoed back; not a person).
timestampNoUnix timestamp as text of digits (up to 19 digits and 9 decimals), e.g. '1700000000' or '1700000000123'. Send this or iso, not both.
repeated_timeNoOnly for an iso with no offset: when the zone's clock shows that time twice (clocks going back), first (default) or second occurrence.first

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (which already declare readOnly/idempotent/openWorld=false), it discloses free usage, no model or network access, no storage of inputs, key signing with a verification URL, hourly rate limits, and heuristics for suspicious units, zero, and the 2038 limit. This is unusually rich behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core instructions are front-loaded and useful, but the second half is a dense run-on covering answer fields, privacy, signing, and disclaimers. The field-name inventory (ok, verdict, result, rule, does_not, sources, observation, signature, verify) adds some value but inflates length without explaining what each field means.

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?

With no output schema, the description usefully enumerates answer fields and error behavior (ok false with reason, too large, hourly limit), plus input heuristics. It is close to complete for a 6-param conversion tool, though the return-field list is names-only.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description reinforces the auto unit-detection rule and the timestamp/iso exclusivity, but it omits label and repeated_time entirely, so it does not add much beyond the schema.

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 opens with a precise bidirectional verb+resource pair: convert a Unix timestamp to a date/time and vice versa. It names the concrete input forms (digits, seconds through nanoseconds, RFC 3339) so an agent can tell it apart from calendar/zone siblings at a glance.

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?

It clearly states the two supported call patterns, that timestamp-or-iso are mutually exclusive, and that zone is optional for timestamps but required for offset-less iso. It does not explicitly route to alternatives such as time_zone_convert or iso_week_number, so there is no exclusion guidance, but the when-to-use context is clear.

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