Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

timestamp_convert

Read-only

Convert between Unix timestamps (seconds or milliseconds) and ISO-8601 / UTC date strings. Auto-detects epoch vs. millisecond format. Omit input to get the current time. Returns iso, unix_s, unix_ms, utc, date, and time fields.

Input Schema

NameRequiredDescriptionDefault
inputNoUnix timestamp (number, seconds or ms) or ISO date string. Omit to get the current time.

Output Schema

NameRequiredDescriptionDefault
isoNo
utcNo
dateNo
timeNo
unix_sNo
unix_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "input": 0
      +  }
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "date": {
      +    "type": "string"
      +  },
      +  "iso": {
      +    "type": "string"
      +  },
      +  "time": {
      +    "type": "string"
      +  },
      +  "unix_ms": {
      +    "type": "number"
      +  },
      +  "unix_s": {
      +    "type": "number"
      +  },
      +  "utc": {
      +    "type": "string"
      +  }
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description complements them by disclosing the return field set (iso, unix_s, unix_ms, utc, date, time) and the auto-detection behavior. The 'omit input returns current time' clause also coherently explains the idempotentHint=false annotation. It does not contradict anything, though it stays silent on edge cases like ambiguous digit counts.

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 verb and resource, and the four sentences contain no filler. The closing enumeration of return fields is slightly redundant since an output schema already exists, which keeps it from a perfect score.

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 annotations covering the safety profile, a documented parameter, and an output schema for return values, the description supplies everything needed to call it correctly. Minor gaps remain around timezone assumptions for ISO strings lacking an offset and unit-ambiguity rules, but these do not block correct invocation.

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 timestamp (number, seconds or ms) or ISO date string. Omit to get the current time.' The description largely restates this, adding only the millisecond auto-detection nuance, so baseline 3 is appropriate.

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 names a specific verb and conversion pair ('Convert between Unix timestamps ... and ISO-8601 / UTC date strings') and explicitly covers both directions plus unit variants (seconds or milliseconds). Against siblings like number_base_convert or cron_parse, an agent can immediately tell this is the timestamp/date tool.

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 gives concrete usage context: 'Omit input to get the current time' and 'Auto-detects epoch vs. millisecond format,' which tells the agent it need not pre-normalize units. It stops short of naming an alternative or a when-not-to-use condition, so it lands just below the explicit-routing tier.

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.