Validation Utilities

Validate Uuid

Validates UUID strings against RFC 4122 standards, checking format and version compliance. Use via MCP in Cursor or Windsurf, or call GET /v1/validate/uuid with your UUID string. Returns boolean validation status plus detailed format analysis. Supports all UUID versions (1-5) and handles both hyphenated and compact formats.

API Endpoint

GET /v1/validate/uuid

Code Examples

curl "https://tinyfn.io/v1/validate/uuid" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/validate/uuid', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/validate/uuid',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's validation tools:

{
  "mcpServers": {
    "tinyfn-validation": {
      "url": "https://tinyfn.io/mcp/validation",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I validate a UUID using MCP in Cursor?

Call the validate_uuid tool with your UUID string as the parameter. It returns true/false plus format details like version and variant.

What UUID formats does the validator accept?

Accepts standard hyphenated format (8-4-4-4-12) and compact format without hyphens. Validates all UUID versions 1-5 per RFC 4122.

Does UUID validation work with nil/empty UUIDs?

Yes, it correctly identifies nil UUIDs (00000000-0000-0000-0000-000000000000) as valid UUID format while flagging them as nil variant.

What's the difference between UUID validation and generation?

Validation checks existing UUID strings for RFC compliance and extracts metadata. Generation creates new UUIDs with specific versions and entropy.

Can I batch validate multiple UUIDs at once?

The endpoint validates one UUID per request. For batch validation in AI workflows, loop through your UUID array with multiple MCP calls.

Try Validate Uuid Now

Get your free API key and start using Validate Uuid in seconds.

Get Free API Key