search
Find messages in one or all Gmail accounts using Gmail query syntax, returning metadata and snippets sorted newest first.
Instructions
Search messages in one account or in all accounts. Returns metadata and snippets, newest first.
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>",
"account": "<account>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search syntax, e.g. 'from:bob@example.com newer_than:7d' | |
| account | Yes | Account alias, or 'all' to search every account and merge newest first | |
| max_results | No | Maximum messages returned (after merging) |