{"uid":"cap__3CaTcOL7oHA9VR8OAPxn","slug":"coco-url-parser-e9c9926f","name":"CoCo URL Parser","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/url-parse?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"url":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["scheme"],"properties":{"scheme":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"host":"cocoeatsai.com","path":"/area4/","port":null,"query":{},"scheme":"https","decoded":"https://cocoeatsai.com/area4/","fragment":"","clean_url":"https://cocoeatsai.com/area4/","tracking_params":[],"username_present":false},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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":"unknown","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_ULr-CAHMTaNvQZNhWwF-R","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":"Parses a URL string into its constituent components (scheme, host, path, port, query, fragment, tracking params, etc.)","exampleAgentPrompt":"Can you parse the URL 'https://example.com/products?ref=newsletter&id=42#section2' and tell me its host, path, query parameters, and any tracking params?","exampleUseCases":[{"title":"Strip tracking params from a shared link","prompt":"I got this URL from a marketing email: 'https://shop.example.com/item?utm_source=email&utm_campaign=spring&id=99' — can you clean it up and tell me what the actual URL is without the tracking stuff?"},{"title":"Debugging a malformed API endpoint URL","prompt":"Can you break down this URL for me — 'https://api.myapp.com:8080/v2/users?filter=active&page=2' — I need to confirm the port, path, and query parameters are what I expect."},{"title":"Extracting host and scheme for security audit","prompt":"I need to verify the scheme and hostname for this URL: 'http://internal-service.corp.net/admin/settings' — does it use HTTPS and what's the exact host?"}],"resultDescription":"A JSON object containing the parsed URL components: scheme (e.g. 'https'), host, path, port (null if absent), query (object of key-value pairs), fragment, decoded full URL, clean URL with tracking params removed, a list of detected tracking parameters, and a boolean indicating if a username is present in the URL.","failureModes":["Missing or empty 'url' query parameter returns an error or empty result","Malformed URL that cannot be parsed may return partial or error response","Very long or deeply encoded URLs may behave unexpectedly","Non-HTTP URLs (e.g. ftp://, mailto:) may not be fully supported"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call URL parsing utility via the x402 micropayment protocol — ideal for agents that occasionally need to decompose URLs without standing up their own parser, or when you need tracking parameter detection and clean URL extraction in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:43:47.452Z","isFirstParty":false,"canonicalSlug":"coco-url-parser-e9c9926f"}