Previewing and applying sender-domain filters over MCP
Agents connected with an mcp:read token can inspect capabilities, mailboxes, status, events, and filters through seven read tools. Granting optional mcp:write consent adds four filter controls: create_subscription, update_subscription, pause_subscription, and delete_subscription.
Dry-run previews and revision checks
Every filter mutation defaults to dry_run: true. Calling a write tool with the default returns the proposed subscription state without modifying Cloud Firestore. To apply the change, the client passes dry_run: false together with the current opaque expected_revision (using "0" when creating a new filter).
{
"tool": "update_subscription",
"arguments": {
"subscription_id": "vendor-updates",
"sender_domain": "vendor.example.com",
"dry_run": true,
"expected_revision": "example_revision"
}
}
Exact sender-domain rules and pause behavior
- Filters match an exact DNS
sender_domainwithevent_type: "message"; arbitrary Gmail search queries and subject filters are rejected. - Pausing or deleting a filter stops new reservations while preserving already queued event records.
- Resuming a paused filter starts matching new History checks from that point forward without replaying messages from the paused window.
- The hosted preview does not configure outbound destinations or push webhooks;
list_deliveriesmay return an empty list.
Read OAuth PKCE setup for MCP clients, see supported tool contracts, or return to Wakeport.