{"uid":"cap_WFgMm5IzFS0VycUi7nM2w","slug":"agenttools-uuid-generator-validator-b89c412f","name":"AgentTools UUID Generator & Validator","description":"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.","url":"https://agentstoolshub.com/api/v1/dev/uuid?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","required":[],"properties":{"op":{"enum":["generate","validate"],"type":"string","description":"Operation"},"value":{"type":"string","description":"UUID (validate)"},"version":{"enum":["v4","v7"],"type":"string","description":"Version (generate)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kLZhcO76TiB1sY7LmYUTZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate cryptographically secure UUIDv4 (random) or UUIDv7 (time-sortable) identifiers, or validate any UUID's format, version, and variant bits.","exampleAgentPrompt":"Generate a new time-sortable UUIDv7 for me using a cryptographically secure random number generator.","exampleUseCases":[{"title":"New database record unique ID","prompt":"I need to create a fresh UUIDv4 to use as the primary key for a new database row — give me a cryptographically random one."},{"title":"Validate a UUID before storing","prompt":"Can you check if this UUID is valid, and tell me its version and variant bits: '01926b3a-7c5d-7f4e-bcd1-0a1b2c3d4e5f'?"},{"title":"Time-ordered event identifiers","prompt":"Generate a UUIDv7 so I can use it as a sortable, time-stamped identifier for an event log entry."}],"resultDescription":"For generate operations: a newly minted UUID string (v4 random or v7 time-sortable) produced by a CSPRNG. For validate operations: a result indicating whether the supplied UUID string has a valid format, the correct version bits, and correct variant bits, along with parsed details.","failureModes":["Invalid 'op' parameter value returns an error (must be 'generate' or 'validate')","Missing 'value' parameter when op=validate returns an error","Invalid 'version' enum value (must be 'v4' or 'v7') returns an error","Malformed UUID string passed to validate may return a structured invalid result rather than an error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when an agent needs a standards-compliant, cryptographically secure UUID (v4 or v7) rather than a pseudo-random or sequential ID, or when it must strictly validate an existing UUID's format, version, and variant bits in a single call. Prefer UUIDv7 when sortability by creation time matters (e.g. database indexing). Prefer UUIDv4 for pure randomness with no time correlation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:19.264Z","isFirstParty":false,"canonicalSlug":"agenttools-uuid-generator-validator-b89c412f"}