# Agent Email Transactional Dispatcher (x402)

> Transactional email dispatcher (Markdown to responsive HTML) for AI agents via x402 Base USDC.

- name: io.github.brunopompeo1/agent-email-x402
- version: 2.7.1
- connection class: R0 (autonomous)
- trust: 92/100 flags: duplicate-repo
- quality: 82/100 (good)
- charges per call: the server says so (`` agent_preview_email ``, `` agent_send_email ``)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fagent-email-x402
- tools: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fagent-email-x402/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "agent-email-x402": {
      "type": "http",
      "url": "https://agent-email-x402.architect-x402.workers.dev/mcp"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 97
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-94% +updated-4d-ago -duplicate-repo(13 names)
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 82/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-06-18; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 94 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 2 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 2 of 2 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,420 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 67 (weight 15)

- pass `stability.changes`: 2 tool changes in 30 days
- fail `stability.rug_pull`: 2 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 2, about 1,420 tokens to load them all
- tool set hash: a7291b8a3c18bc4366a5fb97f8cccfa6
- tools last changed: 2026-11-25T09:01:02.309Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.brunopompeo1/agent-email-x402.svg)](https://protogrid.dev/servers/io.github.brunopompeo1/agent-email-x402)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-25 `agent_preview_email` changed (title, description, inputSchema, outputSchema, annotations) **meaning changed**
  - before: Read-only dry-run validation and Markdown-to-HTML compilation preview for autonomous AI agent emails (0.005 USDC via x402 on Base). Validates recipients and returns compiled HTML byte metrics without sending external emails.
  - after: Runs the full validation and Markdown-to-HTML compilation of an e-mail without sending anything: checks every recipient address and the subject, compiles the body and returns the recipient list and the compiled size, with status 'preview_compiled'. Use it before agent_send_email when an agent is unsure of an address list built from scraped or user-typed data, to show a human what will go out for approval, or to keep alerts under a size budget. Do not use it to deliver a message, since nothing leaves the server, and do not treat a passing preview as proof that a mailbox exists: only the address syntax is checked. Read-only and idempotent: the same input always gives the same result apart from the generated preview id. Costs 0.005 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error.
- 2026-11-25 `agent_send_email` changed (title, description, inputSchema, outputSchema, annotations) **meaning changed**
  - before: Dispatches transactional or alert emails on behalf of an autonomous AI agent. Automatically compiles Markdown into responsive HTML emails (0.005 USDC via x402 on Base).
  - after: Sends one e-mail on behalf of an autonomous agent to one or more recipients, compiling a Markdown body into responsive HTML at the edge, with an optional reply-to so answers reach a human. Use it to deliver a run report, an incident or price alert, a human-in-the-loop approval request, or the supplierAlert.emailDraft produced by the NF-e auditor, without holding SMTP credentials or a monthly mail plan. Do not use it for bulk marketing, newsletters or unsolicited mail, for attachments, which are not supported, or to check a layout, which agent_preview_email does without sending. Not idempotent: every call is a new message, so do not retry a call that returned success, or the recipient gets duplicates. Delivery is confirmed only when 'provider' is 'resend-edge-live'; any other provider means the message was validated but not accepted by a mail provider. Costs 0.005 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error.

Full history: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fagent-email-x402/changes

## Remotes

- https://agent-email-x402.architect-x402.workers.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.9354839)

## Packages

_none_

## Tools (2)

- `agent_preview_email`: Runs the full validation and Markdown-to-HTML compilation of an e-mail without sending anything: checks every recipient address and the subject, compiles the body and returns the recipient list and the compiled size, with status 'preview_compiled'. Use it before agent_send_email when an agent is unsure of an address list built from scraped or user-typed data, to show a human what will go out for approval, or to keep alerts under a size budget. Do not use it to deliver a message, since nothing leaves the server, and do not treat a passing preview as proof that a mailbox exists: only the address syntax is checked. Read-only and idempotent: the same input always gives the same result apart from the generated preview id. Costs 0.005 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error.
- `agent_send_email`: Sends one e-mail on behalf of an autonomous agent to one or more recipients, compiling a Markdown body into responsive HTML at the edge, with an optional reply-to so answers reach a human. Use it to deliver a run report, an incident or price alert, a human-in-the-loop approval request, or the supplierAlert.emailDraft produced by the NF-e auditor, without holding SMTP credentials or a monthly mail plan. Do not use it for bulk marketing, newsletters or unsolicited mail, for attachments, which are not supported, or to check a layout, which agent_preview_email does without sending. Not idempotent: every call is a new message, so do not retry a call that returned success, or the recipient gets duplicates. Delivery is confirmed only when 'provider' is 'resend-edge-live'; any other provider means the message was validated but not accepted by a mail provider. Costs 0.005 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error.
