Skip to main content
Glama

Military Time Converter API - 24-hour & 12-hour AM/PM, Zulu, shift duration & batch

military_time_converter
Read-onlyIdempotent

Convert 24-hour / military time (1430, 14:30, 0000, 1430Z) to 12-hour AM/PM time and back. Returns 4-digit military time, ISO 24-hour, 12-hour AM/PM, spoken military phrasing, optional Zulu (UTC) / IANA timezone conversion, and overnight shift duration. Single or batch up to 1,000 items. 0 AI, pure stdlib deterministic, < 5 ms, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/military-time-converter.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "input": "1430",
      "compareTo": "2245"
    },
    "name": "military_time_converter"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoTime string in military/24h (1430, 14:30, 1430Z) or 12h (2:30 PM) format1430
inputsNoOptional batch list of up to 1,000 times
compareToNoOptional end time to calculate shift duration (handles overnight shifts)
toTimezoneNoOptional target IANA timezone (e.g. UTC, Europe/London)
fromTimezoneNoOptional source IANA timezone (e.g. America/New_York, UTC)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already mark this read-only, idempotent, and open-world, and the description goes well beyond them: batch cap of 1,000 items, deterministic stdlib execution under 5 ms, no data stored, a 5-calls/day free per-IP limit, and two paid auth paths (X-API-Key or x402). These are exactly the operational facts an agent needs before calling.

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 purpose is front-loaded in the first sentence, followed by return formats, then operational/pricing detail. It is dense but mostly earns its space; the pricing URL and per-call cost sentence is heavier than an agent needs for invocation decisions.

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 no output schema, the description usefully enumerates what is returned (4-digit military time, ISO 24-hour, 12-hour AM/PM, spoken phrasing, Zulu/IANA conversion, shift duration), which compensates well. Minor gaps remain around how batch results are shaped relative to a single result.

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 every parameter is already documented, and the description largely restates the same formats, batch size, and timezone handling. It adds only marginal value, notably that overnight shifts are handled for compareTo.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — converting 24-hour/military time to 12-hour AM/PM and back — and enumerates the accepted forms (1430, 14:30, 0000, 1430Z). It is clear what the tool does, but it does not distinguish itself from siblings like time_zone_converter or time_calculator even though it overlaps with both on timezone handling and shift duration.

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?

Usage is implied by the listed formats and by the optional compareTo/toTimezone/fromTimezone features, so an agent can infer when it fits. There is, however, no explicit 'use this instead of X' guidance and no stated exclusions, despite overlapping siblings in the catalog.

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