{"uid":"cap_2j0B8I1ZyK9ihe2zY-8WJ","slug":"content-type-parse-utility-572fd3e3","name":"Content-Type Parse Utility","description":"Machine-callable x402-paid utilities for autonomous agents.","url":"https://creator-desk-x402-isolated.onrender.com/v1/utility/content-type-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"options":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"example","operation":"content_type_parse"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tER1szQGp92f1Ffe-sohd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and normalizes HTTP Content-Type header values, extracting media type, subtype, and parameters like charset.","exampleAgentPrompt":"Parse this Content-Type header value for me — 'text/html; charset=UTF-8; boundary=something' — and give me back the media type, subtype, and all the parameters separately.","exampleUseCases":[{"title":"Extract charset from API response header","prompt":"I got a response from an API with Content-Type 'application/json; charset=utf-8' — can you parse that and tell me just the charset and the base media type?"},{"title":"Validate MIME type before file upload","prompt":"Before I upload this file, I need to check if 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' is a valid content type and extract the boundary value from it."},{"title":"Normalize content type for middleware routing","prompt":"I have a raw content type string 'TEXT/HTML ; Charset=ISO-8859-1' from an old system — can you normalize and parse it so I can route it correctly in my middleware?"}],"resultDescription":"Returns a JSON object with the parsed content-type broken into its components: the operation name ('content_type_parse') and a result field containing the extracted media type, subtype, and any parameters such as charset or boundary.","failureModes":["Malformed or non-standard Content-Type strings may produce incomplete parsing results","Empty or null input value may return an error or empty result","Extremely unusual MIME type formats not conforming to RFC standards may not parse correctly","Payment failure via x402 protocol will prevent the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid-per-call microservice to parse Content-Type header strings into structured components without running your own parser. Useful in agent pipelines that process HTTP responses, validate file uploads, or route requests based on media type, especially when you want a deterministic utility callable via the x402 micropayment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:09.765Z","isFirstParty":false,"canonicalSlug":"content-type-parse-utility-572fd3e3"}