{"uid":"cap_mMQsLuHMYP-21QeSFLdVj","slug":"agent402-url-normalizer-d15296d6","name":"Agent402 URL 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/normalize/url","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL"}}},"responseSchema":{"type":"json","example":{"valid":true,"canonical":"https://example.com/path?a=1&b=2"}},"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_p_wf04QHRmzRR3aHY3q0_","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":"Normalizes a URL to its canonical form by lowercasing the host, stripping default ports, and sorting query parameters.","exampleAgentPrompt":"Can you normalize this URL to its canonical form — lowercase host, strip default ports, sort query params: https://Example.COM:443/path?b=2&a=1","exampleUseCases":[{"title":"Deduplication before link storage","prompt":"Before I save these URLs to my database, normalize each one so duplicates with different casing or query param ordering get collapsed — start with https://Example.COM:80/page?z=3&a=1"},{"title":"Consistent cache key generation","prompt":"I need a canonical URL to use as a cache key — can you normalize https://WWW.MYSITE.COM:443/search?q=hello&lang=en so the host is lowercase and the query params are sorted?"},{"title":"URL validation in an agent pipeline","prompt":"Check whether this URL is valid and give me its canonical form so I can use it safely downstream: https://API.Example.ORG:443/v1/data?token=abc&limit=10"}],"resultDescription":"A JSON object with a 'valid' boolean indicating whether the input is a well-formed URL, and a 'canonical' string containing the normalized URL with lowercased host, default ports removed, and query parameters sorted alphabetically.","failureModes":["Invalid or malformed URL input returns valid:false with no canonical field","Missing 'url' field in request body causes a 400-level error","Non-HTTP/HTTPS schemes may not be supported and could return valid:false","Extremely long URLs may be rejected"],"whenToPreferThis":"Use this endpoint when you need a deterministic, cheap ($0.001) canonical form of a URL — especially for deduplication, cache key generation, or pre-storage normalization. Prefer it over rolling your own normalization logic when you need a consistent, spec-compliant result without implementing URL parsing yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T08:26:17.215Z","isFirstParty":false}