← Back to list

gmail
by fast-gateway-protocol
Fast Gmail integration for AI coding agents via FGP
⭐ 0🍴 0📅 Jan 15, 2026
SKILL.md
name: gmail description: Fast Gmail access via FGP daemon (10x faster than MCP) tools:
- gmail.inbox
- gmail.unread
- gmail.search
- gmail.send
- gmail.thread
Gmail Skill
Fast Gmail integration via the FGP daemon. Provides 10x faster response times than MCP-based tools.
Available Methods
| Method | Description |
|---|---|
gmail.inbox | List recent emails from inbox |
gmail.unread | Get unread count and summaries |
gmail.search | Search emails by query |
gmail.send | Send an email |
gmail.thread | Get email thread by ID |
Method Parameters
gmail.inbox
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit | integer | No | 10 | Maximum emails to return (1-100) |
fgp call gmail.inbox -p '{"limit": 10}'
gmail.unread
No parameters. Returns unread count and first 10 unread email summaries.
fgp call gmail.unread
gmail.search
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | - | Gmail search query |
limit | integer | No | 10 | Maximum emails to return |
fgp call gmail.search -p '{"query": "from:newsletter", "limit": 5}'
Search syntax examples:
from:sender@example.com- Filter by senderto:recipient@example.com- Filter by recipientsubject:keyword- Filter by subjectis:unread- Only unread emailsafter:2025/01/01- After datebefore:2025/12/31- Before datehas:attachment- Has attachmentslabel:important- Has label
gmail.send
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
to | string | Yes | - | Recipient email address |
subject | string | Yes | - | Email subject line |
body | string | Yes | - | Email body (plain text) |
fgp call gmail.send -p '{"to": "user@example.com", "subject": "Hello", "body": "Message body"}'
gmail.thread
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
thread_id | string | Yes | - | Thread ID from inbox/search results |
fgp call gmail.thread -p '{"thread_id": "18abc123"}'
Response Schemas
Email Object
{
"id": "18abc123",
"thread_id": "18abc123",
"from": "sender@example.com",
"subject": "Meeting tomorrow",
"date": "Mon, 13 Jan 2026 10:00:00 -0800",
"snippet": "Just a reminder about our meeting..."
}
inbox/search Response
{
"emails": [/* array of email objects */],
"count": 10,
"query": "from:newsletter" // only for search
}
unread Response
{
"unread_count": 5,
"emails": [/* first 10 unread emails */]
}
send Response
{
"sent": true,
"message_id": "18abc456",
"thread_id": "18abc123"
}
thread Response
{
"thread_id": "18abc123",
"messages": [/* array of messages with to/from */],
"count": 3
}
Error Handling
| Error | Cause | Solution |
|---|---|---|
| "Gmail API error: invalid_grant" | OAuth token expired | Re-run OAuth flow |
| "Gmail API error: 403" | Insufficient permissions | Check OAuth scopes |
| "query parameter is required" | Missing search query | Add query parameter |
| "gmail-cli failed" | Python script error | Check Python 3 installed |
Setup
-
Get OAuth credentials:
- Go to Google Cloud Console
- Create a project and enable Gmail API
- Create OAuth 2.0 credentials (Desktop application)
- Download
credentials.json
-
Place credentials:
mkdir -p ~/.fgp/auth/google mv credentials.json ~/.fgp/auth/google/ -
Start daemon:
fgp start gmail -
Authorize (first run only):
- Browser opens for Google OAuth
- Grant permissions
- Token saved automatically
Troubleshooting
| Issue | Check | Fix |
|---|---|---|
| Daemon not running | fgp status gmail | fgp start gmail |
| Connection refused | Socket exists? | fgp start gmail |
| OAuth expired | Token age | Delete token, restart |
| Python not found | python3 --version | Install Python 3 |
| No credentials | ~/.fgp/auth/google/ | Add credentials.json |
Logs location: ~/.fgp/services/gmail/logs/
Performance
| Metric | FGP Gmail | Traditional MCP |
|---|---|---|
| Cold start | ~50ms | ~300-500ms |
| Warm call | ~10-30ms | N/A (always cold) |
| Batch support | Yes | No |
Tips for best performance:
- Keep daemon running (warm calls are fastest)
- Use
limitparameter to reduce payload size - Batch related queries when possible
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


