Skip to main content
Glama

Agent Data Tools: Utilities

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 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "unix"
  }
}

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. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, and non-idempotent, and the description reinforces this with 'reads or computes only and changes nothing'. It adds genuinely new behavior: automatic seconds/ms detection, the default-now mode, and a billing model ($0.01/call via x402 USDC or card key, first 10 free, failed calls free, repeats not free) that explains the non-idempotent hint. Output shape is described only loosely ('ISO date and time', 'both forms'), which is the minor gap.

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?

Front-loaded with the core conversion capability, then usage, then example, then pricing caveats. The closing 'each call is charged, so repeats are not free' is somewhat redundant with the price sentence already stated, a small amount of waste.

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, no-output-schema tool this covers accepted input forms, auto-detection, the default, the direction of conversion, and cost. Timezone/format details of the returned ISO string are not specified, but nothing essential for correct invocation is missing.

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 description coverage is 100% and the single parameter already documents 'Unix seconds/milliseconds or an ISO date (default now)'. The description restates the same semantics and adds a concrete example value (1792281600), which is helpful but marginal. Baseline 3 applies since the schema does the heavy lifting.

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 pair: convert a Unix timestamp to ISO date/time or an ISO date back to a timestamp, with seconds/milliseconds auto-detected and a no-input 'now' mode. That is precise enough for an agent to know exactly what the tool does. It does not distinguish itself from the sibling 'time' or 'date_info' tools, which is the only thing keeping it below a 5.

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 a concrete usage context and the no-input default implies a 'get current time' path. There are no explicit exclusions or named alternatives (e.g., when to prefer 'time' or 'date_info'), so the guidance is clear but not routing-complete.

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