Skip to main content
Glama

convert_epoch

Converts epoch timestamps between ISO, MJD, JD, GPS seconds, GPS nanoseconds, or GPS date formats, and across time systems like UTC, GPS, TAI, TT, UT1.

Instructions

Convert an epoch between time representations and time systems.

Supports ISO strings, MJD, JD, GPS seconds, GPS nanoseconds, and GPS date (week,seconds). Time systems: UTC, GPS, TAI, TT, UT1.

Args: value: The epoch value as a string. For ISO: '2024-01-01T12:00:00Z'. For MJD/JD/GPS: numeric string. For gps_date: 'week,seconds'. input_format: Input format - one of: iso, mjd, jd, gps_seconds, gps_nanoseconds, gps_date. input_time_system: Time system of input (ignored for iso and gps_* formats). One of: UTC, GPS, TAI, TT, UT1. output_format: Output format - one of: iso, iso_precise, string, mjd, jd, gps_seconds, gps_nanoseconds, gps_date. output_time_system: Time system for output. Empty string means same as input (or GPS for gps_* inputs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
input_formatNoiso
output_formatNoiso
input_time_systemNoUTC
output_time_systemNo
Behavior3/5

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

With no annotations, the description must convey all behavioral traits. It explains the conversion process and parameter options but lacks details on error handling, input validation, or precision limits. The behavior is generally well-described but not exhaustive.

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?

The description is well-organized with clear sections for Args and parameter details. While comprehensive, it could be slightly more concise without losing essential information.

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?

Given the lack of output schema and low schema coverage, the description covers inputs thoroughly but does not describe the return value format or error scenarios. It is mostly complete for practical use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description compensates fully. It explains each parameter with examples and allowed values, adding significant meaning beyond the schema's titles and defaults.

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 clearly states 'Convert an epoch between time representations and time systems.' It lists supported formats and time systems, making the tool's purpose distinct from sibling tools like convert_anomaly or convert_position.

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?

The description provides examples for each parameter and lists all supported formats/time systems, aiding usage. However, it does not explicitly state when to use this tool versus alternatives or mention any prerequisites or constraints.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/duncaneddy/brahe-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server