Skills › Knowledge Work Plugins › contract-review › gmail-fetch.md
gmail-fetch.md
30 lines · small-business/skills/contract-review/reference/gmail-fetch.md at 2574e29
Most marks come from matching words in the file, so treat them as pointers.
1# Gmail: finding contract attachments
3Use the Gmail MCP connector to find contract attachments in recent email.
Gmail: finding contract attachments
Use the Gmail MCP connector to find contract attachments in recent email.
Raw lines 1 to 4Uses an outside tool MCP :3
5## Search for contract emails
7Use `search_threads` with a query targeting recent emails with attachments:
9```
10Query: "has:attachment (contract OR agreement OR NDA OR MSA OR SOW) newer_than:14d"
11```
Search for contract emails
Use search_threads with a query targeting recent emails with attachments:
Query: "has:attachment (contract OR agreement OR NDA OR MSA OR SOW) newer_than:14d"Raw lines 5 to 1213## What to do with results
151. Present a short list (subject, sender, date) if multiple candidates match.
162. Ask the user to confirm which one before downloading.
173. Use `get_thread` to fetch the full thread, then locate and read the attachment.
What to do with results
- Present a short list (subject, sender, date) if multiple candidates match.
- Ask the user to confirm which one before downloading.
- Use
get_threadto fetch the full thread, then locate and read the attachment.
Involves a person Ask the user :16
19## Fallback
21If Gmail is not connected or no matching attachment is found:
23```
24"I didn't find a recent contract attachment in Gmail — can you forward it or attach the file directly?"
25```
Fallback
If Gmail is not connected or no matching attachment is found:
"I didn't find a recent contract attachment in Gmail — can you forward it or attach the file directly?"Raw lines 19 to 2627## What NOT to do
29- Do not read emails unrelated to the contract (no general inbox trawl).
30- Do not send any reply or draft email during the review workflow.
What NOT to do
- Do not read emails unrelated to the contract (no general inbox trawl).
- Do not send any reply or draft email during the review workflow.