Skip to main content
Tools are invoked via MCP over signed POST /mcp. Open a session with initialize first (Transport). Authorization runs in the gateway before retrieval: the model never sees mail outside the grant.

Catalog

raw_read and send always phone-approve. Other tiers may auto-run after a grant.

Session order

  1. initialize + notifications/initialized
  2. tools/list once
  3. Structured tools when the intent matches
  4. ask for one clear question
  5. get_excerpt only when the user explicitly needs raw text

Call shape

Result wrapping

Successful tool payloads are JSON strings inside MCP result.content[].text (or equivalent content blocks). Parse that text as JSON. Typical shapes: Error-shaped payloads use {"error":"…","message":"…"} (+ approval fields). See Errors and Approvals.

Output guarantees

  • Structured tools return extracted fields, not email bodies.
  • Answers are length-capped and redacted for codes / card-like numbers.
  • Prompt injection in email cannot widen the grant.