google-workspace
Original:🇺🇸 English
Translated
Google Workspace MCP integration for Gmail, Drive, Calendar, Docs, Sheets, Slides, Forms, Tasks, and Chat. Use when the user wants to read/send emails, manage files, create/edit documents, schedule events, or interact with any Google Workspace service.
17installs
Sourceplurigrid/asi
Added on
NPX Install
npx skill4agent add plurigrid/asi google-workspaceTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Google Workspace Skill
Comprehensive MCP integration for all Google Workspace services.
Denotation
Google Workspace tasks map to functional invariants, resulting in consistent email, file, calendar, and task states under Narya condensation and GF(3) conservation.
The skill reaches a fixed point when all pending operations complete with no H¹ obstructions (gluing failures), and thread/folder trit sums are conserved modulo 3.
Formal Contract
Effect: Google Workspace → State × Trit
Invariant: ∀ closed workflow: Σ(trit) ≡ 0 (mod 3)
Denotation: ⟦GW⟧ = lim_{n→∞} Condense(Op_n(...Op_1(S_0)))Required Parameter
All tools require - the user's Google email address.
user_google_emailServices Overview
📧 Gmail (MINUS -1: Validator)
| Tool | Description |
|---|---|
| Search with Gmail query syntax |
| Get full message content |
| Batch get (max 25) |
| Get full conversation thread |
| Send email (supports replies) |
| Create draft (supports replies) |
| Add/remove labels (archive, delete) |
| Bulk label operations |
| List all labels with IDs |
| Create/update/delete labels |
Query syntax examples:
- - From specific sender
from:user@example.com - - Unread messages
is:unread - - Has attachments
has:attachment - - Date filters
after:2024/01/01
📁 Drive (ERGODIC 0: Coordinator)
| Tool | Description |
|---|---|
| Search files by query |
| List folder contents |
| Get file content (text extraction) |
| Get download URL |
| Create new file |
| Update metadata |
| Share with users/groups/anyone |
| Bulk sharing |
| Check permissions |
| Get shareable link |
| Revoke access |
| Transfer file ownership |
📅 Calendar (PLUS +1: Executor)
| Tool | Description |
|---|---|
| List user's calendars |
| Get events (by ID or time range) |
| Create new event |
| Update existing event |
| Delete event |
Event creation options:
- - Add Meet link
add_google_meet: true - - Invite attendees
attendees: ["email1", "email2"] - - Custom reminders
reminders: [{"method": "popup", "minutes": 15}] - - Show as available
transparency: "transparent"
📄 Docs (MINUS -1)
| Tool | Description |
|---|---|
| Search Google Docs |
| List docs in folder |
| Create new document |
| Get document content |
| Insert/replace/format text |
| Find and replace |
| Insert image |
| Insert table/list/page break |
| Create populated table |
| Get document structure |
| Debug table layout |
| Update headers/footers |
| Multiple operations |
| Export to PDF |
📊 Sheets (ERGODIC 0)
| Tool | Description |
|---|---|
| List spreadsheets |
| Create new spreadsheet |
| Get spreadsheet metadata |
| Add new sheet |
| Read cell range |
| Write/update/clear cells |
Range syntax: or
Sheet1!A1:D10A1:Z1000📽️ Slides (PLUS +1)
| Tool | Description |
|---|---|
| Create new presentation |
| Get presentation details |
| Get slide details |
| Get slide thumbnail |
| Apply updates |
📋 Forms
| Tool | Description |
|---|---|
| Create new form |
| Get form details |
| List responses |
| Get specific response |
| Update publish settings |
✅ Tasks
| Tool | Description |
|---|---|
| List all task lists |
| Get task list details |
| Create new list |
| Rename list |
| Delete list |
| List tasks in list |
| Get task details |
| Create task |
| Update task |
| Delete task |
| Move task (position/list) |
| Clear completed |
💬 Chat
| Tool | Description |
|---|---|
| List Chat spaces |
| Get messages from space |
| Search messages |
| Send message to space |
🔍 Custom Search
| Tool | Description |
|---|---|
| Programmable Search Engine |
| Site-restricted search |
| Get search engine config |
💬 Comments (All Doc Types)
| Tool | Description |
|---|---|
| Read doc comments |
| Add doc comment |
| Reply to comment |
| Resolve comment |
| Read sheet comments |
| Add sheet comment |
| Read slide comments |
| Add slide comment |
GF(3) Triadic Workflow
MINUS (-1): Validation/Reading
├── search_gmail_messages
├── get_doc_content
├── read_sheet_values
└── list_drive_items
ERGODIC (0): Coordination/Metadata
├── get_spreadsheet_info
├── list_calendars
├── inspect_doc_structure
└── get_drive_file_permissions
PLUS (+1): Execution/Writing
├── send_gmail_message
├── create_event
├── modify_sheet_values
└── create_drive_fileCommon Workflows
Email Management
python
# Search → Read → Reply
messages = search_gmail_messages(query="from:boss is:unread")
content = get_gmail_message_content(message_id=messages[0].id)
send_gmail_message(
to="boss@company.com",
subject="Re: " + content.subject,
body="Response...",
thread_id=content.thread_id,
in_reply_to=content.message_id
)Document Creation
python
# Create → Inspect → Add Table
doc = create_doc(title="Report")
structure = inspect_doc_structure(document_id=doc.id)
create_table_with_data(
document_id=doc.id,
index=structure.total_length,
table_data=[["Header1", "Header2"], ["Data1", "Data2"]]
)Calendar Scheduling
python
# Check availability → Create event with Meet
events = get_events(
time_min="2024-12-26T09:00:00Z",
time_max="2024-12-26T17:00:00Z"
)
create_event(
summary="Team Sync",
start_time="2024-12-26T14:00:00Z",
end_time="2024-12-26T15:00:00Z",
attendees=["team@company.com"],
add_google_meet=True
)File Sharing
python
# Share with expiration
share_drive_file(
file_id="abc123",
share_with="contractor@example.com",
role="writer",
expiration_time="2025-01-15T00:00:00Z"
)Authentication
If tools fail with auth errors, use:
start_google_auth(service_name="gmail|drive|calendar|docs|sheets|slides|forms|tasks|chat")Tips
- Batch operations - Use batch tools for multiple items
- Table creation - Always call first to get safe index
inspect_doc_structure - Email threading - Include ,
thread_id,in_reply_tofor proper repliesreferences - Drive shared drives - Use parameter for shared drive operations
drive_id - Calendar attachments - Use Drive file URLs or IDs for event attachments
Related Skills (Backlinks)
| Skill | Trit | Integration |
|---|---|---|
| finder-color-walk | 0 | Drive files ↔ local Finder GF(3) coloring via |
| gay-mcp | +1 | SplitMix64 deterministic colors for file organization |
| triad-interleave | +1 | Schedule Drive operations in GF(3)-balanced triplets |
| bisimulation-game | -1 | Verify Drive state equivalence across agents |
Triadic Integration Pattern
google-workspace (ERGODIC 0) ─── Coordinator
│
├── finder-color-walk (0) ─── File coloring bridge
│ └── drive_color_walk.py
│
├── gay-mcp (+1) ─── Color generation
│ └── SplitMix64 seeds → GF(3) trits
│
└── bisimulation-game (-1) ─── State verification
└── Attacker/Defender/Arbiter protocol
GF(3) Check: 0 + 0 + 1 + (-1) = 0 ✓Invariant Set
| Invariant | Definition | Verification |
|---|---|---|
| Each item (message, event, file) resides in exactly one triadic queue | Queue intersection = ∅ |
| | For all items, routing is deterministic |
| Thread trit sum ≡ 0 (mod 3) at cycle close | |
| Any complete workflow has Σ trits = 0 | GF(3) conservation check |
Narya Compatibility
| Field | Definition | Example |
|---|---|---|
| Raw input from Google APIs | |
| Transformed interactions with GF(3) trits | |
| Change in triadic queue state | |
| Initial unprocessed state | Empty queues, no interactions |
| 1 if equivalence class changed, 0 otherwise | Used for ANIMA detection |
Condensation Policy
Trigger: When 10 consecutive operations yield no change in equivalence classes.
python
def should_condense(history: List[State], threshold: int = 10) -> bool:
if len(history) < threshold:
return False
recent = history[-threshold:]
return all(equiv(s) == equiv(recent[0]) for s in recent)Action: Collapse queue state into condensed fingerprint, archive processed items.
Scientific Skill Interleaving
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
Graph Theory
- networkx [○] via bicomodule
- Universal graph hub
Bibliography References
- : 734 citations in bib.duckdb
general
SDF Interleaving
This skill connects to Software Design for Flexibility (Hanson & Sussman, 2021):
Primary Chapter: 10. Adventure Game Example
Concepts: autonomous agent, game, synthesis
GF(3) Balanced Triad
google-workspace (○) + SDF.Ch10 (+) + [balancer] (−) = 0Skill Trit: 0 (ERGODIC - coordination)
Secondary Chapters
- Ch7: Propagators
- Ch6: Layering
- Ch4: Pattern Matching
- Ch2: Domain-Specific Languages
- Ch1: Flexibility through Abstraction
Connection Pattern
Adventure games synthesize techniques. This skill integrates multiple patterns.
Cat# Integration
This skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826GF(3) Naturality
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)This ensures compositional coherence in the Cat# equipment structure.