Adding Real-Time Email Verification to AI Agents with MCP
Disclosure: I work on the Verifly team ( verifly.email ). New accounts start with 100 free credits, pricing is pay-as-you-go, and risky or unknown results do not use a credit. An AI agent that qualifies leads or onboards users often treats the first email it sees as a usable contact. The address may have come from a form, a CRM export, or a line of text the model extracted from a page. Typos,…
Verifly Email Verification for AI Agents
Verifly offers real-time email verification for AI agents to ensure the contact details are valid and reliable. New accounts come with 100 free credits, and pricing is pay-as-you-go. Verifly's hosted MCP server can be accessed at https://verifly.email/mcp via Streamable HTTP. To use Verifly, include your API key as a bearer token in the MCP client configuration.
When an AI agent receives an email address, it should call the verify_email tool immediately. The tool accepts an email address as the required argument and returns a JSON object containing the normalized email, validity status, and other relevant information. Call verify_email when the agent decides to trust the address and stores, sends to, or qualifies it.
The verify_email tool's result can be one of four categories: deliverable, undeliverable, risky, or unknown. The recommendation can be safe_to_send, risky, or do_not_send. The agent should branch based on five buckets:
1. Valid (deliverable, and not disposable): If the result is deliverable and the email is not disposable, the agent should accept the address and proceed with confidence.
2. Invalid (undeliverable): If the result is undeliverable, the agent should reject the signup or lead and ask the user to correct the address.
3. Disposable: If the email is disposable, even if the mailbox appears valid, the agent should reject the address and request a durable one.
4. Catch-all: If the email address is associated with a catch-all domain or the result is risky, the agent should not auto-qualify the lead. Only qualify the address if there is another reason to trust the user or hold the address for review before sending.
5. Unknown: If the verification result is unknown, the agent should not treat it as a bounce or a confirmed valid address. Retry once or ask the user to confirm the address.
The agent should use the recommendation and flags (is_disposable, is_catch_all, and is_role_account) to make informed decisions about the email address. Remember that passing email validation using SPF, DKIM, or DMARC does not guarantee inbox placement, so the real-time verification is crucial for reliable contact information.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to
More from Dev.to on urgent.news
Report a problem with this story
Get the day's news by email. Daily, weekly or monthly. Sign up