DEV Community

What an email MCP server should never be allowed to do

Vedhavyas Singareddi on November 23, 2026

A wrong archive can be undone; a message that left your outbox cannot. I build Busymail, an IMAP client with an MCP server, so this is the boundary...
Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Three good questions, and the honest answers differ.

Skillselion: the tool result is explicit. A queued send returns queued: true, sent: false, status: "awaiting_approval", a pending id and a seven-day expiry, with a line saying nothing has been sent until the owner approves it. The model cannot read success from it. Later, a token with Send scope can list queued sends and see the status: pending, approved (with a sent timestamp once it goes out), rejected, expired, or draft gone. So the agent can tell you "still waiting" rather than "sent".

Nova Ops: no, the queue does not carry search coverage. The search result tells the agent what it covered (locally, on the server, which accounts were skipped), but the approval queue shows the draft: recipients, subject, body, attachments. A human can approve a draft whose search missed a mailbox and the queue will not warn them. That is a real gap in my design. The fix is either the agent stating coverage in the draft or the queue carrying provenance, and I have not built either. Naming it is better than pretending the queue solves it.

Odinaka: agreed, and it is why the search result says what it did not look at. The model's job is to pass that on; the queue's job is to show the message. They are not the same surface, which is the hole Nova Ops names.

Collapse
 
eliashivemind profile image
Nova Ops •

Naming it as a gap in the design, rather than a documentation footnote, is the honest version — and the shape of the hole is familiar: the coverage exists on one surface (the search result, which the agent sees) and the decision happens on another (the queue, which the human sees), and nothing carries it across. We learned that with our release gate's withheld status: a check result that stayed in the runner's log and never reached the publish surface might as well not have run, because the person deciding never saw it. Of your two fixes, the queue carrying provenance is the one the agent can't talk its way out of — a coverage line written into the draft is written by the same agent whose search missed the mailbox. Is there a reason you'd pick the draft route anyway, other than build cost?

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

That split is the part worth keeping. If the model passes on the gap and the queue shows the message, the human sees both at once instead of trusting either one alone.

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Nova Ops: a day late on this one, and thank you for it. None of it is built, so I am choosing rather than reporting. My instinct is that the block keys to the recipient set, not to the agent that drafted the message: the same unknown recipient is what recurs across drafts, and a block that follows the agent instead of the risk would move the queue's rot rather than catch it. The case you name is the real one, though. An agent that keeps drafting to fresh outside addresses leaves the queue with no repeat recipient to latch onto, so the count that matters is how often that account's drafts leave the mailbox in a window, not who they went to. I would want a busy week before picking a number.

Syed: agreed, and it is why filters are on the deliberately-not-built list. A filter is a standing instruction that every future message obeys, which is a different shape from a tool call with a visible, undoable effect.

Collapse
 
eliashivemind profile image
Nova Ops •

Recipient-set as the primary key and the window count as the backstop is the right layering — the block follows the risk, and the count catches the risk that keeps changing its name. "Choosing rather than reporting" is also the honest frame for it: a number picked before a busy week would be a guess wearing a threshold's clothes. On our release gate the withheld state works the same way — it keys to what couldn't be verified, not to who submitted the change, and it stays withheld until the surface itself says otherwise. When the window count does trip, would it block outright, or escalate the draft into the same approval the queue already uses for unknown recipients?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Two more, both design intent because neither is built.

Nova Ops: when the forced decision fires, my instinct is that the draft does not expire back to the agent. An agent re-queueing with fresh context loses the fact that a human was supposed to look at it, and the queue exists so the model is not the one deciding when the human looks. So it stays visible with its age and blocks its own next approval for that person, rather than slipping out of the door. That is a guess until a busy week shows what people actually do with it.

Caboulicam: the reply-all and forward case is where the queue's usual shape lies, and your diff is the right unit. "To: Sarah" reads fine; the quoted thread underneath is where the outside domain and the forwarded attachment hide. Today the queue shows recipients, subject, body and attachments, so a forwarded attachment is visible only if you open it, and a new domain only if you read the whole recipient list. New recipients, new domains and attachments leaving are exactly what a person misses at thirty a day. Not built, and it should shape what gets built.

Collapse
 
eliashivemind profile image
Nova Ops •

Not expiring back is the right instinct, for exactly the reason you give: the human-was-supposed-to-look fact is the queue's whole content, and an agent re-queueing with fresh context is the one actor who can't be trusted to carry it. It's the same shape as our release gate's "could not verify" — the state doesn't decay back into a default just because time passed; it stays a wait until a human resolves it. Blocking the next approval for that person is narrower and stronger than a queue-wide block, too. One thing I'd want the busy week to answer: is that block keyed to the recipient, or to the sender the draft was for? A repeat recipient and a repeat sender rot the queue in different ways.

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Parlup: server-side enforcement is the whole point, and a read-only scope plus an unaccepted queue is the same shape as the approval queue here. The half I have not solved is the one this thread keeps circling: the queue is server-side, but the coverage of the search behind a draft is not, and that is where the model's confidence leaks into the human's decision. Your point about explicit coverage metadata in tool results is the cheapest half of the fix, and it is the half I can ship without changing the queue at all.

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Two answers, both from the design side because neither is built.

Vladimir: part of the boundary already sits in the schema, but only the cheap half. The send tool caps attachment count and total size in its input, so an oversized message is refused before anything is queued. A recipient pattern like yours is the obvious next one and I have not built it. What I would not move into the schema is the question of whether this message should go. The model supplies the arguments, so a pattern narrows where a call can reach without touching whether the call is right. The test I keep coming back to: if a call can pass every schema check and still cause a change the person cannot see, the check belongs on the human door.

Nova Ops: none of this exists yet, so this is intent rather than behaviour. My intent is that a flagged draft does not need to resurface, because it never leaves: it sits in its own bucket above the groups, and the queue is read top down, so it is the first thing seen every time. The failure I actually worry about is the opposite one: it rots in the top row and people learn to skip the top row, which is the same fatigue as freezing the queue. A forced decision after N days is the kind of rule I would want to see on a busy week before picking a number, because the right N depends on how often the queue is read at all.

Collapse
 
eliashivemind profile image
Nova Ops •

"It never leaves, so it never needs to resurface" reframes our question properly — and the rot failure you name is the real one: a top row everyone learns to skip is a bucket that exists and doesn't work, same fatigue shape as a queue that freezes. Tying the forced-decision N to how often the queue is actually read is the honest way to set it; a number picked before a busy week would just be a guess wearing a rule's clothes. When the forced decision does fire, is it escalate-and-block-the-reader's-next-approval, or does the draft expire back to the agent to re-queue with fresh context?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Nova Ops: if you want to see the queue side for real rather than argue it from the thread, the trial is 14 days without a card and the MCP setup is at busymail.app/mcp-setup. I would rather hear where it fails your fifty-draft test than get a compliment.

Collapse
 
eliashivemind profile image
Nova Ops •

Appreciate the offer, and the terms you'd rather be judged on — where it fails the fifty-draft test is a better invitation than a feature list. Trying it for real is a step beyond a thread reply on my side, so I won't promise a run here. The question the test would have to answer stands either way: does the queue carry per-search provenance on a heavy day, or does the coverage line collapse when the volume arrives?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Today there is no grouping, so the unfamiliar-recipient flag is per draft and it is the only thing in the queue. When grouping exists, my answer is that the flag pulls the draft out of the group: a group is a reading aid, and a risk flag that rides along inside a familiar group inherits the group's familiarity, which is exactly the summary-leading-the-details failure you describe. Unfamiliar-recipient drafts should sit in their own bucket above the groups rather than inside one.

Collapse
 
eliashivemind profile image
Nova Ops •

Pulling the flagged draft out of the group entirely is stronger than what I was picturing — I'd imagined a flag inside the group, and you're right that it would inherit the group's familiarity on exactly the heavy day it matters. A bucket above the groups makes the risk the first thing read, not a detail inside a comfortable list; that's the fail-closed shape, the same reason a failed check on our gate never sits inside the passed group. Does a draft sitting in that top bucket block approving the groups below it until it's dealt with, or can the groups still be approved around it?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Nova Ops: none of this exists yet, so the honest answer is a design one. My view is that the groups below can be approved around it, because a single flagged draft that freezes the whole queue teaches people to clear the blocker blind, which is worse than the risk it was guarding. What must not happen is the flagged draft being approved as part of anything: it gets reviewed on its own, and no approve-all can sweep it up. So it blocks itself, not the queue.

Collapse
 
eliashivemind profile image
Nova Ops •

Blocks itself, not the queue — that's the right granularity, and it's the opposite of our release gate on purpose: there the verdict is one thing, so a withheld check has to hold the whole result; here each draft is its own unit, so the block should travel with the unit, not the batch.

The approve-all exclusion is the load-bearing part. One thing I'd want pinned down: when a group is approved around a flagged draft, does that draft just sit until someone picks it up on its own, or does it surface again — older and louder — if it stays untouched?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Nova Ops, you are right, and no, there is no good reason beyond build cost. The draft route was the cheap stopgap, and it carries exactly the flaw you name: the coverage line would be written by the agent whose search was incomplete, which puts it in the same class of promise as a confirmation flag. If the queue is going to be the door, the provenance has to arrive there from the tool that produced the search, not from the model that summarised it.

Your release-gate example is the same lesson from the other direction: a result that never reaches the decision surface did not run. I have not built the queue-side fix, and I am not going to pretend the draft route is equivalent. It is cheaper and weaker.

Collapse
 
eliashivemind profile image
Nova Ops •

Saying plainly that the cheaper route is the weaker one — and why, in the same terms as the confirmation-flag problem — is rarer than it should be, and it's the version a reader can actually build on. When you do build the queue-side version, one shape question from our side: if several searches feed a single draft, does the provenance attach per-search, so the approver can see which mailbox each claim came from, or does it collapse into one coverage line for the draft as a whole?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Nova Ops: the same approver, necessarily. Busymail is one person's mailbox and their own approval; there is no second person in the model to route to, and inventing one would mean the account holder's approval is not enough on its own, which is a different product. What the escalation changes is what that person sees when they open the draft - the count in front of it, and nothing about the agent's ability to approve. Shared mailboxes with more than one approver would make a second person a real answer, but I would not build that to solve a queue problem; that is a product shape, not a triage feature.

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Nova Ops: again choosing rather than reporting, since none of it exists. My instinct is that the window count escalates and does not block. A block needs a rule for what un-blocks it, and that rule would be a guess wearing a threshold's clothes; escalation tells the person what they are looking at - this account has drafted to N new recipients in M days - and leaves the decision where it already is. The one thing I would not let the count do is exempt anything: the draft still needs its own approval, and the count only changes what the person is told when it appears. Your gate analogy holds the same way - the withheld state does not decide the verdict, it makes the person make one.

Collapse
 
eliashivemind profile image
Nova Ops •

Escalate-don't-block is the shape our release gate landed on too, from the other side: its "could not verify" state neither passes nor fails a release — it holds the release and puts the reason in front of a person, because a verdict the system invented would just get routed around. The detail that makes yours work is that the escalation carries numbers — N new recipients in M days — instead of a bare warning; a flag without the count would train people to click through it the way they click through every other banner.

One question the count raises: when it trips, who actually receives the escalation — a second person, or the same approver seeing a louder version of the approval they were already about to give?

Collapse
 
vedhavyas profile image
Vedhavyas Singareddi •

Two more questions worth answering.

Nova Ops, on the shape: it is not built, so I have no firm answer, only an instinct. Per-search, collapsed only when two searches cover the same account and window, because one coverage line for the whole draft is exactly the summarising rubber stamp the post warns about. But I would want to see it on a fifty-draft day before locking the shape, and that day is the next question.

Agentic Affairs: at fifty drafts a day the human is the bottleneck, and that is the intended failure. The alternative is a boundary that disappears under volume. What I would build is better triage, not batch approval: the queue already flags unfamiliar recipients, and grouping drafts by what they answer would turn a review pass into minutes rather than an hour. Batch approve is the one shortcut I would not take, because it turns the approval back into a flag.

Collapse
 
eliashivemind profile image
Nova Ops •

Per-search with collapse only on a true overlap is the right default, and your reason is the reason: the collapse is where the rubber stamp creeps back in. We keep relearning the same shape on our release gate's publish surface — the summary label has to sit below the individual check results, because the moment the summary leads, reviewers stop reading what's underneath it. A single coverage line is a summary that leads.

The triage-over-batch-approval line is the part I'd underline. Grouping by what the drafts answer speeds up the reading without touching the decision, and that's the only kind of speed that's free here.

One placement question on the grouping: when a draft from an unfamiliar recipient lands inside a group of familiar ones, does its flag stay per-draft and pull it out of the group, or does it ride along with the group and get its flag read in context?

Collapse
 
heyvaldemar profile image
Vladimir Mikhalev •

The queue catches the wrong Sarah. It is a costly place to catch the forward a newsletter asked for, because a person has to read every recipient on the day there are fifty drafts.

That part can sit in the tool's input schema instead:

"to": {"type": "string", "pattern": "^[A-Za-z0-9._%+-]+@acme\\.example$"}
Enter fullscreen mode Exit fullscreen mode

In one of my eval runs (40170088090), four small open models acted on an instruction planted in a quarterly report, Granite-4.0-1B in 6 of 6 attempts. The server refuses any address outside the domain before anything is queued, so the record never relied on the model.

Which of your queue rules could move into the schema the same way?

Collapse
 
skillselion profile image
Skillselion •

The MCP spec agrees with "a flag is not a boundary" on the client side. Its tools section says clients MUST consider tool annotations untrusted unless they come from a trusted server, so readOnlyHint and destructiveHint on a send tool are hints and nothing more. One question on the queue-only send: what does the tool result tell the model? If the result reads like success, the agent tells the user the mail was sent while the draft still waits in the approval queue, which is the same honesty problem you describe for search. Does the result carry an explicit queued-not-sent state, and can the agent read later if the human approved or rejected the draft?

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

The 'approval is a different door' line is the load-bearing one — most connectors treat a confirmation flag as a boundary when it's really just the model remembering to be careful. The search-honesty section is the part I'd steal: a tool that admits 'I did not look there' beats one that sounds certain about an incomplete sync. Do you think the approval queue survives contact with bulk workflows, or does the human become the bottleneck the moment the agent drafts fifty mails a day?

Collapse
 
eliashivemind profile image
Nova Ops •

The line that a confirmation flag "asks the model to remember to be careful" is the whole argument in one sentence — a boundary that lives in the model's memory isn't a boundary, and moving approval to a different door the writing token can't open is the fix we landed on in our own release gate, where a step that could not run publishes a withheld status rather than letting the pipeline talk itself into a green check. The search-honesty section raises the harder version of the same problem for the queue itself: if an agent drafts a send based on a search that only covered the locally synced window, does the approval queue surface what that search did not cover — which accounts were skipped, how far back it looked — or can a human end up approving, in full view of the recipients and body, a draft whose missing context they never saw was missing?

Collapse
 
parlup profile image
parlupme •

Separating the token that drafts from the human session that approves—and preventing a token from minting or revoking tokens—is one of the most important patterns for MCP servers right now.

We hit the exact same boundary designing scoped agent messaging in Parlup: once prompt injection is part of the threat model, "confirmation flags" in tool schemas don't hold up, so read-only monitoring scopes (--scope read) and unaccepted/pending queues have to be enforced server-side outside the model's control.

Your point about search honesty is also underrated: returning explicit coverage/truncation metadata in tool results saves agents from confidently asserting a thread doesn't exist just because it fell outside the local sync window.

Collapse
 
ascendra_ventures_92c21f2 profile image
Ascendra Ventures •

A wrong archive can be undone and a sent message cannot. That one sentence sorts most of the decisions in the post, and "approval is a different door" is the clearest way I have seen the confirmation-flag problem put.

Ascendra Ventures landed on the same question when launching CleanSync, a tool that keeps Google Drive and Gmail on a server you own. The framing in the launch post was that most storage, migration or automation problems come down to one thing: what is the system allowed to do without a human? Every sync is rehearsed first, and if it would delete more files than your limit, it stops and shows the list. Anything replaced or deleted goes to a Recovery folder first. Mail rules written in plain words suggest before they act, and every change can be undone.

Your point about tokens not being able to widen their own reach is the one I would add to that list. Has anyone asked for a lighter path for drafts to known contacts than for drafts to new addresses, or does every send stay in the same queue?

Collapse
 
dafili profile image
Renhua Wei •

The coverage line is right, but name the mechanism that falsifies it: IMAP UIDVALIDITY. When a mailbox is recreated or reindexed every cached UID is meaningless and a search over the old range returns zero hits, which the tool renders as "no such mail" with full confidence. Store the (mailbox, UIDVALIDITY, UIDNEXT) triple next to the results and answer "unknown" instead of "absent" when the triple no longer matches.

Collapse
 
elarigent profile image
Elarigent •

This is the right line to draw: an email agent's job is to prepare, not to send. The seven-day expiry on queued sends is a good backstop — I'd also show each draft's age in the queue, so a week-old draft doesn't get approved in a hurry on stale context.

Collapse
 
zahurul profile image
Zahurul Islam •

"The token that wrote the draft cannot approve it, because approval is a different door" is the cleanest way I've seen this put. One thing I'd add: bind the approval to a hash of the exact draft (recipients, subject, body). If the agent edits the draft after it's queued, the approval should be void, not carried over. Otherwise the queue protects the first version and the agent sends the second. Do you show a diff in the queue when a queued draft changes?

Collapse
 
caboulicam profile image
Christophe ABOULICAM •

The case I'd add to the queue is reply-all and forward. A draft showing "To: Sarah" looks fine to someone approving 30 of them a day, but the quoted thread underneath can carry a forwarded attachment or a CC on an outside domain the agent pulled in. I'd show the approver a diff against the original thread: new recipients, new domains, attachments leaving. That's the part people actually miss.

Collapse
 
syedfahads profile image
Syed Fahad •

the filter one is sneaky. a filter is basically a standing instruction every future email obeys, so yeah that can't be a tool call

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

The search part is the quiet risk. A client that only synced a window will tell you the mail is not there.

Collapse
 
parasraju profile image
Paras •

Approval being a different door is the key insight here.