For Agents
Deploy, list, update, and delete Google Cloud Functions, plus orchestrate v2 upgrades with traffic redirection and source upload URLs. Useful for serverless deployment automation on GCP.
Get started with Cloud Functions API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"deploy a google cloud function"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Cloud Functions API API.
Deploy a new Cloud Function from a source archive in Cloud Storage
Generate a signed upload URL for a function source archive
Generate a signed download URL for an existing function source
List all functions in a region with paginated results
Patch a function's runtime configuration, memory, or environment variables
GET STARTED
Use for: I need to deploy a new Cloud Function from my packaged source, List every function in our europe-west1 region, Generate a signed upload URL so my CI can push the source archive, Update the memory and timeout for an existing function
Not supported: Does not run function code, schedule invocations, or store source archives in repos — use for function lifecycle, source upload URL, and v2 upgrade orchestration only.
Google Cloud Functions runs short-lived, event-driven code without server management. The v2 API exposes function lifecycle operations — create, update, delete, list — plus signed download and upload URLs for source archives, and traffic-management endpoints used during version upgrades. Agents can deploy a new function from a source archive, generate a signed upload URL for a build artefact, list every function in a region, and orchestrate the v2 upgrade flow that detaches, redirects traffic, and commits or aborts the upgrade.
Detach a function from a v1 deployment to begin a v2 upgrade
Redirect, commit, or abort a function upgrade and roll traffic between versions
Patterns agents use Cloud Functions API API for, with concrete tasks.
★ CI/CD-Driven Function Deployment
CI pipelines call generateUploadUrl to obtain a signed Cloud Storage URL, push the packaged source, and then call create or patch on the function resource referencing that source. The flow takes a few minutes per function and replaces gcloud-only deployment with a fully API-driven path that integrates with non-Google CI tools.
Call POST /v2/{parent}/functions:generateUploadUrl, push the archive to the returned URL, then POST /v2/{parent}/functions with sourceUploadUrl set
Region-Wide Function Inventory
Platform teams use the functions list endpoint to enumerate every Cloud Function in a region, surface runtime versions and memory settings, and flag functions that are running on deprecated runtimes. Pagination via pageToken supports environments with hundreds of functions.
Call GET /v2/{name}/locations to enumerate regions, then GET on the functions collection in each region with a filter on runtime
v1-to-v2 Upgrade Orchestration
Operators upgrading a v1 function to v2 call detachFunction to break the v1 link, redirectFunctionUpgradeTraffic to send traffic to the new version, and commitFunctionUpgrade or abortFunctionUpgrade depending on rollout health. Each step is a long-running operation, so callers poll until completion before moving on.
Call POST /v2/{name}:detachFunction, POST /v2/{name}:redirectFunctionUpgradeTraffic, then POST /v2/{name}:commitFunctionUpgrade once health checks pass
AI Agent Serverless Operator via Jentic
An agent invoked by a developer searches Jentic for the right Cloud Functions operation, deploys a packaged function, and reports the resulting URL. For upgrades, the agent orchestrates the detach, redirect, and commit sequence with health checks between each step. Jentic injects a scoped OAuth token at execution time.
Search Jentic for 'deploy google cloud function', execute against POST /v2/{parent}/functions with the prepared sourceUploadUrl, and return the resulting function URL
19 endpoints — google cloud functions runs short-lived, event-driven code without server management.
METHOD
PATH
DESCRIPTION
/v2/{+name}:generateUploadUrl
Get a signed URL to upload function source
/v2/{+name}:generateDownloadUrl
Get a signed URL to download function source
/v2/{+name}
Update a function's configuration
/v2/{+name}
Delete a function
/v2/{+name}:detachFunction
Detach a function to begin a v1-to-v2 upgrade
/v2/{+name}:redirectFunctionUpgradeTraffic
Redirect traffic during a function upgrade
/v2/{+name}:commitFunctionUpgrade
Commit a completed function upgrade
/v2/{+name}:abortFunctionUpgrade
Abort an in-progress function upgrade
/v2/{+name}:generateUploadUrl
Get a signed URL to upload function source
/v2/{+name}:generateDownloadUrl
Get a signed URL to download function source
/v2/{+name}
Update a function's configuration
/v2/{+name}
Delete a function
/v2/{+name}:detachFunction
Detach a function to begin a v1-to-v2 upgrade
Three things that make agents converge on Jentic-routed access.
Credential isolation
Google Cloud OAuth 2.0 credentials and service account keys are stored encrypted in the Jentic vault. Agents receive short-lived access tokens scoped to cloud-platform — raw service account JSON never enters the agent context.
Intent-based discovery
Agents search Jentic by intent (e.g. 'deploy google cloud function' or 'list cloud functions') and Jentic returns the matching operation with its parameter schema, so the agent can call the right endpoint without reading Discovery docs.
Time to first call
Direct Cloud Functions integration: 1-3 days for OAuth, source-upload flow, and long-running operation polling. Through Jentic: under an hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Cloud Run Admin API
Container-based serverless runtime that overlaps with Cloud Functions for longer-running workloads
Choose Cloud Functions for short event-driven code; choose Cloud Run when you need a custom container or longer execution time
Cloud Build API
Builds the source archive that Cloud Functions deploys
Use Cloud Build to compile and package source; use Cloud Functions to deploy the resulting archive
Cloud Tasks API
Schedules HTTP tasks that can target Cloud Functions endpoints
Use Cloud Functions to host the handler; use Cloud Tasks to enqueue work that calls it asynchronously
Specific to using Cloud Functions API API through Jentic.
What authentication does the Cloud Functions API use?
The Cloud Functions API uses OAuth 2.0 with the cloud-platform scope. Tokens are issued for a Google service account or end user. Through Jentic, the OAuth credential lives in the Jentic vault and the agent receives a short-lived access token only — the underlying service account JSON never enters agent context.
Can I deploy a Cloud Function from a CI pipeline using this API?
Yes. Call POST /v2/{parent}/functions:generateUploadUrl, push your zipped source to the returned signed URL, then POST /v2/{parent}/functions with sourceUploadUrl set to that URL and the runtime, entry point, and trigger configuration. The deployment runs as a long-running operation.
What are the rate limits for the Cloud Functions API?
Cloud Functions admin-API quotas are published per-method in the Google Cloud console under the Cloud Functions API quota page; typical defaults are several hundred deployment operations per minute per project, with separate per-region concurrency limits on long-running operations.
How do I orchestrate a v1-to-v2 function upgrade through Jentic?
Search Jentic for 'detach google cloud function' and execute the returned operation against POST /v2/{name}:detachFunction. Then call /v2/{name}:redirectFunctionUpgradeTraffic to shift traffic, and finally /v2/{name}:commitFunctionUpgrade once health checks pass — or /v2/{name}:abortFunctionUpgrade to roll back.
Can I update a function's runtime or memory without redeploying source?
Yes. PATCH /v2/{name} with an updateMask that lists the fields to change, such as serviceConfig.availableMemory or buildConfig.runtime. The patch reuses the existing source archive and only rebuilds when source-related fields change.
Is Cloud Functions free?
Cloud Functions includes a monthly free tier of invocations, GB-seconds, and outbound networking; usage beyond that is billed per invocation, per GB-second of execution, and for outbound networking as documented on the Cloud Functions pricing page.
/v2/{+name}:redirectFunctionUpgradeTraffic
Redirect traffic during a function upgrade
/v2/{+name}:commitFunctionUpgrade
Commit a completed function upgrade
/v2/{+name}:abortFunctionUpgrade
Abort an in-progress function upgrade