cloud-mail-mcp-manual · v1.1.0 · 2026-07-29 · sha256 f2e8ca7a71cb7d5c
cloud-mail-mcp-manual v1.1.0A
Immutable. This exact content is served forever at /api/v1/blob/f2e8ca7a71cb7d5c.
---
name: cloud-mail-mcp-manual
description: |
Progressive-disclosure usage manual for the Cloud Mail REST email MCP tool.
Read this when you need detail beyond the one-line action descriptions:
check/search filters, the compound id (account:emailId) for read, send (needs
user credentials), plain vs HTML bodies, accounts/add_user basics, and the
external-email side-effect caveats. Pulled on demand via action='manual'; you
do not need to call it before every send. Calls use the strict LTP-v2
action/input/reasoning/summarize envelope.
version: 1.1.0
last_changed_at: "2026-07-29T00:00:00Z"
related_files:
- src/lingtai/mcp_servers/cloud_mail/manager.py
- src/lingtai/mcp_servers/cloud_mail/_family.py
- src/lingtai/mcp_servers/cloud_mail/server.py
- src/lingtai/mcp_servers/cloud_mail/client.py
maintenance: |
Tracks the MCP server's manager/config behavior; update when the server's setup or API surface changes.
---
# Cloud Mail MCP — usage manual (progressive disclosure)
Inbound mail also arrives automatically in your inbox via per-account polling,
so you don't have to poll `check` yourself.
Setup, config file/schema, credential and auth model, and watermark state are
owned by the `mcp-manual` skill (`reference/curated-addons.md`, §Cloud Mail
setup). Read it before editing config; do not guess field names.
## HOW TO CALL IT — the envelope
`cloud_mail` is a single strict LTP-v2 tool family. Every call takes a closed
root `{action, input, reasoning, summarize?}` — `action`, `input`, and
`reasoning` are required; `summarize` is optional and never nested under
`input`. `input` is the strict argument object **for the selected action
only**; a key from another action's branch is rejected before anything is
read or sent. Actions are exactly `check`, `search`, `read`, `send`,
`accounts`, `add_user`, `manual`. Do not use a flat/legacy shape, `_reasoning`,
aliases, or a generic dispatcher.
```python
cloud_mail(action="check", input={"limit": 10}, reasoning="check for new mail")
cloud_mail(action="read", input={"id": "cloudmail:1234"}, reasoning="read the request")
cloud_mail(action="send", input={"address": "user@example.com", "message": "done"},
reasoning="report completion")
```
**`summarize` guidance for this family.** `check`, `search`, and `read` are
**bulky-result** actions — mailbox listings and full email bodies can be long,
so `summarize=true` is reasonable when you only need the gist. Leave it false
when you need exact email ids, addresses, or verbatim body text, because you
will act on those literally. `send`, `accounts`, and `add_user` are
**short-result**: their receipts are small and meant to be read exactly, so
leave `summarize` false. Call `manual` itself with `summarize=false` so
procedure and constraints are not summarized away.
## EMAIL IDS
- `read` fetches the full content of one email by compound id
`id='<account>:<emailId>'`, or by `account` plus a numeric `email_id`. Use the
ids returned by `check`/`search`; do not construct them by hand.
## READING: check / search
- `check`: list recent inbound emails (optional `limit`, plus the same filters
as search).
- `search`: filter the public email list by `to_email`, `send_email`,
`send_name`, `subject`, `content`, `time_sort` (`asc`/`desc`), and paginate
with `num`/`size`. Filters are LIKE matches.
## SEND
- `send` requires user credentials in config (it logs in, then posts to
`/email/send`). Provide `address` (recipient or list), and a body via
`message`/`text` (plain) and/or `html`/`content_html` (HTML). Optional
`subject`, `name` (sender display name), `send_account_id` (override sender).
- Attachments are NOT supported in this first pass.
## ACCOUNTS / ADD_USER
- `accounts`: redacted per-account status (no tokens/passwords).
- `add_user`: create a Cloud Mail user (`email`, `password`; optional
`role_name`). Admin operation — use deliberately.
## SIDE EFFECTS & SAFETY
- `send` delivers real email to real recipients — an external, hard-to-undo side
effect. Confirm the recipient(s) and body before sending unsolicited mail.
- `add_user` mutates the Cloud Mail deployment's user set; double-check before
running it.
- Actions return `{'status': 'ok', ...}` on success or `{'status': 'error',
'error': <message>}` on failure. Check the status and surface or act on errors
rather than assuming delivery.