# agent402.tools UUID Generator

> agent402.tools UUID Generator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates one or more UUIDs in version 4 (random) or version 7 (time-ordered) format

## Facts

- Endpoint: GET https://agent402.tools/api/uuid
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-uuid-generator-a27b243a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M6OcJBmy56IPwgE-ccEjl

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 agent402-tools-uuid-generator-a27b243a
```

Example prompt: Generate 5 random UUIDs for me — use version 4.

## When to prefer this

Use this endpoint when you need cryptographically random or time-ordered unique identifiers (UUIDs) without setting up a local library, especially in agentic workflows that require unique IDs for database records, resource creation, or distributed systems. Prefer version 7 when sortability/chronological ordering matters, and version 4 for pure randomness.

## Known failure modes

- Invalid version parameter (not 4 or 7) — returns error response
- Count out of range (less than 1 or greater than 100) — returns error response
- Payment failure or insufficient USDC balance — returns 402 Payment Required

## How this service works

Generate UUIDs. ?version=4 (default, random) or 7 (time-ordered), ?count=1..100.

## Output

Returns a JSON object containing one or more UUIDs (version 4 random or version 7 time-ordered), with count matching the requested amount (1–100).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "count": "5",
   "version": "4"
  }
 }
}
```

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "count": {
       "type": "string",
       "description": "How many (1-100, default 1)"
      },
      "version": {
       "type": "string",
       "description": "4 (random) or 7 (time-ordered)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "uuids"
     ],
     "properties": {
      "uuids": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "version": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "uuids": [
   "0190a1b2-…"
  ],
  "version": 7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-uuid-generator-a27b243a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
