Connect the Google Apps Script MCP server to your AI agent Open source, MIT, on npm. Setup instructions for Claude, Cursor and Codex are in the repository; adoption questions — Telegram. GitHub repository Telegram

Google Apps Script: Raw API call — MCP tool

Google Apps Script MCP tool: Escape hatch — calls any Apps Script API v1 path directly.

Technical name: raw_request

What task it solves

I want to call an Apps Script API endpoint the typed tools don't cover.

Sends a GET/POST/PUT/DELETE request to any relative Apps Script API v1 path with the Bearer token added automatically.

When to use it

Use it for edge cases: a hand-built content PUT, repeated query filter params, or fields a typed tool does not expose. Prefer the typed tools whenever one fits — they carry the guard rails.

What to provide

  • pathrequired. Relative to https://script.googleapis.com, e.g. v1/projects/<scriptId>/deployments; may carry a query string.
  • methodoptional. GET (default), POST, PUT or DELETE.
  • bodyoptional. JSON body for POST/PUT.

What it returns

The upstream API's JSON response verbatim, or a clear error with the HTTP status and Google's message.

What changes in Google Apps Script

Depends entirely on the call: it can replace a project's whole file set (PUT v1/projects/<id>/content — prefer update_project_content, whose merge mode protects the other files) or delete a deployment. Treat it as the most powerful tool here.

Example request

Call GET v1/projects/1AbC.../content?versionNumber=3 and diff it against the current code.

Errors and limitations

Paths resolving to a foreign origin are rejected before any network traffic, so the token never leaves script.googleapis.com. Writes (POST/PUT/DELETE) are never retried after ambiguous failures; the scope requirements of the underlying endpoint apply.

Access also depends on token permissions, quotas, and upstream API limits.

Related MCP tools

Technical details