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.

Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.

Parameters

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

Call it over MCP (JSON-RPC 2.0)

curl -s https://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

math
Calendar Age Calculator
Compute calendar-accurate years/months/days between a birth date and an as-of date, plus total days and days until the…
math
Bayes' Theorem Calculator
Posterior probability P(H|E) from a prior, true-positive rate and false-positive rate.
math
Combinatorics Calculator (n!, nPr, nCr)
Factorial, permutations (nPr) and combinations (nCr) for non-negative integers.
math
Date Difference Calculator
Days, weeks, months and business days between two ISO dates.
math
Seeded Dice-Notation Roller
Roll tabletop dice notation ('2d6+3') deterministically from a required seed (sha256-derived, reproducible on any…
math
Duration Breakdown Calculator
Elapsed time between two ISO 8601 timestamps broken into weeks/days/hours/minutes/seconds, plus running totals.