{"uid":"cap_bK85sMp2YVFJoVEacBiWp","slug":"delx-mx-host-parse-0175cad9","name":"Delx MX Host Parse","description":"Parse MX preference and host from an MX record string. Call when normalizing DNS MX answers for deliverability logic. Returns preference and host as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/mx-host-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mx":{"type":"string","description":"Raw MX record string"}}},"responseSchema":{"type":"json","example":{"host":"mail.example.com","schema":"delx/util-mx-host-parse/v1","preference":10}},"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_3-FUkw-N0VJg87p_-xGe3","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 raw MX record string and extracts the hostname and preference value from it","exampleAgentPrompt":"Can you parse this raw MX record string '10 mail.example.com' and pull out the mail host and preference number for me?","exampleUseCases":[{"title":"Email routing hostname extraction","prompt":"I have this raw MX record — '20 aspmx.l.google.com' — can you parse it and tell me the mail server hostname and preference?"},{"title":"DNS audit for mail servers","prompt":"I'm auditing our DNS setup and need to extract the host and priority from this MX record string: '5 alt1.aspmx.l.google.com'. Can you break that apart?"},{"title":"Validate MX record before sending","prompt":"Before I configure our mail system, can you parse this MX string '10 mx1.mailhost.io' and confirm the host and preference values it contains?"}],"resultDescription":"Returns a JSON object with the parsed mail host string (e.g. 'mail.example.com'), the integer preference value, and a schema identifier string ('delx/util-mx-host-parse/v1')","failureModes":["Malformed or empty MX record string returns a parse error","Missing 'mx' field in request body causes a 400 bad request","MX record with unexpected formatting may result in null or incorrect host extraction","Non-standard MX record formats not conforming to RFC may fail to parse correctly"],"whenToPreferThis":"Use this endpoint when you have a raw MX record string and need to programmatically extract the mail server hostname and preference priority without writing custom parsing logic. Prefer this over manual string splitting when building agents that handle DNS records, email deliverability checks, or mail routing configuration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:17:30.546Z","isFirstParty":false}