Email address list parse

email-address-list-parse · version 1.0.0 · Communications · free, no key needed

Parse an RFC 5322 address-list into ordered mailboxes, groups, and a canonical form.

Use when you need to: parse an rfc 5322 address list · split mailboxes and groups from a recipient list · read display names out of a to header.

Decide before calling

Read the versioned contract and the supported scope below. Reuse email-address-list-parse@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use email-address-list-parse@1.0.0 for parse an rfc 5322 address list. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "Mary Smith <mary@x.test>, jdoe@example.org, Who? <one@y.test>",
  "mode": "ascii"
}

Response:

{
  "result": {
    "mode": "ascii",
    "canonical": "Mary Smith <mary@x.test>, jdoe@example.org, Who? <one@y.test>",
    "address_count": 3,
    "mailbox_count": 3,
    "group_count": 0,
    "addresses": [
      {
        "kind": "mailbox",
        "display_name": "Mary Smith",
        "local_part": "mary",
        "domain": "x.test",
        "addr_spec": "mary@x.test"
      },
      {
        "kind": "mailbox",
        "display_name": "",
        "local_part": "jdoe",
        "domain": "example.org",
        "addr_spec": "jdoe@example.org"
      },
      {
        "kind": "mailbox",
        "display_name": "Who?",
        "local_part": "one",
        "domain": "y.test",
        "addr_spec": "one@y.test"
      }
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "email-address-list-parse",
  "version": "1.0.0",
  "input": {
    "text": "Mary Smith <mary@x.test>, jdoe@example.org, Who? <one@y.test>",
    "mode": "ascii"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/email-address-list-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"Mary Smith <mary@x.test>, jdoe@example.org, Who? <one@y.test>","mode":"ascii"}'

The machine-readable contract is at /v1/tools/email-address-list-parse/versions/1.0.0.

CLI

node cli.mjs run email-address-list-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.