gmail_search
Search Gmail using Gmail's query syntax (from:, to:, has:attachment, newer_than:7d, is:unread). Returns message IDs and snippets, enabling quick identification of relevant emails before fetching full bodies.
Instructions
Search the mailbox with Gmail's own query syntax (from:, to:, subject:, has:attachment, newer_than:7d, is:unread). Returns message ids and snippets; use gmail_get_message for a full body.
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": {
"q": "<q>"
},
"name": "gmail_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | e.g. "from:sarah newer_than:30d has:attachment" | |
| max | No |