{"uid":"cap_0JpJlClFcztGZ7yBN84TP","slug":"delx-commerce-dns-mx-priority-sort-0a4b2d18","name":"Delx Commerce — DNS MX Priority Sort","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/dns-mx-priority-sort?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Records supplied to DNS MX Priority Sort; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"count":2,"records":[{"exchange":"mx1.example.com","priority":10},{"exchange":"mx2.example.com","priority":20}]},"schema":"delx/util-dns-mx-priority-sort/v1","status":"pass","evidence":{"retained":false,"input_sha256":"8b3539e1e41d77579f810b455d097216ad210c5fa90b58563e75aef928e5684a","external_calls":0},"operation":"web_reliability:dns_mx_priority_sort"}},"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_p4KxS1xDRR6R3EyxjZCBk","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":"Sorts an array of DNS MX records by their priority values in ascending order, returning them ranked from highest to lowest preference.","exampleAgentPrompt":"Sort these MX records by priority for me: [{\"exchange\":\"mx1.example.com\",\"priority\":20},{\"exchange\":\"mx2.example.com\",\"priority\":10}] — I need them ordered from most to least preferred so I know which mail server to try first.","exampleUseCases":[{"title":"Email delivery server selection","prompt":"I have these MX records for a domain and need to know which mail server to contact first: [{\"exchange\":\"alt1.aspmx.l.google.com\",\"priority\":5},{\"exchange\":\"aspmx.l.google.com\",\"priority\":1},{\"exchange\":\"alt2.aspmx.l.google.com\",\"priority\":10}]. Sort them by priority so my mailer hits the right one first."},{"title":"Validate mail routing configuration","prompt":"Can you sort these MX records by priority and confirm the count is correct? I'm auditing the mail routing setup for my domain and want to make sure the records are in the right preference order: [{\"exchange\":\"mail1.mycompany.com\",\"priority\":30},{\"exchange\":\"mail2.mycompany.com\",\"priority\":10},{\"exchange\":\"mail3.mycompany.com\",\"priority\":20}]."},{"title":"Automated email deliverability check","prompt":"My email deliverability agent collected these MX records from a DNS lookup: [{\"exchange\":\"mx-east.provider.net\",\"priority\":100},{\"exchange\":\"mx-west.provider.net\",\"priority\":50}]. Sort them by priority so I can verify the backup server is configured correctly."}],"resultDescription":"Returns a JSON object with a sorted array of MX records (each containing 'exchange' and 'priority' fields), a count of records, status ('pass'), the operation name, and an evidence block confirming no external calls were made and no input data was retained (includes input SHA-256 hash for verifiability).","failureModes":["Empty or missing 'records' array returns zero-count result","Records exceeding 256 items may be rejected (maxItems constraint)","Individual record objects exceeding 128 properties may be rejected (maxProperties constraint)","Malformed JSON input returns error response","Payment failure (x402) blocks execution before processing"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, verifiable, stateless sort of DNS MX records with cryptographic evidence of non-retention — ideal for AI agents in email infrastructure workflows that require auditability and pay-per-use pricing without signup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:38:31.394Z","isFirstParty":false,"canonicalSlug":"delx-commerce-dns-mx-priority-sort-0a4b2d18"}