# AgentTimeTools by LIN Desk

> AgentTimeTools by LIN Desk is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Performs deterministic time/timezone operations for AI agents: convert unix↔ISO, timezone conversion, add/diff durations, and format/parse datetime strings.

## Facts

- Endpoint: POST https://lin-desk-x402.lindesk.workers.dev/v1/timetools?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttimetools-by-lin-desk-c0ee38c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aF-5d0_QIvBeNRqJxtdxP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttimetools-by-lin-desk-c0ee38c4 -d '<json body>'
```

Example prompt: Convert unix timestamp 1700028800 to ISO-8601 in the America/New_York timezone for me.

## When to prefer this

Choose this endpoint when you need deterministic, side-effect-free time arithmetic or datetime conversion without relying on the agent's own clock or external network calls. Ideal for agents that need reproducible results from client-supplied timestamps — timezone conversion, duration math, formatting for display, or parsing user-supplied datetime strings — at a predictable $0.001 per call cost on Base USDC.

## Known failure modes

- Invalid or malformed ISO-8601/unix input returns an error (not charged)
- Unrecognized timezone identifier causes failure
- Missing required `op` or `input` fields returns validation error
- Body exceeding 100 KiB limit is rejected
- Unsupported operation name returns error

## How this service works

Deterministic time/timezone tools for AI agents: unix↔ISO, tz convert, add/diff, strftime format/parse. $0.001 per call, USDC on Base (x402). Max body 100 KiB. No network I/O, no wall-clock now (client supplies times). Failures are not charged.

## Output

Returns a JSON object with the operation name (`op`), a `result` field containing the computed value (ISO string, unix integer, formatted string, or numeric diff), and a `meta` object with chars_in, chars_out, and elapsed_ms for observability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "op",
      "input"
     ],
     "properties": {
      "op": {
       "enum": [
        "add",
        "diff",
        "format",
        "iso2unix",
        "parse",
        "tz_convert",
        "unix2iso"
       ],
       "type": "string",
       "description": "Time tool operation"
      },
      "input": {
       "type": [
        "string",
        "number"
       ],
       "description": "ISO-8601 / unix / datetime string / JSON {a,b} for diff; max 100 KiB"
      },
      "options": {
       "type": "object",
       "description": "Op-specific options (tz, to_tz, from_tz, seconds, days, pattern, timespec, a, b)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "meta": {
       "type": "object",
       "properties": {
        "chars_in": {
         "type": "integer"
        },
        "chars_out": {
         "type": "integer"
        },
        "elapsed_ms": {
         "type": "integer"
        }
       }
      },
      "result": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "unix2iso",
  "meta": {
   "chars_in": 10,
   "chars_out": 25,
   "elapsed_ms": 1
  },
  "result": "2023-11-15T07:13:20+09:00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttimetools-by-lin-desk-c0ee38c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
