Date & Time
Parse ISO 8601 durations, validate ISO 8601-2 extensions, run calendar-true arithmetic, sort by real length at an anchor, and diff datetimes.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/iso-8601-duration-parser-arithmetic-workbench' \
-H 'Content-Type: application/json' \
-d '{"mode":"parse","durationsInput":"P1Y2M3DT4H5M6S\nP3W\nPT36H\n-PT30M\nP0D\nP2W3D","anchorDatetime":"2026-01-15T00:00:00Z","datetimeA":"2026-01-01T00:00:00Z (diff mode)","datetimeB":"2026-02-15T12:30:00Z (diff mode)"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/iso-8601-duration-parser-arithmetic-workbench| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | Yes | — |
| durationsInput | textarea | No | — |
| anchorDatetime | text | No | — |
| datetimeA | text | No | — |
| datetimeB | text | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-iso-8601-duration-parser-arithmetic-workbench": {
"name": "iso-8601-duration-parser-arithmetic-workbench",
"description": "Parse ISO 8601 durations, validate ISO 8601-2 extensions, run calendar-true arithmetic, sort by real length at an anchor, and diff datetimes.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=iso-8601-duration-parser-arithmetic-workbench",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "iso-8601-duration-parser-arithmetic-workbench",
"arguments": {
"mode": "parse",
"durationsInput": "P1Y2M3DT4H5M6S\nP3W\nPT36H\n-PT30M\nP0D\nP2W3D",
"anchorDatetime": "2026-01-15T00:00:00Z",
"datetimeA": "2026-01-01T00:00:00Z (diff mode)",
"datetimeB": "2026-02-15T12:30:00Z (diff mode)"
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]