fetch_emails
Fetches unread emails from Gmail as a JSON array to enable classification, summarization, and task extraction for inbox triage.
Instructions
Fetch unread emails (JSON list). Use mock=True for the fixture demo.
Returns a JSON array of {id, sender, subject, body, thread_id, received}. Reason over these yourself: classify each, summarize long ones, extract tasks and draft replies for action_needed items, then call the IO tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fetch_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mock | No | ||
| since | No | 24h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |