{
  "format": "delx/intent-card/v1",
  "id": "dns-mx-priority-sort-api",
  "intent": "DNS MX Priority Sort for an agent workflow",
  "title": "DNS MX Priority Sort API for agents",
  "description": "DNS MX Priority Sort: DNS MX Priority Sort sorts MX exchanges by preference while preserving equal-priority order from bounded caller-supplied values without an external provider. Call DNS MX Priority Sort before choosing an MX exchange from caller-supplied preference records. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for DNS MX Priority Sort as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Evaluates only caller-supplied metadata; it performs no DNS lookup, HTTP request, web search, credential use, or persistent storage. Advisory output only; the buyer owns authorization, payment policy, and production decisions.",
  "keywords": [
    "DNS MX Priority Sort API",
    "DNS MX Priority Sort for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/dns-mx-priority-sort-api",
  "machine_url": "https://commerce.delx.ai/intents/dns-mx-priority-sort-api.json",
  "recommendation": {
    "tool_name": "util_dns_mx_priority_sort",
    "service_name": "DNS MX Priority Sort",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/dns-mx-priority-sort",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "records": {
          "type": "array",
          "maxItems": 256,
          "items": {
            "type": "object",
            "maxProperties": 128,
            "additionalProperties": true
          },
          "description": "Records supplied to DNS MX Priority Sort; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "records"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "records": [
        {
          "priority": 10,
          "exchange": "mx1.example.com"
        },
        {
          "priority": 20,
          "exchange": "mx2.example.com"
        }
      ]
    },
    "example_output": {
      "schema": "delx/util-dns-mx-priority-sort/v1",
      "operation": "web_reliability:dns_mx_priority_sort",
      "status": "pass",
      "result": {
        "records": [
          {
            "priority": 10,
            "exchange": "mx1.example.com"
          },
          {
            "priority": 20,
            "exchange": "mx2.example.com"
          }
        ],
        "count": 2
      },
      "evidence": {
        "input_sha256": "8b3539e1e41d77579f810b455d097216ad210c5fa90b58563e75aef928e5684a",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/dns-mx-priority-sort -m POST -H 'x-delx-source: intent-card-dns-mx-priority-sort-api' --max-amount 0.001 -b '{\"records\":[{\"priority\":10,\"exchange\":\"mx1.example.com\"},{\"priority\":20,\"exchange\":\"mx2.example.com\"}]}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-dns-mx-priority-sort-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/dns-mx-priority-sort"
  }
}
