{"version":1,"x402Version":2,"name":"Agent Guard","description":"Safety and trust layer for AI agents: PII redaction, scam/phishing text scan, EVM/Solana address validation, IBAN checks, JSON repair, deep on-chain wallet risk scoring, x402 counterparty endpoint reputation checks. Free discovery: /openapi.json, /.well-known/x402, /v1/capabilities, /mcp (tools/list). REST + MCP. Pay with USDC via x402 — no API keys.","openapi":"https://agent-guard.annushka1190.workers.dev/openapi.json","llms":"https://agent-guard.annushka1190.workers.dev/llms.txt","skill":"https://agent-guard.annushka1190.workers.dev/SKILL.md","agentRegistration":"https://agent-guard.annushka1190.workers.dev/.well-known/agent-registration.json","resources":[{"url":"https://agent-guard.annushka1190.workers.dev/v1/address/format-check","method":"GET","description":"Regex-only structural check: confirms 0x + 40 hex characters for EVM, or 32-44 char base58 for Solana. No checksum computed, no RPC call made. Use as a cheap pre-filter before the full checksum check at /v1/address/validate.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.001","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.001","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/iban/format-check","method":"GET","description":"Regex-only structural check: two-letter ISO 3166 country code, two check digits, 10-30 alphanumeric BBAN characters. Mod-97 check digits are NOT computed here. Use as a cheap pre-filter before the full check at /v1/iban/validate.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.001","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.001","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/json/repair","method":"POST","description":"Parses malformed JSON typically produced by LLM output: strips markdown code fences, removes trailing commas before ]/}, converts single-quoted strings and unquoted object keys to valid double-quoted JSON. Returns the parsed object plus a boolean flag indicating whether a fix was needed.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.002","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.002","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/address/validate","method":"GET","description":"EIP-55 mixed-case checksum validation for 0x-prefixed 40-hex-character EVM addresses, or base58 charset/length validation for Solana addresses. Returns valid (boolean), chain (evm|solana), and checksumOk fields.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.003","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.003","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/iban/validate","method":"GET","description":"Full ISO 13616 structural check plus ISO 7064 mod-97-10 check-digit verification (the same algorithm banks use). Returns valid (boolean), country code, and the normalized IBAN string.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.003","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.003","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/pii/redact","method":"POST","description":"Detects and masks 5 PII categories in free text via regex: email addresses, phone numbers (8+ digits), card numbers (13-19 digits, Luhn-length), US SSN format (XXX-XX-XXXX), and 64-hex-char strings that match an EVM private key shape. Returns the redacted text plus a per-category match count.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.005","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.005","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/scam/scan","method":"POST","description":"Regex-heuristic scan for 7 known crypto-scam patterns: seed-phrase/recovery-phrase requests, gas-fee-in-advance scams, fake wallet-connect airdrop claims, urgency/pressure language, private-key exfiltration requests, unlimited-token-approval drainer patterns, and fake wallet-support impersonation. Returns a 0-1 score, a high/medium/low label, and the list of matched pattern names.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.005","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.005","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/wallet/heuristic-flags","method":"POST","description":"Live JSON-RPC call to a public node — eth_getCode + eth_getTransactionCount on Base, or getSignaturesForAddress on Solana. Reports contract-vs-EOA, on-chain transaction count / recent signature count, and repeated-character vanity-address pattern detection. Lightweight pre-filter. For deeper scoring use /v1/wallet/risk-score.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.015","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.015","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/wallet/risk-score","method":"POST","description":"Deep risk scoring for a wallet before your agent pays it. Base: contract vs EOA, tx count, ETH balance, USDC balance, vanity patterns, zero/low activity. Solana: recent signatures, SOL balance, USDC token accounts, activity flags. Returns riskScore (0-1), label (low|medium|high|critical), flags[], metrics, and recommendation (safe_to_pay|review|avoid). Designed for agents that need to decide whether to trust a counterparty wallet.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.025","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.025","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/x402/endpoint-check","method":"POST","description":"Sends an unauthenticated GET to the given x402 resource URL and checks: does it return HTTP 402, does the accepts[] array include valid payTo/scheme/network/amount fields, is the price under 1.00 USDC, is maxTimeoutSeconds within a normal 5-3600s range, and does /.well-known/x402 exist at the origin. Returns a redFlags array and a 0-1 riskScore — useful before your own agent pays an unfamiliar x402 endpoint.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.02","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.02","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]},{"url":"https://agent-guard.annushka1190.workers.dev/v1/risk/full-scan","method":"POST","description":"One paid call runs any combination of: text (PII redact + scam scan), address+network (deep on-chain wallet risk score), iban (mod-97 validation), and resourceUrl (x402 endpoint reputation check) — whichever fields you include in the JSON body. Returns each sub-result plus one aggregated overallRiskScore/overallLabel. $0.04 total vs calling the tools separately.","accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.04","payTo":"0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104","asset":"USDC"},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","price":"$0.04","payTo":"3tVQUidPKBG4VfASUzrHYpCzdKr8RmJEPhv9GcAGvUTg","asset":"USDC"}]}]}