Skip to main content
Glama

Agent Data Tools: Utilities

Unix timestamp converter

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.003/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

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds real value on top: automatic unit detection, no-input default behavior, and an explicit cost model (priced per call, failed calls free, repeats not free) that also reconciles with the unusual idempotentHint=false on a pure converter.

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 behavior, then usage, then example, then cost. Every sentence is short and earns its place, though the pricing sentence is dense billing detail that could sit in a separate note.

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

Completeness5/5

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

There is no output schema, and the description compensates by describing both return shapes (ISO date/time, or a Unix timestamp) as well as the current-time fallback. Nothing an agent needs to invoke this correctly is missing.

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 100% for the single optional parameter, so the baseline is 3. The description goes beyond the schema by giving a concrete example (value=1792281600) and restating that seconds or milliseconds are auto-detected and that the default is now.

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 (convert) and resource (Unix timestamp) with the bidirectional scope spelled out: timestamp→ISO and ISO→timestamp. It also explains automatic seconds/milliseconds detection, which separates it cleanly from siblings like date_info, date_add, and 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 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 clear context for reaching for this tool, and the no-input case (returns current time in both forms) is stated. It does not name alternative siblings or state exclusions, so it stops short of a 5.

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.