id = "google-workspace"
frontend = "none"
access = "read"
root = "apps/google-workspace"
egress = ["*.googleapis.com", "*.googleusercontent.com"]

[name]
en = "Google Workspace"
de = "Google Workspace"
fr = "Google Workspace"
es = "Google Workspace"
it = "Google Workspace"
el = "Google Workspace"
hu = "Google Workspace"

[description]
en = "Your Gmail, Calendar, Drive, Docs, Sheets, Slides and Chat as tools for Ivy’s agents, through Google’s own MCP server, signed in as you."
de = "Ihr Gmail, Kalender, Drive, Docs, Tabellen, Präsentationen und Chat als Werkzeuge für die KI-Agenten von Ivy, über den MCP-Server von Google, angemeldet als Sie."
fr = "Votre Gmail, Agenda, Drive, Docs, Sheets, Slides et Chat comme outils pour les agents d’Ivy, via le serveur MCP de Google, connecté en votre nom."
es = "Su Gmail, Calendar, Drive, Docs, Sheets, Slides y Chat como herramientas para los agentes de Ivy, a través del servidor MCP de Google, con su sesión iniciada."
it = "Il Suo Gmail, Calendar, Drive, Documenti, Fogli, Presentazioni e Chat come strumenti per gli agenti di Ivy, tramite il server MCP di Google, con il Suo accesso."
el = "Το Gmail, το Ημερολόγιο, το Drive, τα Docs, τα Sheets, τα Slides και το Chat σας ως εργαλεία για τους πράκτορες του Ivy, μέσω του MCP server της ίδιας της Google, συνδεδεμένα με τον δικό σας λογαριασμό."
hu = "Az Ön Gmailje, Naptára, Drive-ja, Docs-, Sheets-, Slides- és Chat-fájljai az Ivy ügynökeinek eszközeiként, a Google saját MCP-kiszolgálóján keresztül, az Ön nevében bejelentkezve."

[[processes]]
id = "server"
command = ["node", "launcher.mjs"]
ready = "started"
restart = "on-failure"
mcp = true

[[secrets]]
name = "google"
per = "person"
kind = "google_oauth"
scopes = [
  "https://www.googleapis.com/auth/documents",
  "https://www.googleapis.com/auth/drive",
  "https://www.googleapis.com/auth/calendar",
  "https://www.googleapis.com/auth/chat.spaces",
  "https://www.googleapis.com/auth/chat.messages",
  "https://www.googleapis.com/auth/chat.memberships",
  "https://www.googleapis.com/auth/gmail.modify",
  "https://www.googleapis.com/auth/userinfo.profile",
  "https://www.googleapis.com/auth/directory.readonly",
  "https://www.googleapis.com/auth/presentations.readonly",
  "https://www.googleapis.com/auth/spreadsheets.readonly",
]

[[tools]]
name = "calendar_createEvent"
description = "Creates a new event in a calendar. Supports regular events, focus time, out-of-office, and working location event types. Use 'date' for all-day events or 'dateTime' for timed events. Supports optional Google Meet link generation and Google Drive file attachments. When addGoogleMeet is true, the Meet URL will be in the response's hangoutLink field. Attachments fully replace any existing attachments."
input_schema = "tools/calendar_createEvent.json"

[[tools]]
name = "calendar_deleteEvent"
description = "Deletes an event from a calendar."
input_schema = "tools/calendar_deleteEvent.json"

[[tools]]
name = "calendar_findFreeTime"
description = "Finds a free time slot for multiple people to meet."
input_schema = "tools/calendar_findFreeTime.json"

[[tools]]
name = "calendar_getEvent"
description = "Gets the details of a specific calendar event."
input_schema = "tools/calendar_getEvent.json"

[[tools]]
name = "calendar_list"
description = "Lists all of the user's calendars."
input_schema = "tools/calendar_list.json"

[[tools]]
name = "calendar_listEvents"
description = "Lists events from a calendar. Defaults to upcoming events."
input_schema = "tools/calendar_listEvents.json"

[[tools]]
name = "calendar_respondToEvent"
description = "Responds to a meeting invitation (accept, decline, or tentative)."
input_schema = "tools/calendar_respondToEvent.json"

[[tools]]
name = "calendar_updateEvent"
description = "Updates an existing event in a calendar while preserving unspecified fields. Supports both timed events (`dateTime`) and all-day events (`date`), along with Google Meet links and Google Drive file attachments. When addGoogleMeet is true, the Meet URL will be in the response's hangoutLink field. Attachments fully replace any existing attachments (not appended), and an empty attachments array clears them."
input_schema = "tools/calendar_updateEvent.json"

[[tools]]
name = "chat_findDmByEmail"
description = "Finds a Google Chat DM space by a user's email address."
input_schema = "tools/chat_findDmByEmail.json"

[[tools]]
name = "chat_findSpaceByName"
description = "Finds a Google Chat space by its display name."
input_schema = "tools/chat_findSpaceByName.json"

[[tools]]
name = "chat_getMessages"
description = "Gets messages from a Google Chat space."
input_schema = "tools/chat_getMessages.json"

[[tools]]
name = "chat_listSpaces"
description = "Lists the spaces the user is a member of."
input_schema = "tools/chat_listSpaces.json"

[[tools]]
name = "chat_listThreads"
description = "Lists threads from a Google Chat space in reverse chronological order."
input_schema = "tools/chat_listThreads.json"

[[tools]]
name = "chat_sendDm"
description = "Sends a direct message to a user."
input_schema = "tools/chat_sendDm.json"

[[tools]]
name = "chat_sendMessage"
description = "Sends a message to a Google Chat space."
input_schema = "tools/chat_sendMessage.json"

[[tools]]
name = "chat_setUpSpace"
description = "Sets up a new Google Chat space with a display name and a list of members."
input_schema = "tools/chat_setUpSpace.json"

[[tools]]
name = "docs_create"
description = "Creates a new Google Doc. Can be blank or with initial text content."
input_schema = "tools/docs_create.json"

[[tools]]
name = "docs_formatText"
description = "Applies formatting (bold, italic, headings, etc.) to text ranges in a Google Doc. Use after inserting text to apply rich formatting."
input_schema = "tools/docs_formatText.json"

[[tools]]
name = "docs_getSuggestions"
description = "Retrieves suggested edits from a Google Doc."
input_schema = "tools/docs_getSuggestions.json"

[[tools]]
name = "docs_getText"
description = "Retrieves the text content of a Google Doc."
input_schema = "tools/docs_getText.json"

[[tools]]
name = "docs_replaceText"
description = "Replaces all occurrences of a given text with new text in a Google Doc."
input_schema = "tools/docs_replaceText.json"

[[tools]]
name = "docs_writeText"
description = "Writes text to a Google Doc at a specified position."
input_schema = "tools/docs_writeText.json"

[[tools]]
name = "drive_createFolder"
description = "Creates a new folder in Google Drive."
input_schema = "tools/drive_createFolder.json"

[[tools]]
name = "drive_downloadFile"
description = "Downloads the content of a file from Google Drive to a local path. Note: Google Docs, Sheets, and Slides require specialized handling."
input_schema = "tools/drive_downloadFile.json"

[[tools]]
name = "drive_findFolder"
description = "Finds a folder by name in Google Drive."
input_schema = "tools/drive_findFolder.json"

[[tools]]
name = "drive_getComments"
description = "Retrieves comments from a Google Drive file (Docs, Sheets, Slides, etc.)."
input_schema = "tools/drive_getComments.json"

[[tools]]
name = "drive_moveFile"
description = "Moves a file or folder to a different folder in Google Drive."
input_schema = "tools/drive_moveFile.json"

[[tools]]
name = "drive_renameFile"
description = "Renames a file or folder in Google Drive."
input_schema = "tools/drive_renameFile.json"

[[tools]]
name = "drive_search"
description = "Searches for files and folders in Google Drive. The query can be a simple search term, a Google Drive URL, or a full query string. For more information on query strings see: https://developers.google.com/drive/api/guides/search-files"
input_schema = "tools/drive_search.json"

[[tools]]
name = "drive_trashFile"
description = "Moves a file or folder to the trash in Google Drive. This is a safe, reversible operation."
input_schema = "tools/drive_trashFile.json"

[[tools]]
name = "gmail_batchModify"
description = "Bulk modify up to 1,000 Gmail messages at once. Applies the same label changes to all specified messages in a single API call. This is much more efficient than modifying messages individually.\n    - Add labels to messages.\n    - Remove labels from messages.\nSystem labels that can be modified:\n    - INBOX: removing INBOX label archives messages.\n    - SPAM: adding SPAM label marks messages as spam.\n    - TRASH: adding TRASH label moves messages to trash.\n    - UNREAD: removing UNREAD label marks messages as read.\n    - STARRED: adding STARRED label marks messages as starred.\n    - IMPORTANT: adding IMPORTANT label marks messages as important."
input_schema = "tools/gmail_batchModify.json"

[[tools]]
name = "gmail_createDraft"
description = "Create a draft email message."
input_schema = "tools/gmail_createDraft.json"

[[tools]]
name = "gmail_createLabel"
description = "Create a new Gmail label. Labels help organize emails into categories."
input_schema = "tools/gmail_createLabel.json"

[[tools]]
name = "gmail_downloadAttachment"
description = "Downloads an attachment from a Gmail message to a local file."
input_schema = "tools/gmail_downloadAttachment.json"

[[tools]]
name = "gmail_get"
description = "Get the full content of a specific email message."
input_schema = "tools/gmail_get.json"

[[tools]]
name = "gmail_listLabels"
description = "List all Gmail labels in the user's mailbox."
input_schema = "tools/gmail_listLabels.json"

[[tools]]
name = "gmail_modify"
description = "Modify a Gmail message. Supported modifications include:\n    - Add labels to a message.\n    - Remove labels from a message.\nThere are a list of system labels that can be modified on a message:\n    - INBOX: removing INBOX label removes the message from inbox and archives the message.\n    - SPAM: adding SPAM label marks a message as spam.\n    - TRASH: adding TRASH label moves a message to trash.\n    - UNREAD: removing UNREAD label marks a message as read.\n    - STARRED: adding STARRED label marks a message as starred.\n    - IMPORTANT: adding IMPORTANT label marks a message as important."
input_schema = "tools/gmail_modify.json"

[[tools]]
name = "gmail_modifyThread"
description = "Modify labels on all messages in a Gmail thread. This applies label changes to every message in the thread at once, which is useful for operations like marking an entire conversation as read.\nSystem labels that can be modified:\n    - INBOX: removing INBOX label archives the thread.\n    - SPAM: adding SPAM label marks the thread as spam.\n    - TRASH: adding TRASH label moves the thread to trash.\n    - UNREAD: removing UNREAD label marks all messages in the thread as read.\n    - STARRED: adding STARRED label marks the thread as starred.\n    - IMPORTANT: adding IMPORTANT label marks the thread as important."
input_schema = "tools/gmail_modifyThread.json"

[[tools]]
name = "gmail_search"
description = "Search for emails in Gmail using query parameters."
input_schema = "tools/gmail_search.json"

[[tools]]
name = "gmail_send"
description = "Send an email message."
input_schema = "tools/gmail_send.json"

[[tools]]
name = "gmail_sendDraft"
description = "Send a previously created draft email."
input_schema = "tools/gmail_sendDraft.json"

[[tools]]
name = "people_getMe"
description = "Gets the profile information of the authenticated user."
input_schema = "tools/people_getMe.json"

[[tools]]
name = "people_getUserProfile"
description = "Gets a user's profile information."
input_schema = "tools/people_getUserProfile.json"

[[tools]]
name = "people_getUserRelations"
description = "Gets a user's relations (e.g., manager, spouse, assistant, etc.). Common relation types include: manager, assistant, spouse, partner, relative, mother, father, parent, sibling, child, friend, domesticPartner, referredBy. Defaults to the authenticated user if no userId is provided."
input_schema = "tools/people_getUserRelations.json"

[[tools]]
name = "sheets_getMetadata"
description = "Gets metadata about a Google Sheets spreadsheet."
input_schema = "tools/sheets_getMetadata.json"

[[tools]]
name = "sheets_getRange"
description = "Gets values from a specific range in a Google Sheets spreadsheet."
input_schema = "tools/sheets_getRange.json"

[[tools]]
name = "sheets_getText"
description = "Retrieves the content of a Google Sheets spreadsheet."
input_schema = "tools/sheets_getText.json"

[[tools]]
name = "slides_getImages"
description = "Downloads all images embedded in a Google Slides presentation to a local directory."
input_schema = "tools/slides_getImages.json"

[[tools]]
name = "slides_getMetadata"
description = "Gets metadata about a Google Slides presentation."
input_schema = "tools/slides_getMetadata.json"

[[tools]]
name = "slides_getSlideThumbnail"
description = "Downloads a thumbnail image for a specific slide in a Google Slides presentation to a local path."
input_schema = "tools/slides_getSlideThumbnail.json"

[[tools]]
name = "slides_getText"
description = "Retrieves the text content of a Google Slides presentation."
input_schema = "tools/slides_getText.json"

[[tools]]
name = "time_getCurrentDate"
description = "Gets the current date. Returns both UTC (for calendar/API use) and local time (for display to the user), along with the timezone."
input_schema = "tools/time_getCurrentDate.json"

[[tools]]
name = "time_getCurrentTime"
description = "Gets the current time. Returns both UTC (for calendar/API use) and local time (for display to the user), along with the timezone."
input_schema = "tools/time_getCurrentTime.json"

[[tools]]
name = "time_getTimeZone"
description = "Gets the local timezone. Note: timezone is also included in getCurrentDate and getCurrentTime responses."
input_schema = "tools/time_getTimeZone.json"
