← Back to registry /

Validate Agent

A2A conformant A2A v1.0

Validate Agent

v0.3.0 Validate Agent

Security and data-quality guardrails for AI agents. Stop prompt injections before they reach your LLM. Strip PII to stay compliant. Sanitize untrusted HTML without installing dependencies. Validate emails, URLs, JSON schemas, and SQL syntax in under 10ms. Works from any environment — sandboxed, serverless, or containerized. No API key needed. 200 free requests, then pay-per-call via x402 (USDC on Base).

Launch agent website ↗

Skills

  • Prompt Injection Detection

    Screen untrusted text before it reaches your LLM. Catches obfuscation techniques including homoglyph substitution, zero-width character insertion, base64-encoded payloads, and multilingual attacks. Returns risk level, matched patterns, and cleaned text.

    securityprompt-injectionllmguardrails
  • PII Detection & Redaction

    Find and redact personal data before logging, storing, or forwarding text. Detects SSNs, credit card numbers, emails, phone numbers, IP addresses, dates of birth, passport numbers, and IBANs. NER-powered when available, with regex fallback. Returns span locations and redacted text.

    privacypiiredactioncompliancegdprhipaa
  • HTML/XSS Sanitization

    Remove XSS vectors from untrusted HTML without installing a sanitizer locally. Powered by nh3 (Rust). Strips script tags, event handlers, data URIs, and other injection vectors. Returns clean HTML plus threat metadata.

    securitysanitizationhtmlxss
  • SQL Syntax & Injection Check

    Validate SQL syntax and detect injection patterns before executing queries. Supports 30+ dialects via sqlglot including PostgreSQL, MySQL, BigQuery, Snowflake, and SQLite. Catches tautologies, UNION attacks, and stacked queries.

    securityvalidationsqlinjection
  • Data Format Validation

    Validate and normalize emails, URLs, UUIDs, phone numbers, and IPv4 addresses. RFC-compliant checks with normalization output. Ideal for agents in sandboxed environments that cannot install validation libraries.

    validationemailurluuidphoneipv4data-quality
  • JSON Schema Validation

    Validate any JSON data against a JSON Schema definition. Supports Draft 4, 6, 7, 2019-09, and 2020-12. Use to verify LLM-generated structured output matches expected format.

    validationjsonschemastructured-output
  • Batch Validation

    Validate up to 1,000 values in a single request. Mix types freely — emails, URLs, UUIDs, phones, IPv4 in one call. Returns per-item results with a summary. Cheaper per-item than individual calls.

    validationbatchbulkdata-quality

Integration

import asyncio
from a2a_registry import AsyncRegistry

async def main():
    async with AsyncRegistry() as registry:
        agent = await registry.get_by_id("5f31a5c5-60f9-4336-b7a6-361f89bb8338")
        client = await agent.async_connect()
        print(f"Connected to {agent.name}")

asyncio.run(main())