Loading...
Loading...
Automate Gmail tasks via Rube MCP (Composio): send/reply, search, labels, drafts, attachments. Always search tools first for current schemas.
npx skill4agent add davepoon/buildwithclaude gmail-automationRUBE_MANAGE_CONNECTIONSgmailRUBE_SEARCH_TOOLShttps://rube.app/mcpRUBE_SEARCH_TOOLSRUBE_MANAGE_CONNECTIONSgmailGMAIL_SEARCH_PEOPLEGMAIL_SEND_EMAILrecipient_emailsubjectbodyis_htmltrueccbccattachment{s3key, mimetype, name}recipient_emailccbccsubjectbodymimetypefrom_emailGMAIL_FETCH_EMAILSGMAIL_REPLY_TO_THREADthread_idmessage_bodyrecipient_emailis_htmltruethread_idGMAIL_FETCH_EMAILSGMAIL_FETCH_MESSAGE_BY_MESSAGE_IDquerymax_resultslabel_idsinclude_payloadtrueids_onlytruepage_tokennextPageTokennextPageTokenpage_tokenresultSizeEstimateinclude_payload=trueGMAIL_LIST_LABELSGMAIL_CREATE_LABELGMAIL_PATCH_LABELGMAIL_DELETE_LABELlabel_namebackground_colortext_coloridGMAIL_LIST_LABELSGMAIL_FETCH_EMAILSGMAIL_BATCH_MODIFY_MESSAGESGMAIL_ADD_LABEL_TO_EMAILmessageIdsaddLabelIdsremoveLabelIdsmessage_idmessage_idGMAIL_CREATE_EMAIL_DRAFTGMAIL_UPDATE_DRAFTGMAIL_LIST_DRAFTSGMAIL_SEND_DRAFTGMAIL_GET_ATTACHMENTrecipient_emailsubjectbodyis_htmltrueattachment{s3key, mimetype, name}thread_iddata.iddata.message.iddata.id1. Call GMAIL_LIST_LABELS
2. Find label by name in response
3. Extract id field (e.g., 'Label_123')1. Call GMAIL_SEARCH_PEOPLE with query=contact_name
2. Extract emailAddresses from response1. Call GMAIL_FETCH_EMAILS or GMAIL_LIST_THREADS
2. Extract threadId (15-16 char hex string)max_resultsnextPageTokenpage_tokennextPageTokenresultSizeEstimatefrom:sender@example.comto:recipient@example.comsubject:"exact phrase"is:unreadis:starredis:snoozedhas:attachmentafter:2024/01/01before:2024/12/31label:custom_labelin:sentcategory:primaryANDORNOT()from:boss@company.com is:unreadsubject:invoice has:attachment after:2024/01/01(from:alice OR from:bob) is:starreddata_previewdata.messagesmessageTimestamps3key| Task | Tool Slug | Key Params |
|---|---|---|
| Send email | GMAIL_SEND_EMAIL | recipient_email, subject, body, is_html |
| Reply to thread | GMAIL_REPLY_TO_THREAD | thread_id, message_body, recipient_email |
| Search emails | GMAIL_FETCH_EMAILS | query, max_results, label_ids, page_token |
| Get message details | GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID | message_id |
| List labels | GMAIL_LIST_LABELS | (none) |
| Create label | GMAIL_CREATE_LABEL | label_name, background_color, text_color |
| Modify labels bulk | GMAIL_BATCH_MODIFY_MESSAGES | messageIds, addLabelIds, removeLabelIds |
| Create draft | GMAIL_CREATE_EMAIL_DRAFT | recipient_email, subject, body, thread_id |
| Send draft | GMAIL_SEND_DRAFT | draft_id |
| Get attachment | GMAIL_GET_ATTACHMENT | message_id, attachment_id |
| Search contacts | GMAIL_SEARCH_PEOPLE | query |
| Get profile | GMAIL_GET_PROFILE | (none) |