{"uid":"cap_I6n5LQt6tt_QgnfjaIbNv","slug":"agent402-uk-postcode-format-normalizer-04d27a65","name":"Agent402 UK Postcode Format Normalizer","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/uk-postcode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode"}}},"responseSchema":{"type":"json","example":{"formatted":"SW1A 1AA","valid_format":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_X2Vx2VJYT5GkDbYVinUeZ","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 a UK postcode string into standard outward+inward format (e.g. 'SW1A 1AA'), confirming structural correctness without geo lookup.","exampleAgentPrompt":"Can you normalize this UK postcode 'sw1a1aa' into the correct standard format and tell me if it's structurally valid?","exampleUseCases":[{"title":"Sanitize postcode before address lookup","prompt":"The user entered 'ec1a1bb' as their postcode — can you format it correctly into standard UK postcode format before I pass it to the address lookup service?"},{"title":"Validate postcode field in checkout form","prompt":"Before we save this order, check whether the postcode 'W1A0AX' the customer entered is a valid UK postcode format and return it properly spaced."},{"title":"Bulk clean postcode data in pipeline","prompt":"I have a postcode string 'M11AE' coming through my data pipeline — normalize it to the proper UK outward+inward format and confirm it's structurally correct."}],"resultDescription":"Returns a JSON object with 'formatted' (the postcode in canonical 'OUTWARD INWARD' spacing, e.g. 'SW1A 1AA') and 'valid_format' (boolean indicating whether the input matches a valid UK postcode structure). Does not include geographic or delivery data.","failureModes":["Input postcode is completely unparseable — may return valid_format: false with no formatted output","Non-UK postal formats (e.g. US ZIP codes) will fail structural validation","Missing or empty postcode field returns validation error","Ambiguous alphanumeric strings that partially resemble postcodes may return false negatives"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast structural validation and normalization of a UK postcode string — before passing it to a geo lookup, storing in a database, or presenting to a user. It does not perform geographic resolution; for lat/lon or delivery zone data use GET /v1/data/uk/postcode instead. Ideal for form validation pipelines, address sanitization, and data cleaning workflows where you only need format correctness confirmed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:29:09.888Z","isFirstParty":false}