Home / MCP Tools / ISO 8601 Duration Parser
Live MCP toolmath

ISO 8601 Duration Parser

Parse an ISO 8601 duration literal (e.g. 'P1Y6M4DT12H30M5S') into years/months/weeks/days/hours/minutes/seconds, plus an exact total_seconds when no year/month is present.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
durationstringrequiredISO 8601 duration string, e.g. 'P3Y6M4DT12H30M5S'

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "iso8601_duration_parse", "arguments": {"duration": "example"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/iso8601_duration_parse \
  -H 'Content-Type: application/json' \
  -d '{"duration": "example"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/iso8601_duration_parse from your browser.

Related tools in Math