Skip to main content
Glama
mcp-server-ts

mcp-server-ts

by lditzel94

Convert epoch

convert_epoch
Read-only

Convert a Unix timestamp in milliseconds to ISO-8601 UTC and local time for a given IANA time zone.

Instructions

Convert a Unix timestamp in milliseconds to ISO-8601 UTC and to local time in a given time zone.

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": {
      "epochMs": "<epochMs>"
    },
    "name": "convert_epoch"
  }
}

Input Schema

NameRequiredDescriptionDefault
epochMsYesUnix timestamp in milliseconds, e.g. a Kafka record timestamp
timeZoneNoIANA time zone, e.g. America/Argentina/Buenos_AiresUTC

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is clear. The description adds useful behavior by stating the dual output formats (ISO-8601 UTC and local time), but it omits error handling, timezone validation, and precision details.

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

Conciseness5/5

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

A single, front-loaded sentence with no redundant wording. It conveys the conversion target and outputs efficiently.

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 simple read-only conversion tool with full schema coverage and no output schema, the description is nearly complete. It explains the return formats but does not specify the response shape or error behavior, a minor gap.

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%, so the schema already fully documents epochMs and timeZone. The description only restates that the timestamp is in milliseconds and the time zone is provided, adding no new semantics 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 uses a specific verb ('Convert') and resource ('Unix timestamp in milliseconds'), and names the exact outputs: ISO-8601 UTC and local time in a time zone. An agent can immediately tell what the tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no explicit when-to-use or when-not-to-use guidance, nor does it name alternatives. Usage is only implied by the input requirement (milliseconds) and the time zone parameter; there is no statement about using this for epoch conversion versus other date tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools