Skip to main content
Glama

timestamp_convert

Read-only

Convert Unix seconds, Unix milliseconds, RFC 3339 or a YYYY-MM-DD date into normalized UTC forms. Use it to compare or store times from different APIs or logs; output is always UTC, with no conversion to other time zones. With from auto (default), an integer of 13 or more digits is read as milliseconds, a shorter one as seconds, and YYYY-MM-DD as a UTC date. Runs without network access and does not store your input. Returns input_format, rfc3339, unix, unix_ms, date_utc, time_utc and weekday; an unparseable value is an error.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
fromNoInput format. Default auto.
valueYesTimestamp value.
l402_proofNoL402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / l402_proof / description
      Previous value: -"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 5 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."New value: +"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."
  2. Changed1 schema field changed
    • addedInput schema / properties / l402_proof
      Added value: +{
      +  "description": "L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 5 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/destructiveHint, and the description adds real behavioral context: no network access, no input storage, always-UTC output, and deterministic error behavior for unparseable values. The auto-detection heuristic (13+ digits treated as milliseconds) is disclosed before it can surprise the caller. Minor tension exists between "runs without network access" and the L402 payment flow documented in the schema, but that concerns the billing path rather than the conversion itself.

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?

Purpose and format list are front-loaded, followed by usage context, then inference rules, then guarantees and return fields – a logical order with no filler. The return-field enumeration is slightly list-like but earns its place since no output schema exists.

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 3-parameter tool with full schema coverage and no output schema, the description covers purpose, inference behavior, guarantees, and return shape, which is enough to call it correctly. The only omission is any mention of the L402 paid-call flow, which is left entirely to the schema's parameter description.

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%, so the baseline is 3, but the description genuinely adds meaning: the schema only says "Input format. Default auto." while the description explains what `auto` actually infers for each input shape. It falls short of 5 because the explicit `unix`, `unix_ms`, `rfc3339` and `date` enum values are not individually described.

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 definition names a specific verb and resource ("Convert Unix seconds, Unix milliseconds, RFC 3339 or a YYYY-MM-DD date into normalized UTC forms") and enumerates the accepted inputs, so the agent knows exactly what the tool does. No sibling in the catalog performs timestamp conversion, so there is no ambiguity to resolve against alternatives.

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 it to compare or store times from different APIs or logs" gives a concrete use context, and the note that output is always UTC with no time-zone conversion tells the agent when the tool is *not* sufficient. There is no explicit exclusion clause naming an alternative tool, which keeps this below 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.

Resources