search_emails
Perform advanced email searches in Gmail using custom queries (e.g., sender, subject, date, attachments). Limit the number of results to quickly find the emails you need.
Instructions
Search emails with advanced query
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": {
"query": "<query>"
},
"name": "search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search query (e.g., "from:example@gmail.com has:attachment") | |
| maxResults | No | Maximum number of emails to return (default: 10) |