Duration Parse
duration_parseParse any duration into seconds and every common format: ISO 8601 (P1DT2H30M, PT1.5S, P2W), clock (1:02:03.5, 02:30), Go / compact (1h30m, 2d4h), and plain English ("an hour and a half", "2.5 days", "3 weeks ago", "90 secs"). Returns total seconds / milliseconds / minutes / hours / days, normalised ISO 8601, H:MM:SS, compact and human text, and flags month / year approximations. Up to 50 inputs per call. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/duration-parse
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "duration_parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Duration text | |
| inputs | No | Batch of durations (instead of input) |