81trust / 100

Dev Uuid

by AgentTools in Onchain & crypto

x402 APIPassing, checked 2 h ago

Generate cryptographically random UUIDv4s or time-sortable UUIDv7s from a real CSPRNG, and validate any UUID's format, version and variant bits. Use this when an agent needs to random v4, sortable v7, plus strict validation.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
147 ms typical, 147 ms slowest 5%
Last check
2 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/uuid?op=generate&version=v4"
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%2Fuuid
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/uuid?op=generate&version=v4");
console.log(await res.json());

Example input

{
  "op": "generate",
  "version": "v4"
}

Example output

{
  "result": {
    "answer": "e61e3e82-ec3b-438f-a093-955d0bd13f4e",
    "answerLabel": "New v4",
    "details": [
      {
        "label": "Entropy source",
        "value": "CSPRNG (crypto.getRandomValues)"
      },
      {
        "label": "Version",
        "value": "4 (122 random bits)"
      }
    ],
    "steps": [
      "122 random bits from CSPRNG",
      "Set version 4 + RFC variant bits"
    ],
    "value": null
  },
  "tool": "uuid"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402147 ms$0.002
7 h agoPassed402147 ms$0.002