# Delx MX Host Parse

> Delx MX Host Parse is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Parses a raw MX record string and extracts the hostname and preference value from it

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/mx-host-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-mx-host-parse-0175cad9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bK85sMp2YVFJoVEacBiWp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-mx-host-parse-0175cad9 -d '<json body>'
```

Example prompt: Can you parse this raw MX record string '10 mail.example.com' and pull out the mail host and preference number for me?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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')

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mx": {
   "type": "string",
   "description": "Raw MX record string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "mail.example.com",
  "schema": "delx/util-mx-host-parse/v1",
  "preference": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-mx-host-parse-0175cad9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
