Skip to main content
Glama

ISO 8601 Duration Converter

dev_iso_duration

Convert ISO 8601 durations (P1DT2H30M) to total seconds and back — including weeks — with a component breakdown. The unambiguous duration math agents should use for retries, TTLs and scheduling instead of mental arithmetic. Use this when an agent needs to durations ↔ seconds, exact in both directions. x402 price $0.01/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesDuration or seconds
targetYesConvert to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It discloses bidirectional exactness, week support, component breakdown output, and a per-call x402 price — all useful. But it says nothing about error handling for malformed durations, precision/overflow limits, or response shape beyond the phrase 'component breakdown'.

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

Conciseness3/5

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

The core purpose is front-loaded, but the text is padded with marketing ('The unambiguous duration math agents should use') and a garbled fragment ('Use this when an agent needs to durations ↔ seconds'). The price line is useful; the rest could be trimmed.

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 two-parameter converter with no output schema, the description covers input format, example, both conversion directions, output shape (seconds plus component breakdown), and pricing. The main gap is error/invalid-input behavior, but the essentials for correct invocation are present.

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 coverage is 100% and the enum target (seconds/iso) is self-explanatory, so the schema does the heavy lifting. The description adds marginal value via the example duration and the 'including weeks' scope note, but nothing about accepted input formats or units. 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?

States a specific verb (Convert) and resource (ISO 8601 durations) with concrete example input (P1DT2H30M) and both directions of conversion. The scope note (including weeks, component breakdown) lets an agent distinguish it from sibling converters like unix_timestamp_converter or number_base_converter.

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?

Gives clear use context: 'for retries, TTLs and scheduling instead of mental arithmetic.' That indirectly frames when to reach for it versus doing math, but it names no sibling alternatives or exclusions, so it falls short of a full when/when-not statement.

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