{"uid":"cap_gY3_JjeVZAvzOOI73ncPQ","slug":"agent-forge-duration-parser-57367ac2","name":"Agent Forge Duration Parser","description":"Hash and unit utilities for AI agents: SHA-256, SHA-1, HMAC-SHA256, stable JSON fingerprint, ETH/Gwei/Wei conversion, human bytes, and duration parsing. Pay-per-request USDC via x402. No API keys, no accounts.","url":"https://agent-forge.annushka1190.workers.dev/v1/duration","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C-Wgu8z1CbPJhJayWY1P4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a human-readable duration string (e.g. '2 hours 30 minutes') into structured numeric values via a pay-per-request USDC API.","exampleAgentPrompt":"Parse the duration string '2 hours 45 minutes 30 seconds' into milliseconds and seconds so I can use it in my scheduling logic.","exampleUseCases":[{"title":"Scheduling automation duration parsing","prompt":"I have a cron job description that says 'run every 1 hour 30 minutes' — can you parse that duration string into milliseconds so I can plug it into my scheduler?"},{"title":"Log retention period conversion","prompt":"Our log retention policy is written as '90 days 12 hours' — parse that into seconds so I can set the TTL value in our storage config."},{"title":"SLA timeout threshold calculation","prompt":"My SLA says response time must be under '2 minutes 30 seconds' — convert that duration string to milliseconds so I can set the timeout in my API client."}],"resultDescription":"Returns a JSON object with ok: true and the parsed duration broken into numeric components such as milliseconds, seconds, minutes, and hours derived from the input human-readable duration string.","failureModes":["Unparseable duration string returns an error or unexpected result","Missing 'input' body field causes a 400-level validation error","Malformed JSON body results in a parsing failure","Payment not provided or insufficient USDC causes a 402 Payment Required response","Ambiguous duration formats (e.g. locale-specific) may be misinterpreted"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-account-required way to parse human-readable duration strings into machine-readable numeric values, especially in agent pipelines that already use x402 USDC micropayments. Prefer it over custom parsing logic when you want a reliable, hosted utility that handles varied natural language duration formats without maintaining your own parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:35:27.674Z","isFirstParty":false}