Skill Tracer
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

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1# Gmail: finding contract attachments
2
3Use the Gmail MCP connector to find contract attachments in recent email.
4

Gmail: finding contract attachments

Use the Gmail MCP connector to find contract attachments in recent email.

Raw lines 1 to 4
Uses an outside tool MCP :3
5## Search for contract emails
6
7Use `search_threads` with a query targeting recent emails with attachments:
8
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 12
13## 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

  1. Present a short list (subject, sender, date) if multiple candidates match.
  2. Ask the user to confirm which one before downloading.
  3. Use get_thread to fetch the full thread, then locate and read the attachment.
Raw lines 13 to 18
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 26
27## 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.
Raw lines 27 to 30