Skip to main content
Glama
Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Google Workspace MCP 서버

라이센스: MIT 파이썬 3.11+ 자외선

모델 컨텍스트 프로토콜을 통해 MCP 클라이언트, AI 어시스턴트 등을 Google Workspace 서비스에 연결합니다.

실제로 확인해 보세요:


📑 목차


Related MCP server: google-workspace-mcp-advanced

🌐 개요

Google Workspace MCP 서버는 모델 컨텍스트 프로토콜(MCP)을 사용하여 Google Workspace 서비스(캘린더, 드라이브, Gmail, 문서)를 AI 어시스턴트 및 기타 애플리케이션과 통합합니다. 이를 통해 AI 시스템은 Google Workspace 애플리케이션의 사용자 데이터에 안전하고 효율적으로 액세스하고 상호작용할 수 있습니다.


✨ 특징

  • 🔐 OAuth 2.0 인증 : 자동 토큰 새로 고침 및 중앙화된 인증 흐름을 통해 사용자 승인 자격 증명을 사용하여 Google API에 안전하게 연결합니다.

  • 📅 Google 캘린더 통합 : 전체 캘린더 관리 - 캘린더 목록, 이벤트 가져오기, 하루 종일 및 시간별 이벤트 지원을 통한 이벤트 생성/수정/삭제

  • 📁 Google 드라이브 통합 : 파일 검색, 폴더 내용 나열, 파일 내용 읽기, 새 파일 생성 기능을 제공합니다. .docx, .xlsx 및 기타 Microsoft Office 형식의 추출 및 검색을 기본적으로 지원합니다!

  • 📧 Gmail 통합 : 완벽한 이메일 관리 - 모든 쿼리 구문에 대한 완벽한 지원을 통해 메시지 검색, 콘텐츠 검색, 이메일 보내기, 초안 작성

  • 📄 Google Docs 통합 : 채팅에서 바로 문서 검색, 문서 내용 읽기, 폴더에 문서 나열, 새 문서 만들기가 가능합니다!

  • 🔄 다양한 전송 옵션 : 스트리밍 가능한 HTTP + SSE 폴백

  • 🔌 mcpo 호환성 : Open WebUI와 같은 도구와 통합하기 위해 서버를 OpenAPI 엔드포인트로 쉽게 노출합니다.

  • 🧩 확장 가능한 디자인 : 더 많은 Google Workspace API 및 도구에 대한 지원을 추가하기 위한 간단한 구조

  • 🔄 통합 OAuth 콜백 : 포트 8000에서 서버 내에서 직접 OAuth 리디렉션을 처리합니다.

  • ⚡ 스레드 안전 세션 관리 : 향상된 안정성을 위한 스레드 안전 아키텍처를 통한 강력한 세션 처리


🚀 빠른 시작

필수 조건

  • 파이썬 3.11+

  • uv 패키지 설치 프로그램(또는 pip)

  • 필수 API(캘린더, 드라이브, Gmail, 문서)에 대해 OAuth 2.0 자격 증명이 활성화된 Google Cloud Project

설치

지엑스피1

구성

  1. Google Cloud Console 에서 OAuth 2.0 자격 증명 (데스크톱 애플리케이션 유형)을 만듭니다.

  2. 프로젝트에 Google 캘린더 API , Google 드라이브 API , Gmail API , Google 문서 API를 활성화하세요.

  3. OAuth 클라이언트 자격 증명을 client_secret.json 으로 다운로드하여 프로젝트의 루트 디렉토리에 넣습니다.

  4. Google Cloud Console에서 OAuth 클라이언트 구성에 다음 리디렉션 URI를 추가합니다. 기본 URI 및 포트는 http://localhost:8000 이며, 환경 변수( WORKSPACE_MCP_BASE_URI 및 WORKSPACE_MCP_PORT )를 통해 사용자 지정할 수 있습니다. 이 변수를 변경하는 경우 Google Cloud Console의 리디렉션 URI도 그에 맞게 업데이트해야 합니다.

    http://localhost:8000/oauth2callback
  5. ⚠️ 중요 : client_secret.json``.gitignore 파일에 추가하고 버전 제어에 커밋하지 마세요.

서버 구성

서버의 기본 URL과 포트는 환경 변수를 사용하여 사용자 정의할 수 있습니다.

  • WORKSPACE_MCP_BASE_URI : 서버의 기본 URI를 설정합니다(기본값: http://localhost ). 이는 Gemini 네이티브 함수 호출에 사용되는 server_url 과 OAUTH_REDIRECT_URI 에 영향을 미칩니다.

  • WORKSPACE_MCP_PORT : 서버가 수신하는 포트를 설정합니다(기본값: 8000 ). 이는 server_url , port 및 OAUTH_REDIRECT_URI 영향을 미칩니다.

사용 예:

export WORKSPACE_MCP_BASE_URI="https://my-custom-domain.com"
export WORKSPACE_MCP_PORT="9000"
uv run main.py

환경 설정

서버는 개발 중에 로컬호스트 OAuth 콜백에 HTTP를 사용합니다. 서버를 실행하기 전에 다음 환경 변수를 설정하세요.

# Allow HTTP for localhost OAuth callbacks (development only!)
export OAUTHLIB_INSECURE_TRANSPORT=1

이 설정이 없으면 인증 흐름 중에 "OAuth 2는 HTTPS를 활용해야 합니다"라는 오류가 발생할 수 있습니다.

서버 시작

다음 방법 중 하나를 선택하여 서버를 실행하세요.

python main.py
# or using uv
uv run main.py

포트 8000에서 HTTP 전송 계층으로 서버를 실행합니다.

다중 사용자 MCP는 다소 복잡하기 때문에 현재로서는 클라이언트와 서버 간의 1:1 매핑이 가장 원활하게 작동합니다. 하지만 Claude가 OAuth 2.1 플로우를 수행할 수 있게 되면 상황이 달라질 것입니다. 따라서 이 MCP는 간소화된 단일 사용자 환경을 위한 플래그를 사용하여 구축되었습니다. 서버를 단일 사용자 모드로 실행할 수 있으며, 이 모드에서는 세션-OAuth 매핑을 우회하고 .credentials 디렉터리의 사용 가능한 자격 증명을 사용합니다.

python main.py --single-user
# or using uv
uv run main.py --single-user

단일 사용자 모드에서:

  • 서버는 .credentials 디렉토리에서 유효한 자격 증명을 자동으로 찾아 사용합니다.

  • 세션 매핑이 필요하지 않습니다. 서버는 발견된 첫 번째 유효한 자격 증명 파일을 사용합니다.

  • 개발, 테스트 또는 단일 사용자 배포에 유용합니다.

  • 자격 증명 파일을 생성하려면 초기 OAuth 인증이 필요합니다.

이 모드는 다중 사용자 세션 관리가 필요하지 않고 자격 증명 처리를 간소화하려는 경우에 특히 유용합니다.

제공된 Dockerfile 사용하여 서버를 빌드하고 실행할 수 있습니다.

# Build the Docker image
docker build -t google-workspace-mcp .

# Run the Docker container
# The -p flag maps the container port 8000 to the host port 8000
# The -v flag mounts the current directory to /app inside the container
# This is useful for development to pick up code changes without rebuilding
docker run -p 8000:8000 -v $(pwd):/app google-workspace-mcp

smithery.yaml 파일은 Docker 컨테이너 내에서 서버를 올바르게 시작하도록 구성되어 있습니다.

중요 항구

기본 포트는 8000 이지만 WORKSPACE_MCP_PORT 환경 변수를 통해 변경할 수 있습니다.

서비스

기본 포트

설명

OAuth 콜백

8000

/oauth2callback 경로를 통해 서버에서 내부적으로 처리됨

HTTP 모드 서버

8000

HTTP 전송을 사용할 때의 기본값

서버에 연결

서버는 여러 가지 연결 방법을 지원합니다.

클로드 데스크탑:

어디서나 실행할 수 있으며 mcp-remote 통해 사용하거나 uv run main.py 인수로 사용하여 로컬에서 호출하거나 localhost에서 mcp-remote 사용하여 로컬에서 호출할 수 있습니다.

config.json:

{
  "mcpServers": {
    "Google workspace": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8000/mcp”
      ]
    }
  }
}
  1. mcpo 설치 : uv pip install mcpo 또는 pip install mcpo

  2. config.json 생성합니다( Open WebUI와의 통합 참조)

  3. config를 가리키는 mcpo 실행합니다: uvx mcpo --config config.json --port 8001

  4. MCP 서버 API는 http://localhost:8001/google_workspace (또는 config.json 에 정의된 이름)에서 사용할 수 있습니다.

  5. OpenAPI 문서(Swagger UI)는 다음에서 확인할 수 있습니다: http://localhost:8001/google_workspace/docs

시작 명령(단일 MCP MCPO 사용의 경우):

  1. mcpo 설치 : uv pip install mcpo 또는 pip install mcpo

  2. uvx mcpo --port 8001 --api-key "top-secret" --server-type "streamablehttp" -- http://localhost:8000/mcp 로 시작합니다.

  3. MCP 서버 API는 http://localhost:8001/openapi.json (또는 config.json 에 정의된 이름)에서 사용할 수 있습니다.

  4. OpenAPI 문서(Swagger UI)는 다음에서 확인할 수 있습니다: http://localhost:8001/docs

  5. HTTP 모드에서 서버를 시작합니다( 서버 시작 참조)

  6. MCP JSON 요청을 http://localhost:8000 으로 직접 보냅니다.

  7. curl 이나 사용자 정의 HTTP 클라이언트와 같은 도구를 사용하여 테스트하는 데 유용합니다.

  8. Claude Desktop 및 기타 MCP 클라이언트에 mcp-remote를 통한 새로운 Streamable HTTP 전송을 통합하는 데 사용할 수 있습니다.

  9. 원하는 경우 SSE 대체 모드로 서비스할 수도 있습니다.

Open WebUI와의 통합

Open WebUI 내에서 이 서버를 도구 공급자로 사용하려면:

  1. mcpo 구성 만들기 : 다음 구조의 config.json 이라는 파일을 만들어 mcpo가 스트리밍 가능한 HTTP 엔드포인트를 OpenAPI 사양 도구로 사용할 수 있도록 합니다.

      {
       "mcpServers": {
           "google_workspace": {
               "type": "streamablehttp",
               "url": "http://localhost:8000/mcp"
           }
       }
    }
  2. mcpo 서버를 시작합니다 .

    mcpo --port 8001 --config config.json --api-key "your-optional-secret-key"

    이 명령은 mcpo 프록시를 시작하여 포트 8001에서 활성(포트 8000이라고 가정) Google Workspace MCP를 제공합니다.

  3. Open WebUI 구성 :

    • Open WebUI 설정으로 이동합니다.

    • "연결" -> "도구"로 이동하세요.

    • "도구 추가"를 클릭하세요

    • 서버 URL을 입력하세요: http://localhost:8001/google_workspace ( config.json 의 mcpo 기본 URL 및 서버 이름과 일치)

    • mcpo 와 함께 --api-key 사용한 경우 API 키로 입력하세요.

    • 구성을 저장합니다

    • 이제 Open WebUI에서 모델과 상호 작용할 때 Google Workspace 도구를 사용할 수 있습니다.

최초 인증

Google API 액세스가 필요한 도구가 호출되는 경우:

  • 도구에 user_google_email 제공되었지만 사용자 인증 정보가 누락되었거나 유효하지 않은 경우 : 서버가 자동으로 OAuth 2.0 흐름을 시작합니다. 권한 부여 URL은 MCP 응답으로 반환되거나 콘솔에 출력됩니다.

  • user_google_email 제공되지 않고 사용자 인증 정보가 누락되었거나 유효하지 않은 경우 : 도구는 LLM이 중앙화된 start_google_auth 도구를 사용하도록 안내하는 오류 메시지를 반환합니다. 그런 다음 LLM은 사용자 이메일과 적절한 service_name (예: "Google 캘린더", "Google 문서", "Gmail", "Google 드라이브")을 사용하여 start_google_auth 호출해야 합니다. 이 명령은 또한 승인 URL을 반환합니다.

사용자를 위한 단계(권한 URL을 얻은 후):

  1. 제공된 권한 부여 URL을 웹 브라우저에서 엽니다.

  2. Google 계정에 로그인하여 지정된 서비스에 대해 요청된 권한을 부여합니다.

  3. 인증 후 Google은 브라우저를 http://localhost:8000/oauth2callback (또는 구성된 리디렉션 URI)으로 리디렉션합니다.

  4. MCP 서버는 이 콜백을 처리하고, 승인 코드를 토큰으로 교환하고, 자격 증명을 안전하게 저장합니다.

  5. 그러면 LLM은 원래 요청을 다시 시도할 수 있습니다. 이후 동일한 사용자 및 서비스에 대한 호출은 새로 고침 토큰이 만료되거나 취소될 때까지 재인증 없이 작동해야 합니다.


🧰 사용 가능한 도구

참고 : 특정 Google 서비스에 대한 도구를 처음 사용할 때 유효한 자격 증명이 저장되어 있지 않고 user_google_email 도구에 제공된 경우 OAuth 인증 흐름이 트리거될 수 있습니다. 인증이 필요하지만 user_google_email 도구에 제공되지 않은 경우, LLM은 사용자 이메일과 적절한 service_name 사용하여 core/server.py 에 정의된 중앙화된 start_google_auth 도구를 사용해야 합니다.

📅 구글 캘린더

출처: gcalendar/calendar_tools.py

도구

설명

매개변수

start_google_auth

( core/server.py 에 중앙 집중화됨) 특정 Google 계정 및 서비스에 대한 OAuth 2.0 인증 흐름을 시작합니다. 유효한 사용자 인증 정보를 사용할 수 없거나 인증 누락으로 인해 도구가 실패하고 이메일이 제공되지 않은 경우 이 함수를 사용하세요.

• user_google_email (필수): 사용자의 Google 이메일 주소• service_name (필수): Google 서비스 이름(예: "Google 캘린더", "Google 문서", "Gmail", "Google 드라이브")

list_calendars

인증된 사용자가 액세스할 수 있는 모든 일정을 나열합니다.

• user_google_email (선택 사항): 세션이 인증되지 않은 경우 사용됨• mcp_session_id (자동으로 삽입됨)

get_events

지정된 달력에서 특정 시간 범위 내의 다가올 이벤트를 검색합니다.

• calendar_id (선택 사항): 캘린더 ID(기본값: primary )• time_min (선택 사항): 시작 시간(RFC3339 또는 YYYY-MM-DD )• time_max (선택 사항): 종료 시간(RFC3339 또는 YYYY-MM-DD )• max_results (선택 사항): 최대 이벤트 수(기본값: 25)• user_google_email (선택 사항)• mcp_session_id (자동 주입)

create_event

새 캘린더 이벤트를 만듭니다. 하루 종일 및 시간별 이벤트를 지원합니다.

• summary (필수): 이벤트 제목• start_time (필수): 시작 시간(RFC3339 또는 YYYY-MM-DD )• end_time (필수): 종료 시간(RFC3339 또는 YYYY-MM-DD )• calendar_id (선택 사항): 캘린더 ID(기본값: primary )• description , location , attendees , timezone (선택 사항)• user_google_email (선택 사항)• mcp_session_id (자동 주입)

modify_event

ID로 기존 이벤트를 업데이트합니다. 제공된 필드만 수정됩니다.

• event_id (필수): 수정할 이벤트의 ID• calendar_id (선택 사항): 캘린더 ID(기본값: primary )• summary , start_time , end_time , description , location , attendees , timezone (선택 사항)• user_google_email (선택 사항)• mcp_session_id (자동으로 삽입됨)

delete_event

ID로 이벤트를 삭제합니다.

• event_id (필수): 삭제할 이벤트의 ID• calendar_id (선택 사항): 캘린더 ID(기본값: primary )• user_google_email (선택 사항)• mcp_session_id (자동으로 삽입됨)

ℹ️ 모든 캘린더 도구는 현재 MCP 세션( mcp_session_id )을 통한 인증 또는 user_google_email 을 통한 대체 인증을 지원합니다. 두 방법 모두 사용할 수 없고 인증이 필요한 경우, 도구는 오류를 반환하고 LLM에 사용자 이메일과 service_name="Google Calendar" 사용하여 중앙화된 start_google_auth 도구를 사용하라고 요청합니다.

🕒 날짜/시간 매개변수: 도구는 전체 RFC3339 타임스탬프(예: 2024-05-12T10:00:00Z)와 간단한 날짜(예: 2024-05-12)를 모두 허용합니다. 서버는 필요에 따라 자동으로 형식을 지정합니다.

📁 구글 드라이브

출처: gdrive/drive_tools.py

도구

설명

매개변수

search_drive_files

사용자의 Drive에서 파일과 폴더를 검색합니다.

• query (필수): 검색 쿼리 문자열(예: name contains 'report' )• max_results (선택 사항): 반환할 최대 파일 수

get_drive_file_content

특정 파일의 내용을 검색합니다

• file_id (필수): 파일 ID• mime_type (선택 사항): 원하는 내보내기 형식을 지정합니다.

list_drive_items

특정 폴더 또는 루트 내의 파일 및 폴더를 나열합니다.

• folder_id (선택 사항): 나열할 폴더의 ID(기본값은 root)• max_results (선택 사항): 반환할 항목의 최대 수

create_drive_file

Google 드라이브에 새 파일을 만듭니다.

• name (필수): 새 파일에 대한 원하는 이름• content (필수): 파일에 쓸 텍스트 콘텐츠• folder_id (선택 사항): 상위 폴더의 ID• mime_type (선택 사항): 파일의 MIME 유형(기본값은 text/plain )

쿼리 구문 : Google Drive 검색 쿼리의 경우 Drive 검색 쿼리 구문을 참조하세요.

📧 지메일

출처: gmail/gmail_tools.py

도구

설명

매개변수

search_gmail_messages

표준 Gmail 검색 연산자(보낸 사람, 제목 등)를 사용하여 이메일 메시지를 검색합니다.

• query (필수): 검색 문자열(예: "from:foo subject:bar is:unread" )• user_google_email (선택 사항)• page_size (선택 사항, 기본값: 10)• mcp_session_id (자동으로 삽입됨)

get_gmail_message_content

메시지 ID로 이메일의 제목, 발신자, 일반 텍스트 본문을 가져옵니다.

• message_id (필수)• user_google_email (선택 사항)• mcp_session_id (자동 주입)

send_gmail_message

사용자의 Gmail 계정을 사용하여 일반 텍스트 이메일을 보냅니다.

• to (필수): 수신자 이메일 주소• subject (필수)• body (필수)• user_google_email (선택 사항)• mcp_session_id (자동 삽입)

draft_gmail_message

사용자의 Gmail 계정에서 임시 이메일을 만듭니다.

• subject (필수): 이메일 제목• body (필수): 이메일 본문(일반 텍스트)• to (선택 사항): 수신자 이메일 주소• user_google_email (선택 사항)• mcp_session_id (자동 주입)

쿼리 구문 : Gmail 검색 쿼리의 경우 Gmail 검색 쿼리 구문을 참조하세요.

📝 구글 문서

출처: gdocs/docs_tools.py

도구

설명

매개변수

search_docs

(Drive API를 사용하여) 이름으로 Google Docs를 검색합니다.

• query (필수): 문서 이름에서 검색할 텍스트• user_google_email (선택 사항)• page_size (선택 사항, 기본값: 10)• mcp_session_id (자동으로 삽입됨)

get_doc_content

문서 ID를 이용해 Google 문서의 일반 텍스트 콘텐츠를 검색합니다.

• document_id (필수)• user_google_email (선택 사항)• mcp_session_id (자동 주입)

list_docs_in_folder

지정된 Drive 폴더 내의 모든 Google 문서를 나열합니다(폴더 ID 기준, 기본값 = root ).

• folder_id (선택 사항, 기본값: 'root' )• user_google_email (선택 사항)• page_size (선택 사항, 기본값: 100)• mcp_session_id (자동으로 삽입됨)

create_doc

초기 콘텐츠를 추가하여 새로운 Google 문서를 만듭니다.

• title (필수): 문서 이름• content (선택 사항, 기본값: 비어 있음)• user_google_email (선택 사항)• mcp_session_id (자동으로 삽입됨)


🛠️ 개발

프로젝트 구조

google_workspace_mcp/
├── .venv/             # Virtual environment (created by uv)
├── auth/              # OAuth handling logic (google_auth.py, oauth_manager.py)
├── core/              # Core MCP server logic (server.py)
├── gcalendar/         # Google Calendar tools (calendar_tools.py)
├── gdocs/             # Google Docs tools (docs_tools.py)
├── gdrive/            # Google Drive tools (drive_tools.py)
├── gmail/             # Gmail tools (gmail_tools.py)
├── .gitignore         # Git ignore file
├── client_secret.json # Google OAuth Credentials (DO NOT COMMIT)
├── config.json        # Example mcpo configuration
├── main.py            # Main server entry point (imports tools)
├── mcp_server_debug.log # Log file for debugging
├── pyproject.toml     # Project metadata and dependencies (for uv/pip)
├── README.md          # This file
├── uv.lock            # uv lock file

OAuth에 대한 포트 처리

서버는 별도의 웹 서버 프레임워크가 필요 없이 OAuth 2.0 리디렉션 URI( /oauth2callback )를 똑똑하게 처리합니다.

  • HTTP 모드 또는 mcpo 통해 실행될 때 기본 MCP 라이브러리의 내장 HTTP 서버 기능을 활용합니다.

  • 사용자 지정 MCP 경로는 포트 8000 의 /oauth2callback 에 대해 특별히 등록됩니다.

  • Google이 승인 후 사용자를 다시 리디렉션하면 MCP 서버는 이 경로에서 요청을 가로채게 됩니다.

  • auth 모듈은 승인 코드를 추출하고 토큰 교환을 완료합니다.

  • 로컬에서 실행할 경우 콜백이 http://localhost 사용하므로 OAUTHLIB_INSECURE_TRANSPORT=1 설정해야 합니다.

디버깅

인증 단계 및 API 호출을 포함한 자세한 로그는 mcp_server_debug.log 확인하세요. 필요한 경우 디버그 로깅을 활성화하세요.

  • client_secret.json 이 올바르고 존재하는지 확인하세요.

  • Google Cloud Console에서 올바른 리디렉션 URI( http://localhost:8000/oauth2callback )가 구성되었는지 확인하세요.

  • Google Cloud 프로젝트에서 필요한 API(캘린더, 드라이브, Gmail)가 활성화되어 있는지 확인하세요.

  • 서버 프로세스가 실행되는 환경에서 OAUTHLIB_INSECURE_TRANSPORT=1 설정되어 있는지 확인하세요.

  • 브라우저 기반 OAuth 흐름 중 특정 오류 메시지를 찾아보세요.

Google API에서 반환된 추적 정보나 오류 메시지를 서버 로그에서 확인하세요.

새로운 도구 추가

  1. 적절한 모듈을 선택하거나 생성합니다(예: gdocs/gdocs_tools.py )

  2. 필요한 라이브러리(Google API 클라이언트 라이브러리 등)를 가져옵니다.

  3. 도구 로직에 대한 async 함수를 정의하세요. 매개변수에 대한 유형 힌트를 사용하세요.

  4. @server.tool("your_tool_name") 로 함수를 장식하세요.

  5. 함수 내부에서 인증된 자격 증명을 가져옵니다.

from auth.google_auth import get_credentials, CONFIG_CLIENT_SECRETS_PATH
# ...
credentials = await asyncio.to_thread(
    get_credentials,
    user_google_email=your_user_email_variable, # Optional, can be None if session_id is primary
    required_scopes=YOUR_SPECIFIC_SCOPES_LIST,  # e.g., [CALENDAR_READONLY_SCOPE]
    client_secrets_path=CONFIG_CLIENT_SECRETS_PATH,
    session_id=your_mcp_session_id_variable    # Usually injected via Header
)
if not credentials or not credentials.valid:
    # Handle missing/invalid credentials, possibly by calling start_auth_flow
    # from auth.google_auth (which is what service-specific start_auth tools do)
    pass
  1. Google API 서비스 클라이언트를 빌드합니다. service = build('drive', 'v3', credentials=credentials)

  2. Google API를 호출하는 로직을 구현합니다.

  3. 잠재적 오류를 우아하게 처리하세요

  4. 결과를 JSON 직렬화 가능 사전 또는 목록으로 반환합니다.

  5. 서버에 등록되도록 main.py 에 도구 함수를 가져옵니다.

  6. 도구 모듈에서 필요한 서비스별 범위 상수를 정의합니다.

  7. 새로운 종속성이 필요한 경우 pyproject.toml 업데이트하세요.

범위 관리 : config/google_config.py 의 전역 SCOPES 목록은 초기 OAuth 동의 화면에 사용됩니다. 각 도구는 get_credentials 호출할 때 필요한 최소한의 필수 required_scopes 요청해야 합니다.


🔒 보안 참고 사항

  • client_secret.json : 이 파일에는 민감한 자격 증명이 포함되어 있습니다. 버전 관리 시스템에 절대 커밋 하지 마세요 . .gitignore 파일에 등록하고 안전하게 보관하세요.

  • 사용자 토큰 : 인증된 사용자 자격 증명(갱신 토큰)은 credentials-<user_id_hash>.json 과 같은 파일에 로컬로 저장됩니다. 이 파일은 사용자의 Google 계정 데이터에 대한 접근 권한을 부여하므로 안전하게 보호해야 합니다. 또한 .gitignore 파일에도 저장해야 합니다.

  • OAuth 콜백 보안 : 개발 중 설치된 애플리케이션의 경우 OAuth 콜백에 http://localhost 를 사용하는 것이 표준이지만, OAUTHLIB_INSECURE_TRANSPORT=1 필요합니다. 로컬호스트 외부에서 운영 환경을 배포하는 경우, 콜백 URI에 HTTPS를 사용하고 Google Cloud Console에서 이를 적절히 설정 해야 합니다 .

  • mcpo 보안 : mcpo 사용하여 네트워크를 통해 서버를 노출하는 경우 다음 사항을 고려하세요.

    • 기본 인증을 위해 --api-key 옵션 사용

    • HTTPS 종료, 적절한 로깅 및 보다 강력한 인증을 처리하기 위해 역방향 프록시(예: Nginx 또는 Caddy) 뒤에서 mcpo 실행

    • 로컬호스트를 넘어 노출하는 경우 신뢰할 수 있는 네트워크 인터페이스에만 mcpo 바인딩합니다.

  • 범위 관리 : 서버는 캘린더, 드라이브, Gmail에 대한 특정 OAuth 범위(권한)를 요청합니다. 사용자는 초기 인증 과정에서 이러한 범위에 따라 접근 권한을 부여합니다. 구현된 도구에 필요한 것보다 더 넓은 범위를 요청하지 마세요.


스크린샷:

📄 라이센스

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 LICENSE 파일을 참조하세요.

Available Tools

118 tools
append_table_rowsAppend Table RowsA

Appends rows to a structured table in a Google Sheet. The rows are added to the end of the table body, automatically extending the table range.

Use list_sheet_tables first to find the table ID.

Inputs: values (required), table_id (required), spreadsheet_id (required), user_google_email (required). Returns: result

batch_modify_gmail_message_labelsBatch Modify Gmail Message LabelsA
Destructive

Adds or removes labels on many Gmail messages, or on every message of whole conversations via thread_ids.

message_ids are sent in one users.messages.batchModify call (Gmail accepts up to 1000 ids per call). That endpoint returns no per-message result and silently ignores ids it does not recognise, so by default the messages are read back afterwards to report which ids actually changed.

thread_ids are modified one at a time with users.threads.modify, e.g. archive a conversation with remove_label_ids=["INBOX"] or mark it read with remove_label_ids=["UNREAD"]. Each thread reports its own outcome. message_ids and thread_ids can be combined; at least one is required, as is at least one of add_label_ids or remove_label_ids.

Inputs: user_google_email (required), verify, thread_ids, message_ids, +2 more. Returns: result

batch_update_docBatch Update DocA
Destructive

Executes multiple low-level document operations in a single atomic batch update.

For normal header/footer text, prefer update_doc_headers_footers. Only use create_header_footer here for advanced section-break layouts.

RECOMMENDED WORKFLOW FOR BUILDING DOCUMENTS:

To avoid index calculation errors, build documents in phases:

PHASE 1 - INSERT ALL CONTENT (use end_of_segment=true, no index math): Append text, section breaks, and page breaks sequentially. Each operation appends to the end of the body. No index needed. Example batch: [ {"type": "insert_text", "end_of_segment": true, "text": "Report Title\n"}, {"type": "insert_text", "end_of_segment": true, "text": "\nExecutive Summary\n"}, {"type": "insert_text", "end_of_segment": true, "text": "Revenue grew 15%.\n"}, {"type": "insert_section_break", "end_of_segment": true, "section_type": "NEXT_PAGE"}, {"type": "insert_text", "end_of_segment": true, "text": "Detailed Analysis\n"} ]

PHASE 2 - CREATE HEADERS/FOOTERS (if needed): For normal header/footer text, use update_doc_headers_footers (it auto-creates if missing and writes the content for you). Only include create_header_footer operations in a batch when you are intentionally managing advanced section-break-specific layouts.

PHASE 3 - INSPECT STRUCTURE: Call inspect_doc_structure with detailed=true to get exact start_index and end_index for every paragraph and element.

PHASE 4 - APPLY FORMATTING (separate batch using indices from Phase 3): Use the real indices from inspect_doc_structure output: [ {"type": "update_paragraph_style", "start_index": 1, "end_index": 15, "heading_level": 1, "alignment": "CENTER"}, {"type": "format_text", "start_index": 1, "end_index": 15, "bold": true, "font_size": 24}, {"type": "create_bullet_list", "start_index": 50, "end_index": 120, "list_type": "ORDERED"} ]

ALTERNATIVE - FIND_REPLACE PATTERN (no indices needed at all): Insert text with unique placeholders, then use find_replace: [ {"type": "insert_text", "end_of_segment": true, "text": "{{TITLE}}\n{{BODY}}\n"}, {"type": "find_replace", "find_text": "{{TITLE}}", "replace_text": "Quarterly Report"}, {"type": "find_replace", "find_text": "{{BODY}}", "replace_text": "The results show..."} ]

ALTERNATIVE - SEMANTIC ANCHORS (target existing structure without indices): Insertion operations accept after_heading, before_heading, or anchor_text with anchor_position instead of index. Each is resolved against the document at execution time, so it cannot go stale the way a pre-computed index can, and an anchor matching zero or several places is refused rather than guessed. Submit anchored insertions in their own batch; they execute from highest index to lowest to keep targets stable. [ {"type": "insert_text", "after_heading": "Results", "text": "Revenue grew 15%.\n"}, {"type": "insert_text", "anchor_text": "Conclusion", "anchor_position": "before", "text": "See appendix.\n"} ]

WARNING - AVOID THIS ANTI-PATTERN: Do NOT pre-compute sequential indices for multiple insert_text operations. Each insertion shifts all subsequent indices and manual calculation is error-prone. Use end_of_segment=true instead, which always appends to the current end. BAD: [{"type":"insert_text","index":1,"text":"Hello\n"}, {"type":"insert_text","index":8,"text":"World\n"}] <- index 8 may be wrong GOOD: [{"type":"insert_text","end_of_segment":true,"text":"Hello\n"}, {"type":"insert_text","end_of_segment":true,"text":"World\n"}]

Inputs: operations (required), document_id (required), user_google_email (required), write_mode. Returns: result

batch_update_formBatch Update FormA
Destructive

Apply batch updates to a Google Form.

Supports adding, updating, and deleting form items, as well as updating form metadata and settings. This is the primary method for modifying form content after creation.

Inputs: form_id (required), requests (required), user_google_email (required). Returns: result

batch_update_presentationBatch Update PresentationA
Destructive

Apply batch updates to a Google Slides presentation.

Important: Each request object must contain exactly one supported Slides request type, such as createSlide, createShape, insertText, updateTextStyle, createImage, or deleteObject.

insertText.objectId must be a text-capable shape or table object ID,
not a slide/page object ID. To add text to a slide, create a text box
or shape first with createShape, set elementProperties.pageObjectId to
the slide ID, and then insertText into that shape objectId. To edit
existing text, call get_presentation with action="page" and use a
Shape or Table element ID.

To write speaker (presenter) notes, call get_presentation with
action="page" to get the slide's speaker notes shape ID, then target
that ID: deleteText with textRange {"type": "ALL"} to clear
the existing notes (omit this when they are already empty, which errors),
followed by insertText at insertionIndex 0. The notes page ID is not a
valid target.

Inputs: requests (required), presentation_id (required), user_google_email (required). Returns: result

check_drive_file_public_accessCheck Drive File Public AccessA
Read-onlyIdempotent

Searches for a file by name and checks if it has public link sharing enabled.

Inputs: file_name (required), user_google_email (required), drive_id. Returns: result

copy_drive_fileCopy Drive FileB

Creates a copy of an existing Google Drive file.

This tool copies the template document to a new location with an optional new name. The copy maintains all formatting and content from the original file.

Inputs: file_id (required), user_google_email (required), new_name, copy_comments, +1 more. Returns: result

create_docCreate DocA

Creates a new Google Doc and optionally inserts initial content.

content is inserted as plain text (Markdown is not rendered); use import_to_google_doc to create a doc from Markdown.

After creation, the document body starts at index 1. A new empty doc has total length 2 (one section break at index 0, one newline at index 1).

To build a rich document after creation, use batch_update_doc with insert_text operations using end_of_segment=true to append content sequentially without calculating indices. Then call inspect_doc_structure to get exact positions before applying formatting in a separate batch call.

Inputs: title (required), user_google_email (required), content, folder_id. Returns: result

create_drive_fileCreate Drive FileA

Creates a new file in Google Drive, supporting creation within shared drives. Accepts direct text content, inline base64 bytes, or a fileUrl to fetch content from. Where local file access is disabled it can instead return an upload URL for the caller to PUT file bytes to. With shortcut_target_id it creates a Drive shortcut to an existing file or folder instead. This stores the supplied bytes without converting them to Google Docs, Sheets, or Slides. Use the matching import_to_google_* tool for Google-native conversion.

Inputs: file_name (required), user_google_email (required), content, fileUrl, +6 more. Returns: result

create_drive_folderCreate Drive FolderA

Creates a new folder in Google Drive, supporting creation within shared drives.

Inputs: folder_name (required), user_google_email (required), parent_folder_id. Returns: result

create_formCreate FormB

Create a new form using the title given in the provided form message in the request.

Inputs: title (required), user_google_email (required), description, document_title. Returns: result

create_presentationCreate PresentationC

Create a new Google Slides presentation and return its ID and URL.

Inputs: user_google_email (required), title. Returns: result

create_reactionCreate ReactionA

Adds an emoji reaction to a Google Chat message.

Inputs: message_id (required), emoji_unicode (required), user_google_email (required). Returns: result

create_sheetCreate SheetC

Creates a new sheet or duplicates an existing sheet, into destination_spreadsheet_id when given (user_google_email: str, spreadsheet_id: str, sheet_name: Optional[str] = None, source_sheet_name: Optional[str] = None, insert_sheet_index: Optional[int] = None, destination_spreadsheet_id: Optional[str] = None).

Inputs: spreadsheet_id (required), user_google_email (required), sheet_name, source_sheet_name, +2 more. Returns: result

create_spreadsheetCreate SpreadsheetC

Creates a new Google Spreadsheet.

Inputs: title (required), user_google_email (required), folder_id, sheet_names. Returns: result

create_table_with_dataCreate Table with DataA

Creates a table and populates it with data in one reliable operation.

CRITICAL: YOU MUST CALL inspect_doc_structure FIRST TO GET THE INDEX!

MANDATORY WORKFLOW - DO THESE STEPS IN ORDER:

Step 1: ALWAYS call inspect_doc_structure first Step 2: Use the 'total_length' value from inspect_doc_structure as your index Step 3: Format data as 2D list: [["col1", "col2"], ["row1col1", "row1col2"]] Step 4: Call this function with the correct index and data

EXAMPLE DATA FORMAT: table_data = [ ["Header1", "Header2", "Header3"], # Row 0 - headers ["Data1", "Data2", "Data3"], # Row 1 - first data row ["Data4", "Data5", "Data6"] # Row 2 - second data row ]

CRITICAL INDEX REQUIREMENTS:

  • NEVER use index values like 1, 2, 10 without calling inspect_doc_structure first

  • ALWAYS get index from inspect_doc_structure 'total_length' field

  • Index must be a valid insertion point in the document

DATA FORMAT REQUIREMENTS:

  • Must be 2D list of strings only

  • Each inner list = one table row

  • All rows MUST have same number of columns

  • Use empty strings "" for empty cells, never None

  • Use debug_table_structure after creation to verify results

Inputs: index (required), table_data (required), document_id (required), user_google_email (required), +3 more. Returns: result

debug_table_structureDebug Table StructureA
Read-onlyIdempotent

ESSENTIAL DEBUGGING TOOL - Use this whenever tables don't work as expected.

USE THIS IMMEDIATELY WHEN:

  • Table population put data in wrong cells

  • You get "table not found" errors

  • Data appears concatenated in first cell

  • Need to understand existing table structure

  • Planning to fill existing cells with modify_doc_text at their insertion_index

WHAT THIS SHOWS YOU:

  • Exact table dimensions (rows × columns)

  • Each cell's position coordinates (row,col)

  • Current content in each cell

  • Insertion indices for each cell

  • Table boundaries and ranges

HOW TO READ THE OUTPUT:

  • "dimensions": "2x3" = 2 rows, 3 columns

  • "position": "(0,0)" = first row, first column

  • "current_content": What's actually in each cell right now

  • "insertion_index": Where new text would be inserted in that cell

WORKFLOW INTEGRATION:

  1. After creating table → Use this to verify structure

  2. Before populating → Use this to plan your data format

  3. After population fails → Use this to see what went wrong

  4. When debugging → Compare your data array to actual table structure

Inputs: document_id (required), user_google_email (required), tab_id, table_index. Returns: result

download_chat_attachmentDownload Chat AttachmentA

Downloads an attachment from a Google Chat message and saves it to local disk.

In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour).

Inputs: message_id (required), user_google_email (required), attachment_index. Returns: result

draft_gmail_messageDraft Gmail MessageA

Creates a draft email in the user's Gmail account. Supports new, reply, and forward drafts with optional attachments. Supports Gmail's "Send As" feature to draft from configured alias addresses.

To save a forward as a draft for review, pass forward_message_id. The original subject, body (quoted with a "Forwarded message" header), and attachments are carried over. In forward mode, body (if any) is prepended as a note, subject is optional, and threading, reply, and signature options do not apply.

SCHEDULED SEND IS NOT AVAILABLE. Gmail's REST API exposes no send-time parameter; the Schedule send feature is web-UI only, and a message cannot be placed in the Scheduled folder through the API. Do not claim a message was scheduled. To deliver at a chosen time, create a draft with draft_gmail_message. An external scheduler must retain the message data to create and send a new message via send_gmail_message then, or call users.drafts.send with the draft ID returned by draft_gmail_message. Alternatively, let the user schedule the draft in the Gmail UI.

Inputs: user_google_email (required), cc, to, bcc, +16 more. Returns: result

export_doc_to_pdfExport Doc to PDFA

Exports a Google Doc to PDF format and saves it to Google Drive.

Inputs: document_id (required), user_google_email (required), folder_id, pdf_filename. Returns: result

find_and_replace_docFind and Replace DocA
Destructive

Finds and replaces text throughout a Google Doc. No index calculation required.

This is the safest way to update specific text in a document because it does not require knowing any indices. Use this tool when you need to:

  • Replace placeholder text (e.g., {{TITLE}}) with real content

  • Update specific words or phrases throughout the document

  • Make targeted text changes without risk of index errors

For building documents from scratch, consider inserting text with unique placeholders via batch_update_doc, then using this tool to replace them.

Inputs: find_text (required), document_id (required), replace_text (required), user_google_email (required), +3 more. Returns: result

format_sheet_rangeFormat Sheet RangeB
Destructive

Applies formatting to a range: colors, number formats, text wrapping, alignment, text styling, cell merging/unmerging, borders, and dropdown lists.

Colors accept hex strings (#RRGGBB). Number formats follow Sheets types (e.g., NUMBER, CURRENCY, DATE, PERCENT). If no sheet name is provided, the first sheet is used.

Inputs: range_name (required), spreadsheet_id (required), user_google_email (required), bold, +17 more. Returns: result

generate_trigger_codeGenerate Trigger CodeA
Read-onlyIdempotent

Generates Apps Script code for creating triggers.

The Apps Script API cannot create triggers directly - they must be created from within Apps Script itself. This tool generates the code you need. To list or remove existing triggers without opening the editor, use manage_script_trigger (action="list" / action="delete") instead.

Inputs: trigger_type (required), function_name (required), schedule. Returns: result

get_contactGet ContactA
Read-onlyIdempotent

Get detailed information about a specific contact.

Inputs: contact_id (required), user_google_email (required). Returns: result

get_contact_groupGet Contact GroupA
Read-onlyIdempotent

Get details of a specific contact group including its members.

Inputs: group_id (required), user_google_email (required), max_members. Returns: result

get_doc_as_markdownGet Doc as MarkdownA
Read-onlyIdempotent

Reads a Google Doc and returns it as clean Markdown with optional comment context.

Unlike get_doc_content which returns plain text, this tool preserves document formatting as Markdown: headings, bold/italic/strikethrough, links, code spans, ordered/unordered lists with nesting, and tables.

When comments are included (the default), each comment's anchor text — the specific text the comment was attached to — is preserved, giving full context for the discussion.

Inputs: document_id (required), user_google_email (required), tab_id, heading, +6 more. Returns: result

get_doc_contentGet Doc ContentA
Read-onlyIdempotent

Retrieves content of a Google Doc or a Drive file (like .docx) identified by document_id.

  • Native Google Docs: Fetches content via Docs API.

  • Office files (.docx, etc.) stored in Drive: Downloads via Drive API and extracts text.

By default, native Google Docs text is index-aligned with the document: empty paragraphs are preserved and every non-text element that occupies an index (inline object, page break, footnote reference, ...) is rendered as one U+FFFC placeholder per index. The document body starts at index 1, so an offset n into the text that follows "--- CONTENT ---" is document index n + 1, and that index can be passed straight to format_text or delete_text. Tables and multi-tab documents interleave separators, so alignment holds up to the first table or tab header.

Set preserve_context=True for readable link destinations, internal targets, smart-chip values, table boundaries, headers, footers, footnotes, and object context exposed by the Docs API. This output is plain text, not Markdown, and its offsets must not be used as document editing indices. Comments, revision history, exact visual layout, and chip details hidden by the API are not included. Use get_doc_as_markdown for formatting or comments.

Inputs: document_id (required), user_google_email (required), tab_id, heading, +3 more. Returns: result

get_drive_file_contentGet Drive File ContentA
Read-onlyIdempotent

Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives.

• Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • PDFs → text extracted with pypdf when possible; scanned/image-only PDFs fall back to a download hint. • Images (PNG, JPEG, GIF, WebP) → returned as MCP image content after the metadata header. SVG → returned as its markup; raster images it embeds as base64 are attached as image content, numbered to match their place in the markup. BMP and TIFF → base64 text, or a download hint when over the default page size. • Any other file → downloaded; tries UTF-8 decode, else notes binary.

Inputs: file_id (required), user_google_email (required), offset, full_content. Returns: result

get_drive_file_download_urlGet Drive File Download URLA
Read-onlyIdempotent

Downloads a Google Drive file and saves it to local disk.

In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour). In stateless mode (no file storage), returns the file itself as an embedded resource, up to WORKSPACE_MCP_STATELESS_INLINE_MAX_BYTES (default 10 MiB, and never more than WORKSPACE_MCP_MAX_FILE_BYTES when that is set).

For Google native files (Docs, Sheets, Slides, Drawings), exports to a useful format:

  • Google Docs -> PDF (default) or DOCX if export_format='docx'

  • Google Sheets -> XLSX (default), PDF if export_format='pdf', or CSV if export_format='csv'

  • Google Slides -> PDF (default) or PPTX if export_format='pptx'

  • Google Drawings -> PNG (default), or PDF, JPG or SVG if export_format='pdf', 'jpg' or 'svg'

For other files, downloads the original file format.

Inputs: file_id (required), user_google_email (required), export_format. Returns: result

get_drive_file_permissionsGet Drive File PermissionsA
Read-onlyIdempotent

Gets detailed metadata about a Google Drive file including sharing permissions, parent folder IDs, ownership, and lifecycle timestamps.

Inputs: file_id (required), user_google_email (required). Returns: result

get_eventsGet EventsA
Read-onlyIdempotent

Retrieves events from a specified Google Calendar. Can retrieve a single event by ID or multiple events within a time range. You can also search for events by keyword by supplying the optional "query" param.

Inputs: user_google_email (required), query, detailed, event_id, +7 more. Returns: result

get_formGet FormC
Read-onlyIdempotent

Get a form.

Inputs: form_id (required), user_google_email (required). Returns: result

get_form_responseGet Form ResponseB
Read-onlyIdempotent

Get one response from the form.

Inputs: form_id (required), response_id (required), user_google_email (required). Returns: result

get_gmail_attachment_contentGet Gmail Attachment ContentA

Downloads an email attachment and saves it to local disk.

In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour). May re-fetch message metadata to resolve filename and MIME type.

Inputs: message_id (required), attachment_id (required), user_google_email (required), return_base64, +1 more. Returns: result

get_gmail_message_contentGet Gmail Message ContentA
Read-onlyIdempotent

Retrieves the full content (subject, sender, recipients, body) of a specific Gmail message.

Set page_offset=0 to read the complete rendered body, excluding attachments and attached messages, as JSON pages of at most page_size characters. Follow next_offset until complete=true, passing body_sha256 as expected_sha256 and keeping body_format and include_links unchanged.

Bodies are returned inline and truncated at 20,000 characters. Set full=True to get the complete, untruncated message instead: it is exported to storage and the response carries a short-lived download URL (HTTP transport) or file path (stdio transport) rather than the body, so large messages never stream through the model context. Stateless deployments without GCS staging have no storage, so there full=True returns the untruncated body inline; with GCS staging configured it returns a signed download URL like any other HTTP deployment.

Inputs: message_id (required), user_google_email (required), full, format, +6 more. Returns: result

get_gmail_messages_content_batchGet Gmail Messages Content BatchA
Read-onlyIdempotent

Retrieves the content of multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion.

Inputs: message_ids (required), user_google_email (required), format, body_format, +1 more. Returns: result

get_gmail_thread_contentGet Gmail Thread ContentA
Read-onlyIdempotent

Retrieves the complete content of a Gmail conversation thread, including all messages.

Optionally also returns structured ownership analysis so a caller can determine who sent the last message and who owes whom a response without re-parsing the formatted string or making a second tool call.

Inputs: thread_id (required), user_google_email (required), body_format, include_links, +1 more. Returns: result

get_gmail_threads_content_batchGet Gmail Threads Content BatchA
Read-onlyIdempotent

Retrieves the content of multiple Gmail threads in a single batch request. Supports up to 25 threads per batch to prevent SSL connection exhaustion.

Inputs: thread_ids (required), user_google_email (required), body_format, include_links. Returns: result

get_messagesGet MessagesC
Read-onlyIdempotent

Retrieves messages from a Google Chat space.

Inputs: space_id (required), user_google_email (required), order_by, page_size, +2 more. Returns: result

get_presentationGet PresentationA
Read-onlyIdempotent

Read a deck: action "deck" (default) lists its slides and layouts, "page" gives one slide's element IDs and all its text (start here for content), "markup" gives one slide's elements as compact JSON with geometry and styles, "layouts" lists every layout.

Actions: - "deck": Title, URL, revision, and per slide its ID, title, layout, element counts and notes length; then the deck's layouts with the placeholders each provides. Lists 100 slides per call; a longer deck ends with the offset to call again with. Uses offset. - "layouts": Every layout, grouped by master, with its placeholders and the slides using it. Only needed when "deck" says there are more layouts than it lists. Uses after. - "page": Every element on one slide with its ID, in z-order, groups nested, with all text, table cells, image sources and speaker notes. No geometry or styling. Requires page_id. - "markup": One slide, or chosen elements, as JSON: boxes in points ({"x","y","w","h"}), text as paragraphs and runs, styles in a shared "styles" table referenced by "s", only locally set properties. A shape with no "shape" key is a TEXT_BOX. Requires page_id; uses targets and raw.

Inputs: presentation_id (required), user_google_email (required), raw, after, +4 more. Returns: result

get_script_activityGet Script ActivityA
Read-onlyIdempotent

Read execution activity for scripts: recent processes or aggregate metrics.

Actions: - "processes": List recent execution processes. Without script_id, lists the user's own recent runs; with script_id, lists all processes for that script visible to the user (including runs by others). Optional page_size. - "metrics": Get aggregate execution metrics (active users, total and failed executions) for one script. Requires script_id; optional metrics_granularity ("DAILY" or "WEEKLY").

Inputs: action (required), user_google_email (required), page_size, script_id, +1 more. Returns: result

get_script_projectGet Script ProjectA
Read-onlyIdempotent

Read Apps Script projects and their source files.

Actions: - "list": List Apps Script projects accessible to the user (Drive-backed). Optional: page_size, page_token. - "get": Retrieve one project's metadata and file overview, or one complete source file when file_name is provided. Requires script_id.

Inputs: action (required), user_google_email (required), file_name, page_size, +2 more. Returns: result

get_script_versionGet Script VersionA
Read-onlyIdempotent

List or retrieve immutable version snapshots of a script project.

Actions: - "list": List every version of the project. - "get": Retrieve one version. Requires version_number.

Inputs: action (required), script_id (required), user_google_email (required), version_number. Returns: result

get_search_engine_infoGet Search Engine InfoB
Read-onlyIdempotent

Retrieves metadata about a Programmable Search Engine.

Inputs: user_google_email (required). Returns: result

get_spreadsheet_infoGet Spreadsheet InfoA
Read-onlyIdempotent

Gets information about a specific spreadsheet including its sheets.

Inputs: spreadsheet_id (required), user_google_email (required). Returns: result

get_taskGet TaskB
Read-onlyIdempotent

Get details of a specific task.

Inputs: task_id (required), task_list_id (required), user_google_email (required). Returns: result

get_task_listGet Task ListB
Read-onlyIdempotent

Get details of a specific task list.

Inputs: task_list_id (required), user_google_email (required). Returns: result

import_to_google_docImport to Google DocA

Imports a file (Markdown, DOCX, TXT, HTML, RTF, ODT) into Google Docs format with automatic conversion.

Google Drive automatically converts the source file to native Google Docs format, preserving formatting like headings, lists, bold, italic, etc. Binary sources may be passed directly as base64_content. On a local server a file on disk can also be passed by path (preferred for batch operations, so callers do not need to load full file contents into their context).

Inputs: file_name (required), user_google_email (required), content, file_url, +5 more. Returns: result

import_to_google_sheetsImport to Google SheetsA

Imports a spreadsheet (XLSX, XLS, ODS, CSV, TSV) into Google Sheets format with automatic conversion.

Google Drive automatically converts the source spreadsheet to native Google Sheets format, preserving rows, columns, sheets, and values. Binary sources may be passed directly as base64_content. On a local server a file on disk can also be passed by path (preferred for batch operations, so callers do not need to load full file contents into their context).

Inputs: file_name (required), user_google_email (required), content, file_url, +5 more. Returns: result

import_to_google_slidesImport to Google SlidesA

Imports a presentation (PPTX, PPT, ODP) into Google Slides format with automatic conversion.

Google Drive automatically converts the source presentation to native Google Slides format, preserving slides, layouts, text, and images. Binary sources may be passed directly as base64_content. On a local server a file on disk can also be passed by path (preferred for batch operations, so callers do not need to load full file contents into their context).

Inputs: file_name (required), user_google_email (required), file_url, file_path, +4 more. Returns: result

insert_doc_elementsInsert Doc ElementsC

Inserts structural elements like tables, lists, or page breaks into a Google Doc.

Inputs: index (required), document_id (required), element_type (required), user_google_email (required), +4 more. Returns: result

insert_doc_imageInsert Doc ImageA

Inserts an image into a Google Doc from Drive or a URL.

Inputs: index (required), document_id (required), image_source (required), user_google_email (required), +2 more. Returns: result

inspect_doc_structureInspect Doc StructureA
Read-onlyIdempotent

Essential tool for finding safe insertion points and understanding document structure.

USE THIS FOR:

  • Finding the correct index for table insertion

  • Understanding document layout before making changes

  • Locating existing tables and their positions

  • Getting document statistics and complexity info

  • Inspecting structure of specific tabs

CRITICAL FOR TABLE OPERATIONS: ALWAYS call this BEFORE creating tables to get a safe insertion index.

WHAT THE OUTPUT SHOWS:

  • total_elements: Number of document elements

  • total_length: Maximum safe index for insertion

  • tables: Number of existing tables

  • table_details: Position and dimensions of each table

  • headers / footers: Real segment IDs and previews for header/footer editing

  • tabs: List of available tabs in the document (if no tab_id specified)

  • empty_paragraphs: newline-only count, excluding existing/suggested object anchors

  • empty_paragraph_ranges: start/end extents, capped at 100

  • empty_paragraph_ranges_truncated: whether ranges were omitted

  • last_paragraph: is_list_item and is_empty, or null if no body paragraphs

Paragraph statistics cover top-level body paragraphs and appear at the top level in basic mode or under "statistics" in detailed mode. Ranges can include required empty paragraphs. Before cleanup, use detailed=true to check adjacent elements, formatting, and object anchors. Preserve the final newline and newlines before tables, tables of contents, or section breaks. If the body ends with an empty paragraph, that paragraph's range has end == total_length; truncation may omit that range.

WORKFLOW FOR TABLE INSERTION: Step 1: Call this function Step 2: Note the "total_length" value Step 3: Use an index < total_length for table insertion Step 4: Create your table

FORMATTING WORKFLOW: After inserting all text via batch_update_doc with end_of_segment=true, call this tool with detailed=true to get exact start_index and end_index for every paragraph. Use those indices directly in format_text and update_paragraph_style operations in a second batch_update_doc call.

HEADER/FOOTER WORKFLOW: For ordinary header/footer text, use update_doc_headers_footers. If you need low-level segment editing, call this tool first and use the real segment_id values returned under headers/footers. Do not invent IDs.

The detailed output includes elements[].start_index and elements[].end_index with text_preview for each paragraph, making it easy to identify which ranges to format.

SUB-PARAGRAPH FORMATTING: text_preview is truncated to 100 characters by default. To compute the index of a token inside a longer paragraph, pass preview_chars=0 or None for untruncated text, then add the token's UTF-16 offset within that text to the paragraph's start_index (non-BMP characters such as emoji occupy two UTF-16 units).

Inputs: document_id (required), user_google_email (required), tab_id, detailed, +1 more. Returns: result

list_calendarsList CalendarsA
Read-onlyIdempotent

Retrieves a list of calendars accessible to the authenticated user.

Inputs: user_google_email (required), page_token, max_results. Returns: result

list_contact_groupsList Contact GroupsB
Read-onlyIdempotent

List contact groups (labels) for the user.

Inputs: user_google_email (required), page_size, page_token. Returns: result

list_contactsList ContactsA
Read-onlyIdempotent

List contacts for the authenticated user, optionally as a full or incremental sync.

Inputs: user_google_email (required), page_size, page_token, sort_order, +2 more. Returns: result

list_docs_in_folderList Docs in FolderC
Read-onlyIdempotent

Lists Google Docs within a specific Drive folder.

Inputs: user_google_email (required), folder_id, page_size, page_token. Returns: result

list_document_commentsList Document CommentsA
Read-onlyIdempotent

List all comments from a Google Document (optional max_comments to limit results).

Inputs: document_id (required), user_google_email (required), max_comments. Returns: result

list_drive_itemsList Drive ItemsA
Read-onlyIdempotent

Lists files/folders or shared drive containers, supporting shared drives. If drive_id is specified, lists items within that shared drive. folder_id is then relative to that drive (or use drive_id as folder_id for root). If drive_id is not specified, lists items from user's "My Drive" and accessible shared drives (if include_items_from_all_drives is True). Set resource_type to "shared_drives" to list shared drive containers instead of folder contents.

Inputs: user_google_email (required), query, corpora, detailed, +9 more. Returns: result

list_form_responsesList Form ResponsesA
Read-onlyIdempotent

List a form's responses.

Inputs: form_id (required), user_google_email (required), page_size, page_token. Returns: result

list_gmail_filtersList Gmail FiltersA
Read-onlyIdempotent

Lists all Gmail filters configured in the user's mailbox.

Inputs: user_google_email (required). Returns: result

list_gmail_labelsList Gmail LabelsB
Read-onlyIdempotent

Lists labels in the user's Gmail account.

Inputs: user_google_email (required), prefix, compact, include_system. Returns: result

list_presentation_commentsList Presentation CommentsA
Read-onlyIdempotent

List all comments from a Google Presentation (optional max_comments to limit results).

Inputs: presentation_id (required), user_google_email (required), max_comments. Returns: result

list_script_deploymentsList Script DeploymentsC
Read-onlyIdempotent

List deployments for an Apps Script project.

Inputs: script_id (required), user_google_email (required). Returns: result

list_sheet_tablesList Sheet TablesA
Read-onlyIdempotent

Lists all structured tables in a spreadsheet with their IDs, names, ranges, and column details. Use this to find table IDs for append_table_rows.

Inputs: spreadsheet_id (required), user_google_email (required). Returns: result

list_spacesList SpacesB
Read-onlyIdempotent

Lists Google Chat spaces (rooms and direct messages) accessible to the user, or the members of one space.

Inputs: user_google_email (required), space_id, page_size, space_type. Returns: result

list_spreadsheet_commentsList Spreadsheet CommentsA
Read-onlyIdempotent

List all comments from a Google Spreadsheet (optional max_comments to limit results).

Inputs: spreadsheet_id (required), user_google_email (required), max_comments. Returns: result

list_spreadsheetsList SpreadsheetsB
Read-onlyIdempotent

Lists spreadsheets from Google Drive that the user has access to.

Inputs: user_google_email (required), corpora, drive_id, page_token, +1 more. Returns: result

list_task_listsList Task ListsA
Read-onlyIdempotent

List all task lists for the user.

Inputs: user_google_email (required), page_token, max_results. Returns: result

list_tasksList TasksA
Read-onlyIdempotent

List all tasks in a specific task list.

Inputs: task_list_id (required), user_google_email (required), due_max, due_min, +9 more. Returns: result

manage_calendarManage CalendarB
Destructive

Creates secondary Google Calendars and manages who a calendar is shared with (its access control rules).

Inputs: action (required), user_google_email (required), role, rule_id, +8 more. Returns: result

manage_conditional_formattingManage Conditional FormattingA
Destructive

Manages conditional formatting rules on a Google Sheet. Supports adding, updating, and deleting conditional formatting rules via a single tool.

Inputs: action (required), spreadsheet_id (required), user_google_email (required), range_name, +7 more. Returns: result

manage_contactManage ContactB
Destructive

Create, update, or delete a contact. Consolidated tool replacing create_contact, update_contact, and delete_contact.

Inputs: action (required), user_google_email (required), urls, email, +22 more. Returns: result

manage_contact_groupManage Contact GroupA
Destructive

Create, update, delete a contact group, or modify its members. Consolidated tool replacing create_contact_group, update_contact_group, delete_contact_group, and modify_contact_group_members.

Inputs: action (required), user_google_email (required), name, group_id, +3 more. Returns: result

manage_contacts_batchManage Contacts BatchB
Destructive

Batch create, update, or delete contacts. Consolidated tool replacing batch_create_contacts, batch_update_contacts, and batch_delete_contacts.

Inputs: action (required), user_google_email (required), field, updates, +2 more. Returns: result

manage_deploymentManage DeploymentB
Destructive

Create, update, or delete Apps Script deployments.

Inputs: action (required), script_id (required), user_google_email (required), description, +3 more. Returns: result

manage_doc_tabManage Doc TabB
Destructive

Manage document tabs: create, rename, delete, or populate from Markdown.

Inputs: action (required), document_id (required), user_google_email (required), index, +5 more. Returns: result

manage_document_commentManage Document CommentA
Destructive

Manage comments on a Google Document.

Actions:

  • create: Create a new document-level comment. Requires comment_content. Note: The Drive API cannot anchor comments to specific text; only the Google Docs UI can do that.

  • reply: Reply to a comment. Requires comment_id and comment_content.

  • resolve: Resolve a comment. Requires comment_id.

  • update: Edit a comment's text. Requires comment_id and comment_content.

  • delete: Delete a comment. Requires comment_id.

Inputs: action (required), document_id (required), user_google_email (required), comment_id, +1 more. Returns: result

manage_drive_accessManage Drive AccessB
Destructive

Consolidated tool for managing Google Drive file and folder access permissions.

Supports granting, batch-granting, updating, revoking permissions, and transferring file ownership -- all through a single entry point.

Inputs: action (required), file_id (required), user_google_email (required), role, +10 more. Returns: result

manage_eventManage EventC
Destructive

Manages calendar events. Supports creating, updating, deleting, moving, and RSVP.

Inputs: action (required), user_google_email (required), summary, color_id, +30 more. Returns: result

manage_focus_timeManage Focus TimeA
Destructive

Manages Focus Time events on Google Calendar. These special events auto-decline meeting invitations and, by default, set the user's chat status to Do Not Disturb, helping protect blocks of uninterrupted work time.

Inputs: action (required), user_google_email (required), summary, end_time, +13 more. Returns: result

manage_gmail_filterManage Gmail FilterA
Destructive

Manages Gmail filters: create, delete, update, and apply to existing mail.

  • update: Gmail has no filter update API, so the filter is recreated (new one first, then the old one is deleted) and its ID changes. A passed criteria or filter_action replaces that whole object; omit one to keep the old filter's.

  • apply: runs a filter's label actions on mail ALREADY in the mailbox (Gmail filters only act on new mail). Only matching messages change, not whole conversations as in the web UI. Use filter_id, or criteria + filter_action for an ad-hoc run. Forwarding is never applied. Use dry_run=true first to see the search query and the match count. Needs the gmail.modify scope in addition to gmail.settings.basic.

Inputs: action (required), user_google_email (required), dry_run, criteria, +3 more. Returns: result

manage_gmail_labelManage Gmail LabelA
Destructive

Manages Gmail labels: create, update, or delete labels.

Inputs: action (required), user_google_email (required), name, label_id, +5 more. Returns: result

manage_named_rangeManage Named RangeA
Destructive

Manages the lifecycle of named ranges in a Google Sheet: list, create, update, or delete.

Inputs: action (required), spreadsheet_id (required), user_google_email (required), name, +4 more. Returns: result

manage_out_of_officeManage Out of OfficeA
Destructive

Manages Out of Office events on Google Calendar. These special events auto-decline meeting invitations and set the user's status to "Out of office" across Google Workspace.

Inputs: action (required), user_google_email (required), summary, end_time, +11 more. Returns: result

manage_presentation_commentManage Presentation CommentA
Destructive

Manage comments on a Google Presentation.

Actions:

  • create: Create a new comment. Requires comment_content. Note: The Drive API cannot anchor comments to arbitrary text; Slides comments are element-scoped via the API.

  • reply: Reply to a comment. Requires comment_id and comment_content.

  • resolve: Resolve a comment. Requires comment_id.

  • update: Edit a comment's text. Requires comment_id and comment_content.

  • delete: Delete a comment. Requires comment_id.

Inputs: action (required), presentation_id (required), user_google_email (required), comment_id, +1 more. Returns: result

manage_script_contentManage Script ContentA
Destructive

Update the source files of an Apps Script project.

Actions: - "update": Create or update files. By default (merge=True) the supplied files are overlaid onto the project by (name, type), leaving other files untouched. Set merge=False to replace the full project file set; any existing file omitted from files is permanently deleted.

Inputs: action (required), script_id (required), user_google_email (required), files, +1 more. Returns: result

manage_script_projectManage Script ProjectA
Destructive

Create or delete an Apps Script project.

Actions: - "create": Create a project. Requires title; parent_id is optional. - "delete": Permanently delete a project. Requires script_id.

Inputs: action (required), user_google_email (required), title, parent_id, +1 more. Returns: result

manage_script_triggerManage Script TriggerA
Destructive

List or delete the current user's installable triggers on a script project.

The Apps Script REST API has no triggers resource, so in dev_mode both actions provision (or refresh) a small helper file and run it via the Execution API - the only way to inspect or change trigger state without opening the editor. Neither action is read-only: the helper file may be written into the project on first use. To create a trigger, use generate_trigger_code to produce the setup code, add it with manage_script_content, then run it with run_script_function.

Actions: - "list": List the current user's triggers configured on the project. - "delete": Delete triggers matching every supplied selector. trigger_id removes one trigger; handler_function alone removes EVERY trigger calling that function; both together remove the trigger only if its handler also matches. At least one is required; run "list" first to find a trigger's unique ID.

Inputs: action (required), script_id (required), user_google_email (required), dev_mode, +3 more. Returns: result

manage_script_versionManage Script VersionA

Create immutable version snapshots of a script project.

Versions capture a snapshot of the current script code; once created they cannot be modified.

Actions: - "create": Create a new version from the current code. Optional description.

Inputs: action (required), script_id (required), user_google_email (required), description. Returns: result

manage_sheet_tabManage Sheet TabA
Destructive

Manages an existing sheet tab: rename, delete, hide, unhide, reorder, or style (tab color and gridlines).

Use create_sheet to add a tab, and resize_sheet_dimensions for row and column level changes. This tool operates on the tab itself.

Inputs: action (required), sheet_name (required), spreadsheet_id (required), user_google_email (required), +4 more. Returns: result

manage_spreadsheet_commentManage Spreadsheet CommentA
Destructive

Manage comments on a Google Spreadsheet.

Actions:

  • create: Create a new comment. Requires comment_content. Pass cell (A1 notation, e.g. 'Sheet1!B2'; defaults to the first sheet) to anchor it to a cell; otherwise it is a file-level comment.

  • reply: Reply to a comment. Requires comment_id and comment_content.

  • resolve: Resolve a comment. Requires comment_id.

  • update: Edit a comment's text. Requires comment_id and comment_content.

  • delete: Delete a comment. Requires comment_id.

Inputs: action (required), spreadsheet_id (required), user_google_email (required), cell, +2 more. Returns: result

manage_taskManage TaskA
Destructive

Manage tasks: create, update, delete, or move tasks within task lists.

Inputs: action (required), task_list_id (required), user_google_email (required), due, +7 more. Returns: result

manage_task_listManage Task ListB
Destructive

Manage task lists: create, update, delete, or clear completed tasks.

Inputs: action (required), user_google_email (required), title, task_list_id. Returns: result

modify_doc_textModify Doc TextA
Destructive

Modifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation.

TIP: To append text to the end of the document without calculating indices, set end_of_segment=true. This avoids index calculation errors.

HEADING MODE: Pass heading instead of start_index to edit the body below a heading, up to the next heading of equal or shallower level. text is rendered as Markdown and replaces that body; end_of_segment=true appends instead. Formatting parameters without text format the whole body.

For ordinary header/footer text, prefer update_doc_headers_footers. Only pass segment_id when you already have a real header/footer/footnote segment ID from inspect_doc_structure output. Do not guess IDs such as "kix.header" or "kix.footer".

Inputs: document_id (required), user_google_email (required), bold, text, +20 more. Returns: result

modify_gmail_message_labelsModify Gmail Message LabelsA
Destructive

Adds or removes labels from a Gmail message. To archive an email, remove the INBOX label. To delete an email, add the TRASH label.

Inputs: message_id (required), user_google_email (required), add_label_ids, remove_label_ids. Returns: result

modify_sheet_valuesModify Sheet ValuesA
Destructive

Modifies values in a specific range of a Google Sheet - can write, update, or clear values, insert Smart Chips (Drive files/folders or People), or copy another range into it.

Inputs: range_name (required), spreadsheet_id (required), user_google_email (required), chips, +7 more. Returns: result

move_sheet_rowsMove Sheet RowsA
Destructive

Moves rows from one sheet to another within the same spreadsheet. The move is performed in a single batchUpdate (copyPaste followed by deleteDimension). Note: batchUpdate executes requests sequentially but does not roll back on partial failure — if the copy succeeds but the delete fails, rows may be duplicated. Formulas, data types, and formatting are preserved (unlike a values.get/append round-trip). Row numbers are 1-based (matching the spreadsheet UI).

Inputs: end_row (required), start_row (required), source_sheet (required), spreadsheet_id (required), +2 more. Returns: result

query_freebusyQuery FreebusyB
Read-onlyIdempotent

Returns free/busy information for a set of calendars.

Inputs: time_max (required), time_min (required), user_google_email (required), calendar_ids, +2 more. Returns: result

read_sheet_valuesRead Sheet ValuesA
Read-onlyIdempotent

Reads values from a specific range in a Google Sheet, one line per row: the sheet row number, then the row's cells separated by tabs.

Inputs: spreadsheet_id (required), user_google_email (required), range_name, include_notes, +4 more. Returns: result

render_page_to_imageRender Page to ImageA
Read-onlyIdempotent

Render a slide (or any page, including notes pages) to an image and return it as image content, for looking at a slide's layout and visuals.

This is the way to see a slide: use it instead of exporting the presentation to PPTX or PDF and rendering that.

Inputs: page_object_id (required), presentation_id (required), user_google_email (required), size. Returns: result

resize_sheet_dimensionsResize Sheet DimensionsA
Destructive

Manages sheet-level dimension properties: resize columns/rows, auto-resize to fit content, freeze rows/columns, hide/unhide rows/columns, and insert/delete rows/columns.

Every row number and column letter refers to the sheet as it was before the call, even when one call both inserts and deletes. Deletes are applied before inserts, and an insert position inside a deleted span lands where that span was.

Inputs: spreadsheet_id (required), user_google_email (required), hide_rows, row_sizes, +16 more. Returns: result

run_script_functionRun Script FunctionC
Destructive

Executes a function in a deployed script.

Inputs: script_id (required), function_name (required), user_google_email (required), dev_mode, +2 more. Returns: result

search_contactsSearch ContactsC
Read-onlyIdempotent

Search contacts by name, email, phone number, or other fields.

Inputs: query (required), user_google_email (required), source, page_size. Returns: result

search_customSearch CustomA
Read-onlyIdempotent

Performs a search using Google Custom Search JSON API.

Inputs: q (required), user_google_email (required), num, safe, +9 more. Returns: result

search_docsSearch DocsB
Read-onlyIdempotent

Searches for Google Docs by name using Drive API (mimeType filter).

Inputs: query (required), user_google_email (required), corpora, drive_id, +2 more. Returns: result

search_drive_filesSearch Drive FilesB
Read-onlyIdempotent

Searches for files and folders within a user's Google Drive, including shared drives.

Inputs: query (required), user_google_email (required), corpora, detailed, +7 more. Returns: result

search_gmail_messagesSearch Gmail MessagesA
Read-onlyIdempotent

Searches messages in a user's Gmail account based on a query. Returns both Message IDs and Thread IDs for each found message, along with Gmail web interface links for manual verification. Supports pagination via page_token parameter.

Inputs: query (required), user_google_email (required), page_size, page_token, +1 more. Returns: result

search_messagesSearch MessagesA
Read-onlyIdempotent

Searches for messages in Google Chat spaces by text content and/or time range.

Inputs: user_google_email (required), query, space_id, page_size, +2 more. Returns: result

send_gmail_messageSend Gmail MessageA
Destructive

Sends an email using the user's Gmail account. Supports new emails, replies, and forwards, with optional attachments. Supports Gmail's "Send As" feature to send from configured alias addresses.

To forward an existing message, pass forward_message_id. The original subject, body (quoted with a "Forwarded message" header), and attachments are carried over. In forward mode, body (if any) is prepended as a note and subject is optional. Threading, reply, and signature options do not apply when forwarding.

THIS TOOL SENDS IMMEDIATELY AND CANNOT SCHEDULE. Gmail's REST API exposes no send-time parameter; Schedule send is a web-UI feature with no API equivalent, so no argument to this tool can defer delivery. Never tell a user a message was scheduled. For "prepare now, deliver later", create a draft with draft_gmail_message. An external scheduler must retain the message data to create and send a new message via send_gmail_message at the chosen time, or call users.drafts.send with the draft ID returned by draft_gmail_message. Alternatively, let the user schedule that draft in the Gmail UI.

Inputs: user_google_email (required), cc, to, bcc, +16 more. Returns: result

send_messageSend MessageA
Destructive

Sends a message to a Google Chat space, or edits a message already sent there.

Inputs: space_id (required), message_text (required), user_google_email (required), thread_key, +2 more. Returns: result

set_drive_file_permissionsSet Drive File PermissionsA
Destructive

Sets file-level sharing settings and controls link sharing for a Google Drive file or folder.

This is a high-level tool for the most common permission changes. Use this to toggle "anyone with the link" access or configure file-level sharing behavior. For managing individual user/group permissions, use share_drive_file or update_drive_permission instead.

Inputs: file_id (required), user_google_email (required), link_sharing, writers_can_share, +1 more. Returns: result

set_publish_settingsSet Publish SettingsB

Updates the publish settings of a form.

Inputs: form_id (required), user_google_email (required), is_published, is_accepting_responses. Returns: result

start_google_authStart Google AuthA

Manually initiate Google OAuth authentication flow.

NOTE: This is a legacy OAuth 2.0 tool and is disabled when OAuth 2.1 is enabled. The authentication system automatically handles credential checks and prompts for authentication when needed. Only use this tool if:

  1. You need to re-authenticate with different credentials

  2. You want to proactively authenticate before using other tools

  3. The automatic authentication flow failed and you need to retry

In most cases, simply try calling the Google Workspace tool you need - it will automatically handle authentication if required.

Inputs: service_name (required), user_google_email. Returns: result

update_doc_headers_footersUpdate Doc Headers FootersA
Destructive

Safely creates or updates header/footer text in a Google Doc.

This is the default tool for header/footer content. Do NOT use batch_update_doc with create_header_footer just to set header/footer text; that low-level operation is only for advanced section-break workflows and can fail when the default header/footer already exists.

This tool handles both creation and update in one call:

  • If the header/footer does not exist, it is automatically created first.

  • If the header/footer already exists, its content is replaced.

You do NOT need to create a header/footer separately before calling this tool. Simply call it with the desired content and it will work whether the header/footer exists or not.

Inputs: content (required), document_id (required), section_type (required), user_google_email (required), +1 more. Returns: result

update_drive_fileUpdate Drive FileA
Destructive

Updates metadata, properties, and/or content of a Google Drive file.

Providing new content (inline as content, fetched from file_url, or on a local server read from a file path) replaces the file's content in place, preserving the existing file ID, sharing, comments, and links. For native Google Docs/Sheets/Slides the source is uploaded with its source MIME type so the Drive API applies the same format conversion as import_to_google_doc (markdown headings, tables, bold, etc.). For any other file (.md, .txt, .pdf, ...) there is nothing to convert, so the bytes are written back as-is under the file's own MIME type. Metadata and content can be updated in a single call.

mode='append'/'prepend' splice content onto the file's existing text server-side, so only the new text has to be supplied — no need to send the whole file back to rewrite it.

Drive shortcuts are handled according to the kind of update: supported resource-local metadata changes (rename, move, trash, star, description, and custom properties) apply to the supplied shortcut, while content replacement follows the shortcut and updates its target. To avoid applying metadata to the wrong resource, a shortcut call cannot combine content with resource-local metadata. Update the shortcut metadata and target content in separate calls.

Inputs: file_id (required), user_google_email (required), mode, name, +13 more. Returns: result

update_paragraph_styleUpdate Paragraph StyleC

Apply paragraph-level formatting, heading styles, and/or list formatting to a range in a Google Doc.

This tool can apply named heading styles (H1-H6) for semantic document structure, create bulleted or numbered lists with nested indentation, and customize paragraph properties like alignment, spacing, and indentation. All operations can be applied in a single call.

Inputs: end_index (required), document_id (required), start_index (required), user_google_email (required), +26 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 118 tools

    Disambiguation2/5

    Many tools overlap or are near-duplicates, especially around Drive sharing (manage_drive_access, set_drive_file_permissions, get_drive_file_permissions, check_drive_file_public_access) and Docs editing (batch_update_doc, modify_doc_text, insert_doc_elements, create_table_with_data, find_and_replace_doc). Detailed descriptions help, but an agent can still easily misselect between consolidated and specialized tools, and one description references share_drive_file/update_drive_permission which are not present.

    Naming Consistency4/5

    Nearly all tool names use snake_case and a readable verb_noun pattern. There are minor deviations such as generic names (send_message, get_messages, search_messages) and a mix of consolidated manage_* tools with specific get_/list_/create_ tools, but overall the naming is predictable.

    Tool Count1/5

    The server exposes 118 tools, far beyond a well-scoped set and well into the '50+ tools' extreme mismatch category. Even for a broad Google Workspace suite, many tools overlap enough that the surface should be consolidated substantially.

    Completeness3/5

    Coverage is broad across Gmail, Calendar, Drive, Docs, Sheets, Slides, Chat, Forms, Tasks, Contacts, and Apps Script, with many CRUD and lifecycle operations represented. However there are notable gaps, such as no explicit Chat space creation, no explicit delete operations for several Drive-native objects, and limited account-level/settings coverage.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers