mailkite_create_route
Define how matching incoming mail is handled by creating a route with an address pattern and action such as webhook, forward, store, drop, or agent.
Instructions
Create a route (match, action, destination). Requires a management session token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"match": "<match>"
},
"name": "mailkite_create_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | Address pattern: exact, *@domain, addr+*@domain, or /regex/. | |
| action | No | What to do with matching mail. Defaults to webhook. | |
| agentPrompt | No | Required for action agent — instructions for the inbox agent. | |
| destination | No | Required for action webhook (URL) or forward (address). | |
| agentContext | No | For action agent: how much mail the agent may read once the sender is verified (they replied to an earlier agent message from a DMARC-passing address). 'message' (default) = only the incoming email; 'thread' = this conversation; 'sender' = all past mail with this sender. | |
| agentForwardTo | No | For action agent: addresses the inbox agent's forward tool may send to. The agent can always forward to your account email and any address on a verified domain you own; this adds extra approved addresses (e.g. an escalation inbox). |