AgentPMT
Data Format Validation

Data Format Validation

Core Utility

Available ActionsEach successful request consumes credits as outlined below.

validate-json5crvalidate-email5crvalidate-uuid5crvalidate-base645crvalidate-url5crvalidate-ipv45crvalidate-ipv65crvalidate-mac-address5crvalidate-credit-card5crvalidate-phone5crvalidate-hex-color5crvalidate-isbn5crvalidate-iban5crvalidate-regex5crvalidate-json-syntax5cr

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.

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

Actions(15)

validate-json5cr1 param(1 required)

Validate whether a string is well-formed JSON. Returns valid status and parsed type.

Validate whether a string is well-formed JSON. Returns valid status and parsed type.

textrequiredstring

The JSON string to validate.

validate-email5cr1 param(1 required)

Validate an email address format (RFC 5322 simplified). Returns valid status, local_part, and domain.

Validate an email address format (RFC 5322 simplified). Returns valid status, local_part, and domain.

textrequiredstring

The email address to validate.

validate-uuid5cr1 param(1 required)

Validate a UUID string (versions 1-5, RFC 4122). Returns valid status, version, and variant.

Validate a UUID string (versions 1-5, RFC 4122). Returns valid status, version, and variant.

textrequiredstring

The UUID string to validate.

validate-base645cr1 param(1 required)

Validate whether a string is properly Base64-encoded. Returns valid status and decoded byte length.

Validate whether a string is properly Base64-encoded. Returns valid status and decoded byte length.

textrequiredstring

The Base64 string to validate.

validate-url5cr1 param(1 required)

Validate a URL format (checks for scheme and domain). Returns valid status, scheme, domain, path, query and fragment flags.

Validate a URL format (checks for scheme and domain). Returns valid status, scheme, domain, path, query and fragment flags.

textrequiredstring

The URL to validate.

validate-ipv45cr1 param(1 required)

Validate an IPv4 address and classify it. Returns valid status, octets, is_private, is_loopback.

Validate an IPv4 address and classify it. Returns valid status, octets, is_private, is_loopback.

textrequiredstring

The IPv4 address to validate.

validate-ipv65cr1 param(1 required)

Validate an IPv6 address and classify it. Returns valid status, is_loopback, is_link_local, compressed flag.

Validate an IPv6 address and classify it. Returns valid status, is_loopback, is_link_local, compressed flag.

textrequiredstring

The IPv6 address to validate.

validate-mac-address5cr1 param(1 required)

Validate a MAC address (colon or hyphen separated). Returns valid status, format, octets, canonical form.

Validate a MAC address (colon or hyphen separated). Returns valid status, format, octets, canonical form.

textrequiredstring

The MAC address to validate (XX:XX:XX:XX:XX:XX or XX-XX-XX-XX-XX-XX).

validate-credit-card5cr1 param(1 required)

Validate a credit card number using the Luhn algorithm. Detects card type (Visa, Mastercard, Amex, Discover). Spaces and hyphens are stripped.

Validate a credit card number using the Luhn algorithm. Detects card type (Visa, Mastercard, Amex, Discover). Spaces and hyphens are stripped.

textrequiredstring

The credit card number to validate.

validate-phone5cr1 param(1 required)

Validate a phone number format (10-15 digits, optional international prefix). Parentheses, spaces, hyphens, dots are stripped.

Validate a phone number format (10-15 digits, optional international prefix). Parentheses, spaces, hyphens, dots are stripped.

textrequiredstring

The phone number to validate.

validate-hex-color5cr1 param(1 required)

Validate a hexadecimal color code (#RGB or #RRGGBB). Returns valid status, format, and RGB values or expanded form.

Validate a hexadecimal color code (#RGB or #RRGGBB). Returns valid status, format, and RGB values or expanded form.

textrequiredstring

The hex color string to validate (e.g., '#FF5733' or '#F00').

validate-isbn5cr1 param(1 required)

Validate an ISBN-10 or ISBN-13 with checksum verification. Hyphens and spaces are stripped.

Validate an ISBN-10 or ISBN-13 with checksum verification. Hyphens and spaces are stripped.

textrequiredstring

The ISBN to validate.

validate-iban5cr1 param(1 required)

Validate an International Bank Account Number (mod-97 checksum). Spaces are stripped. Returns country_code, check_digits, BBAN.

Validate an International Bank Account Number (mod-97 checksum). Spaces are stripped. Returns country_code, check_digits, BBAN.

textrequiredstring

The IBAN to validate.

validate-regex5cr1 param(1 required)

Validate whether a string is a compilable regular expression. Returns valid status and specific regex error if invalid.

Validate whether a string is a compilable regular expression. Returns valid status and specific regex error if invalid.

textrequiredstring

The regex pattern to validate.

validate-json-syntax5cr1 param(1 required)

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

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

textrequiredstring

The JSON string to validate.

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

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

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 694ddd46ecea2b5619a17bda ("Data Format Validation"). Then call the same tool with action 'call_tool', tool_id 694ddd46ecea2b5619a17bda, and the parameters needed for my request.

Workflows Using This Tool

Looking for help integrating AI into your business? Set up a free consultation.

Data Format Validation by Apoth3osis | AgentPMT