{"uid":"cap_Y4Mwz2rPaSTjYsEwThlNu","slug":"agent402-country-code-validator-eb86de12","name":"Agent402 Country Code Validator","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/validate/country-code","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"ISO alpha-2"}}},"responseSchema":{"type":"json","example":{"code":"GB","iso_alpha2":"GB","known_common":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_usGOjeLXh8ZR0x04ofgPU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and normalizes ISO alpha-2 country codes, including common non-standard aliases like 'UK' to 'GB'.","exampleAgentPrompt":"Before routing this request to the UK-specific pricing tool, validate and normalize the country code 'UK' to make sure it's a proper ISO alpha-2 code.","exampleUseCases":[{"title":"Geo-routing pre-check for payments","prompt":"I'm about to call a geo-routed payment API and the user entered 'UK' as their country — can you validate and normalize that to the correct ISO alpha-2 code first?"},{"title":"Form input sanitization for country field","prompt":"A user submitted 'UK' in the country field of our checkout form — validate it and convert it to the proper ISO alpha-2 code before we process the order."},{"title":"Compliance check before international transfer","prompt":"I need to send money internationally and want to confirm that the destination country code 'GB' is a valid ISO alpha-2 code before I proceed."}],"resultDescription":"Returns a JSON object with the normalized ISO alpha-2 code (e.g. 'GB'), the original code echoed back, and a boolean 'known_common' flag indicating whether the input was a recognized common alias (like 'UK') rather than a strict ISO code.","failureModes":["Invalid or unrecognized country code string returns an error or null result","Empty input or missing 'code' field may return a validation error","Codes longer than 2 characters that are not known aliases may be rejected","Payment failure (HTTP 402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need to ensure a country code is ISO alpha-2 compliant before passing it to geo-routed tools, payment processors, or localization APIs — especially when user input may contain common non-standard codes like 'UK' instead of 'GB'. Prefer this over doing a lookup table locally when you want a maintained, authoritative allowlist including common aliases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:27:13.847Z","isFirstParty":false}