# Turn a place into a time zone, and compare two clocks

> What is this place's zone actually called, what time is it there, and how far is it from another one?

Each call is paid per use in USDC over x402. No API key and no account: call it, get a 402 with the challenge in the `PAYMENT-REQUIRED` header, pay it and repeat the call.

**Every answer in this chain carries a `next` array with the following calls already built** — route, method, the parameters filled in from what was just found, the price and a full url you can fetch as it is. You do not have to work out the next step; follow `next`.

## The calls, starting at `GET /v1/time/zones`

The numbering is the usual path, not a fixed order: what you actually get offered depends on what each answer finds. A call is only suggested when the data to make it is there, so a suggestion never sends you into a dead end.

1. **`GET /v1/time/zones`** — $0.005 per call. Search the full IANA list and turn a city or a country into the exact zone name the other endpoints expect, with each zone's current offset, abbreviation, local time and DST state.
2. **`GET /v1/time/now`** — $0.002 per call. The current time in the zone you picked, in every form at once: ISO with offset, 24-hour, 12-hour, weekday, unix and UTC — plus whether daylight saving is active now and what the zone's standard offset is.
3. **`GET /v1/time/convert`** — $0.0018 per call. The gap between two of the zones that search returned, with daylight saving applied from the tz database, and a warning when the time asked for does not exist or happens twice because the clocks change that day.

## Worked example

```
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/time/zones?search=asia
```

The answer ends with something like:

```json
{
  "next": [
    {
      "rel": "local-time",
      "why": "...",
      "method": "GET",
      "route": "/v1/time/now",
      "tool": "time_now",
      "params": {
        "zone": "Asia/Aden"
      },
      "url": "https://flat-rate-llm.kikoribera03.workers.dev/v1/time/now?zone=Asia%2FAden",
      "price": "$0.002"
    }
  ]
}
```

Fetch that `url`, pay its 402, and the answer will carry its own `next`. Follow it until `next` comes back empty.

## Where this chain leads out

- /v1/time/zones again — /v1/time/now hands you back every zone sitting at the same offset right now, which is where the two ends of a conversion come from.

## The same thing over MCP

Every route here is also an MCP tool at `POST https://flat-rate-llm.kikoribera03.workers.dev/mcp` — the `tool` field of each `next` entry is its name, and `params` goes straight into `arguments`. `tools/list` and the `catalog` tool are free.
