# Data Format Validation

## Links

- Product page URL: https://www.agentpmt.com/marketplace/data-format-validation
- Product markdown URL: https://www.agentpmt.com/marketplace/data-format-validation?format=agent-md
- Product JSON URL: https://www.agentpmt.com/marketplace/data-format-validation?format=agent-json

## Overview

- Product ID: 694ddd46ecea2b5619a17bda
- Vendor: Apoth3osis
- Type: core utility
- Unit type: request
- Price: 500 credits
- Categories: Data Science, Data Processing, Text Processing & Manipulation, Data Validation & Verification, Text Extraction & Parsing, Escaping & Sanitization, Regex & Pattern Matching, Diff & Comparison
- Generated at: 2026-04-15T18:20:30.014Z

### Page Description

Data format validation utility that checks whether input strings conform to standard formats and specifications across a wide range of common data types. It validates JSON syntax and reports parsing errors with specific error locations, verifies email addresses against RFC-compliant patterns while extracting local and domain parts, and checks UUIDs for proper formatting with version detection. Network-related validation includes IPv4 addresses with octet range checking and private or loopback detection, IPv6 addresses with compression and link-local identification, MAC addresses in both colon and hyphen-separated formats, and URLs with scheme and domain parsing. Financial validation covers credit card numbers using the Luhn checksum algorithm with automatic card type detection for Visa, Mastercard, American Express, and Discover, as well as IBAN validation with country code extraction and BBAN parsing using the mod-97 checksum. Additional validators handle phone numbers with international format detection, hexadecimal color codes in both short and long formats with RGB value extraction, ISBN-10 and ISBN-13 with checksum verification, base64 encoding with decoded length reporting, and regex pattern syntax checking. All validators return detailed results including validity status, parsed components, and specific error messages for invalid input.

### Agent Description

Validate data formats: JSON, email, UUID, IPv4/6, MAC, credit card (Luhn), IBAN, phone, hex color, ISBN, Base64, regex patterns.

## Details Tab

### Details

Data format validation utility that checks whether input strings conform to standard formats and specifications across a wide range of common data types. It validates JSON syntax and reports parsing errors with specific error locations, verifies email addresses against RFC-compliant patterns while extracting local and domain parts, and checks UUIDs for proper formatting with version detection. Network-related validation includes IPv4 addresses with octet range checking and private or loopback detection, IPv6 addresses with compression and link-local identification, MAC addresses in both colon and hyphen-separated formats, and URLs with scheme and domain parsing. Financial validation covers credit card numbers using the Luhn checksum algorithm with automatic card type detection for Visa, Mastercard, American Express, and Discover, as well as IBAN validation with country code extraction and BBAN parsing using the mod-97 checksum. Additional validators handle phone numbers with international format detection, hexadecimal color codes in both short and long formats with RGB value extraction, ISBN-10 and ISBN-13 with checksum verification, base64 encoding with decoded length reporting, and regex pattern syntax checking. All validators return detailed results including validity status, parsed components, and specific error messages for invalid input.

### Actions

- `validate-json` (5 credits): Validate whether a string is well-formed JSON. Returns valid status and parsed type.
- `validate-email` (5 credits): Validate an email address format (RFC 5322 simplified). Returns valid status, local_part, and domain.
- `validate-uuid` (5 credits): Validate a UUID string (versions 1-5, RFC 4122). Returns valid status, version, and variant.
- `validate-base64` (5 credits): Validate whether a string is properly Base64-encoded. Returns valid status and decoded byte length.
- `validate-url` (5 credits): Validate a URL format (checks for scheme and domain). Returns valid status, scheme, domain, path, query and fragment flags.
- `validate-ipv4` (5 credits): Validate an IPv4 address and classify it. Returns valid status, octets, is_private, is_loopback.
- `validate-ipv6` (5 credits): Validate an IPv6 address and classify it. Returns valid status, is_loopback, is_link_local, compressed flag.
- `validate-mac-address` (5 credits): Validate a MAC address (colon or hyphen separated). Returns valid status, format, octets, canonical form.
- `validate-credit-card` (5 credits): Validate a credit card number using the Luhn algorithm. Detects card type (Visa, Mastercard, Amex, Discover). Spaces and hyphens are stripped.
- `validate-phone` (5 credits): Validate a phone number format (10-15 digits, optional international prefix). Parentheses, spaces, hyphens, dots are stripped.
- `validate-hex-color` (5 credits): Validate a hexadecimal color code (#RGB or #RRGGBB). Returns valid status, format, and RGB values or expanded form.
- `validate-isbn` (5 credits): Validate an ISBN-10 or ISBN-13 with checksum verification. Hyphens and spaces are stripped.
- `validate-iban` (5 credits): Validate an International Bank Account Number (mod-97 checksum). Spaces are stripped. Returns country_code, check_digits, BBAN.
- `validate-regex` (5 credits): Validate whether a string is a compilable regular expression. Returns valid status and specific regex error if invalid.
- `validate-json-syntax` (5 credits): Alias for validate-json. Validates whether a string is well-formed JSON.

### Use Cases

JSON validation, JSON syntax check, JSON parsing error detection, email validation, email format verification, RFC email check, UUID validation, UUID version detection, UUID format check, base64 validation, base64 encoding check, base64 decode verification, URL validation, URL format check, URL parsing, domain extraction, IPv4 validation, IP address check, IPv4 format verification, private IP detection, loopback address detection, IPv6 validation, IPv6 format check, compressed IPv6 detection, MAC address validation, network address verification, MAC format check, credit card validation, Luhn algorithm check, card number verification, card type detection, Visa validation, Mastercard validation, payment card check, phone number validation, international phone format, phone format verification, hex color validation, color code check, RGB hex verification, CSS color validation, ISBN validation, ISBN-10 check, ISBN-13 verification, book identifier validation, IBAN validation, bank account number check, international banking validation, BBAN extraction, regex validation, regular expression syntax check, pattern validation, input validation, form validation, data quality check, format verification, user input validation, API input validation, data sanitization check, automated validation, AI agent data validation, LLM input verification

### Workflows Using This Tool

#### API Healthcheck (JSON) -> Discord Alert

Ping a JSON API endpoint, validate status + JSON syntax, and post a concise health report (or alert) to Discord.

- Page URL: https://www.agentpmt.com/agent-workflow-skills/api-healthcheck-json-discord-alert
- Markdown URL: https://www.agentpmt.com/agent-workflow-skills/api-healthcheck-json-discord-alert?format=agent-md
- Published: 2026-02-19T19:10:16.218Z

### Related Content

No related content is currently linked to this product.

## Advanced Tab

### DynamicMCP

- Setup page URL: https://www.agentpmt.com/dynamic-mcp
- Claude setup guide: https://www.agentpmt.com/dynamic-mcp?platform=claude#videos
- ChatGPT setup guide: https://www.agentpmt.com/dynamic-mcp?platform=chatgpt#videos
- Cursor setup guide: https://www.agentpmt.com/dynamic-mcp?platform=cursor#videos
- Windsurf setup guide: https://www.agentpmt.com/dynamic-mcp?platform=windsurf#videos

STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections. This lightweight connector routes requests to `https://api.agentpmt.com/mcp`. All tool execution happens in the cloud and the server cannot edit any files on your computer.

```bash
npm install -g @agentpmt/mcp-router
agentpmt-setup
```

### REST API

The live page renders cURL, Python, JavaScript, and Node.js examples. Logged-in users see those examples prefilled with their own API and budget credentials.

- Purchase endpoint: https://api.agentpmt.com/products/purchase
- Authorization format: `Bearer <base64(apiKey:budgetKey)>`

```bash
curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eW91ci1hcGkta2V5LWhlcmU6eW91ci1idWRnZXQta2V5LWhlcmU=" \
  -d '{
    "product_id": "694ddd46ecea2b5619a17bda",
    "parameters": {
      "action": "validate-json",
      "text": "example_text"
    }
  }'
```

### Autonomous Agents

Do not use the abbreviated instructions in this product markdown for wallet-based invocation. Retrieve the full External Agent API markdown document instead.

- External Agent API page URL: https://www.agentpmt.com/external-agent-api
- External Agent API markdown URL: https://www.agentpmt.com/external-agent-api?format=agent-md

### Schema

#### Parameters

- Schema type: actions

```json
{
  "actions": {
    "validate-json": {
      "description": "Validate whether a string is well-formed JSON. Returns valid status and parsed type.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The JSON string to validate.",
          "required": true
        }
      }
    },
    "validate-email": {
      "description": "Validate an email address format (RFC 5322 simplified). Returns valid status, local_part, and domain.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The email address to validate.",
          "required": true
        }
      }
    },
    "validate-uuid": {
      "description": "Validate a UUID string (versions 1-5, RFC 4122). Returns valid status, version, and variant.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The UUID string to validate.",
          "required": true
        }
      }
    },
    "validate-base64": {
      "description": "Validate whether a string is properly Base64-encoded. Returns valid status and decoded byte length.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The Base64 string to validate.",
          "required": true
        }
      }
    },
    "validate-url": {
      "description": "Validate a URL format (checks for scheme and domain). Returns valid status, scheme, domain, path, query and fragment flags.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The URL to validate.",
          "required": true
        }
      }
    },
    "validate-ipv4": {
      "description": "Validate an IPv4 address and classify it. Returns valid status, octets, is_private, is_loopback.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The IPv4 address to validate.",
          "required": true
        }
      }
    },
    "validate-ipv6": {
      "description": "Validate an IPv6 address and classify it. Returns valid status, is_loopback, is_link_local, compressed flag.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The IPv6 address to validate.",
          "required": true
        }
      }
    },
    "validate-mac-address": {
      "description": "Validate a MAC address (colon or hyphen separated). Returns valid status, format, octets, canonical form.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The MAC address to validate (XX:XX:XX:XX:XX:XX or XX-XX-XX-XX-XX-XX).",
          "required": true
        }
      }
    },
    "validate-credit-card": {
      "description": "Validate a credit card number using the Luhn algorithm. Detects card type (Visa, Mastercard, Amex, Discover). Spaces and hyphens are stripped.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The credit card number to validate.",
          "required": true
        }
      }
    },
    "validate-phone": {
      "description": "Validate a phone number format (10-15 digits, optional international prefix). Parentheses, spaces, hyphens, dots are stripped.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The phone number to validate.",
          "required": true
        }
      }
    },
    "validate-hex-color": {
      "description": "Validate a hexadecimal color code (#RGB or #RRGGBB). Returns valid status, format, and RGB values or expanded form.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The hex color string to validate (e.g., '#FF5733' or '#F00').",
          "required": true
        }
      }
    },
    "validate-isbn": {
      "description": "Validate an ISBN-10 or ISBN-13 with checksum verification. Hyphens and spaces are stripped.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The ISBN to validate.",
          "required": true
        }
      }
    },
    "validate-iban": {
      "description": "Validate an International Bank Account Number (mod-97 checksum). Spaces are stripped. Returns country_code, check_digits, BBAN.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The IBAN to validate.",
          "required": true
        }
      }
    },
    "validate-regex": {
      "description": "Validate whether a string is a compilable regular expression. Returns valid status and specific regex error if invalid.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The regex pattern to validate.",
          "required": true
        }
      }
    },
    "validate-json-syntax": {
      "description": "Alias for validate-json. Validates whether a string is well-formed JSON.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The JSON string to validate.",
          "required": true
        }
      }
    }
  },
  "properties": {
    "action": {
      "type": "string",
      "description": "Use 'get_instructions' to retrieve documentation. The validation operation to perform. Available actions: Data Formats (validate-json, validate-base64, validate-uuid, validate-url), Network (validate-ipv4, validate-ipv6, validate-mac-address), Finance (validate-credit-card, validate-iban, validate-isbn), Contact (validate-email, validate-phone), Visual (validate-hex-color), Technical (validate-regex, validate-json-syntax)",
      "required": true,
      "enum": [
        "get_instructions",
        "validate-json",
        "validate-email",
        "validate-uuid",
        "validate-base64",
        "validate-url",
        "validate-ipv4",
        "validate-ipv6",
        "validate-mac-address",
        "validate-credit-card",
        "validate-phone",
        "validate-hex-color",
        "validate-isbn",
        "validate-iban",
        "validate-regex",
        "validate-json-syntax"
      ]
    },
    "text": {
      "type": "string",
      "description": "The text/data to validate. Required for all validation actions. Examples: JSON string for validate-json, email address for validate-email, IPv4 address for validate-ipv4, etc.",
      "required": false
    }
  }
}
```

### Usage Instructions

# Data Format Validation - Instructions

## Overview
Validate data formats including emails, URLs, JSON, UUIDs, IP addresses, credit cards, phone numbers, colors, ISBNs, IBANs, MAC addresses, Base64, and regex patterns. Each action returns whether the input is valid along with format-specific details.

## Parameters
- **action** (required): The validation action to perform.
- **text** (required): The string to validate.

---

## Actions

### validate-json
Validate whether a string is well-formed JSON. Also used by `validate-json-syntax`.

- **text** (required): The JSON string to check.

**Example:**
```json
{ "action": "validate-json", "text": "{\"name\": \"Alice\", \"age\": 30}" }
```
Returns: valid status, parsed type (dict, list, etc.).

---

### validate-email
Validate an email address format (RFC 5322 simplified).

- **text** (required): The email address to validate.

**Example:**
```json
{ "action": "validate-email", "text": "user@example.com" }
```
Returns: valid status, local_part, domain.

---

### validate-uuid
Validate a UUID string (versions 1-5, RFC 4122).

- **text** (required): The UUID to validate.

**Example:**
```json
{ "action": "validate-uuid", "text": "550e8400-e29b-41d4-a716-446655440000" }
```
Returns: valid status, version number, variant.

---

### validate-base64
Validate whether a string is properly Base64-encoded.

- **text** (required): The Base64 string to validate.

**Example:**
```json
{ "action": "validate-base64", "text": "SGVsbG8gV29ybGQ=" }
```
Returns: valid status, decoded byte length.

---

### validate-url
Validate a URL format (checks for scheme and domain).

- **text** (required): The URL to validate.

**Example:**
```json
{ "action": "validate-url", "text": "https://www.example.com/path?q=test#section" }
```
Returns: valid status, scheme, domain, path, has_query, has_fragment.

---

### validate-ipv4
Validate an IPv4 address and classify it.

- **text** (required): The IPv4 address to validate.

**Example:**
```json
{ "action": "validate-ipv4", "text": "192.168.1.1" }
```
Returns: valid status, octets, is_private, is_loopback.

---

### validate-ipv6
Validate an IPv6 address and classify it.

- **text** (required): The IPv6 address to validate.

**Example:**
```json
{ "action": "validate-ipv6", "text": "2001:0db8:85a3:0000:0000:8a2e:0370:7334" }
```
Returns: valid status, is_loopback, is_link_local, compressed.

---

### validate-mac-address
Validate a MAC address (colon or hyphen separated).

- **text** (required): The MAC address to validate.

**Example:**
```json
{ "action": "validate-mac-address", "text": "00:1A:2B:3C:4D:5E" }
```
Returns: valid status, format (colon/hyphen-separated), octets, canonical form.

---

### validate-credit-card
Validate a credit card number using the Luhn algorithm and detect card type.

- **text** (required): The card number (spaces and hyphens are stripped automatically).

**Example:**
```json
{ "action": "validate-credit-card", "text": "4111 1111 1111 1111" }
```
Returns: valid status, card_type (Visa, Mastercard, Amex, Discover), length, last_four.

---

### validate-phone
Validate a phone number format (10-15 digits, optional international prefix).

- **text** (required): The phone number to validate (parentheses, spaces, hyphens, dots are stripped).

**Example:**
```json
{ "action": "validate-phone", "text": "+1 (555) 123-4567" }
```
Returns: valid status, international flag, digit_count, formatted number.

---

### validate-hex-color
Validate a hex color code (#RGB or #RRGGBB).

- **text** (required): The hex color string to validate.

**Example:**
```json
{ "action": "validate-hex-color", "text": "#FF5733" }
```
Returns: valid status, format (short/long), RGB values or expanded form.

---

### validate-isbn
Validate an ISBN-10 or ISBN-13 (with checksum verification).

- **text** (required): The ISBN to validate (hyphens and spaces are stripped).

**Example:**
```json
{ "action": "validate-isbn", "text": "978-0-306-40615-7" }
```
Returns: valid status, format (ISBN-10 or ISBN-13), cleaned ISBN.

---

### validate-iban
Validate an International Bank Account Number (mod-97 checksum).

- **text** (required): The IBAN to validate (spaces are stripped).

**Example:**
```json
{ "action": "validate-iban", "text": "GB29 NWBK 6016 1331 9268 19" }
```
Returns: valid status, country_code, check_digits, BBAN.

---

### validate-regex
Validate whether a string is a compilable regular expression.

- **text** (required): The regex pattern to validate.

**Example:**
```json
{ "action": "validate-regex", "text": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+$" }
```
Returns: valid status. If invalid, returns the specific regex error.

---

### validate-json-syntax
Alias for `validate-json`. Validates whether a string is well-formed JSON.

- **text** (required): The JSON string to check.

**Example:**
```json
{ "action": "validate-json-syntax", "text": "[1, 2, 3]" }
```

---

## Common Workflows

1. **Data ingestion pipeline**: Use `validate-json` to check incoming payloads, `validate-email` for contact fields, and `validate-url` for link fields before processing.
2. **Network configuration audit**: Combine `validate-ipv4`, `validate-ipv6`, and `validate-mac-address` to verify device configuration data.
3. **E-commerce checkout**: Use `validate-credit-card` to pre-check card numbers, `validate-email` for customer email, and `validate-phone` for contact number.
4. **Book catalog management**: Use `validate-isbn` to verify book identifiers during import.
5. **Financial data validation**: Use `validate-iban` to verify bank account numbers in international transactions.

## Important Notes
- All actions require the `text` parameter.
- Whitespace, hyphens, and common separators are automatically stripped where appropriate (credit cards, phone numbers, ISBNs, IBANs, MAC addresses).
- Credit card validation uses the Luhn algorithm and detects Visa, Mastercard, American Express, and Discover.
- UUID validation supports versions 1 through 5.
- Phone validation accepts 10-15 digit numbers with optional international (+) prefix.
- IBAN validation uses the mod-97 checksum per ISO 13616.
- Every response includes a `valid` boolean and a descriptive `message`.

### About The Developer

- Vendor name: Apoth3osis
- Website: apoth3osis.io

We build tools that enable AI agents to excel in the mathematical realm.

Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.

### Frequently Asked Questions

No linked FAQs are currently available.

### Dependencies

This product has no public dependency products.