81trust / 100

Dev Natural Date

by AgentTools in AI models & inference

x402 APIPassing, checked 4 h ago

Parse natural-language date and time expressions — "in two weeks", "next friday at 3pm", "dec 25th" — into exact ISO 8601 dates. Deterministic parsing (no LLM guessing); relative expressions resolve against a reference moment you control. Use this when an agent needs to "next friday 3pm" → exact ISO dates.

GET https://agenttools-hub.vercel.app/api/v1/dev/natural-date

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
140 ms typical, 140 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/dev/natural-date?ref=2026-10-01T09%3A00%3A00Z&text=next+friday+at+3pm"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fdev%2Fnatural-date
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/natural-date?ref=2026-10-01T09%3A00%3A00Z&text=next+friday+at+3pm");
console.log(await res.json());

Example input

{
  "ref": "2026-10-01T09:00:00Z",
  "text": "next friday at 3pm"
}

Example output

{
  "result": {
    "answer": "2026-10-09T15:00:00.000Z",
    "answerLabel": "1 date parsed",
    "artifacts": {
      "dates": "[{\"matched\":\"next friday at 3pm\",\"iso\":\"2026-10-09T15:00:00.000Z\"}]"
    },
    "details": [
      {
        "label": "First match span",
        "value": "\"next friday at 3pm\""
      },
      {
        "label": "Reference",
        "value": "2026-10-01T09:00:00.000Z"
      }
    ],
    "steps": [
      "Chrono deterministic parse with fixed reference",
      "1 match(es) extracted"
    ],
    "table": {
      "columns": [
        "#",
        "Matched text",
        "ISO 8601 (UTC)"
      ],
      "rows": [
        [
          1,
          "next friday at 3pm",
          "2026-10-09T15:00:00.000Z"
        ]
      ]
    },
    "value": 1791558000000
  },
  "tool": "natural-date"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402140 ms$0.002