Add tool call logging and reply fields
All checks were successful
Build And Test / publish (push) Successful in 49s

This commit is contained in:
2026-01-01 15:24:06 -08:00
parent 7966a4302d
commit 767f076048
7 changed files with 335 additions and 117 deletions

View File

@@ -145,11 +145,32 @@ Add your MCP endpoint at https://poke.com/settings/connections.
| Category | Tools |
| --- | --- |
| Email | `list_mailboxes`, `list_emails`, `list_drafts`, `read_email`, `search_emails`, `move_email`, `delete_email`, `delete_draft`, `save_draft`, `edit_draft`, `send_email`, `reply_email`, `set_email_flags`, `unsubscribe_email` |
| Email | `list_mailboxes`, `list_emails`, `list_drafts`, `read_email`, `search_emails`, `move_email`, `delete_email`, `delete_draft`, `save_draft`, `edit_draft`, `send_email`, `set_email_flags`, `unsubscribe_email` |
| Calendar | `list_calendars`, `list_events`, `get_event`, `create_event`, `update_event`, `delete_event` |
| Contacts | `list_addressbooks`, `list_contacts`, `get_contact`, `create_contact`, `update_contact`, `delete_contact` |
| System | `get_server_info` |
### Replying to an email
Use `reply_to_email_id` on `save_draft`, `edit_draft`, or `send_email` to create a reply without a separate tool.
- Provide `reply_to_email_id` (and optionally `reply_mailbox`, default `INBOX`).
- `reply_all=true` includes original recipients; otherwise it replies to the sender/Reply-To.
- If `to`/`subject` are omitted, they are derived from the original email; `body` is still required.
Example (send a reply):
```json
{
"tool": "send_email",
"args": {
"reply_to_email_id": "12345",
"reply_mailbox": "INBOX",
"reply_all": true,
"body": "Thanks — sounds good to me."
}
}
```
## Database and Migrations
The server uses SQLite (default: `/data/cache.db`) and Alembic.