-
Notifications
You must be signed in to change notification settings - Fork 0
Module Template
Module flag: cloudrun
Enabled by default: yes
The Cloud Run module provides read and write access to Cloud Run services and jobs in your GCP project. Use it to inspect traffic splits, diagnose revision rollouts, audit job execution history, and — with explicit confirmation — update traffic routing between revisions.
Cloud Run is included when you start the server without --modules (all modules enabled). To load only the Cloud Run tools:
GCP_PROJECT_ID=my-project ./aura-tracker-gcp --modules cloudrunCombine with related modules:
GCP_PROJECT_ID=my-project ./aura-tracker-gcp --modules cloudrun,aura,monitoring,logging,iamEnable these APIs in your project before using this module:
gcloud services enable run.googleapis.com monitoring.googleapis.com| API | Used by |
|---|---|
run.googleapis.com |
All Cloud Run tools |
monitoring.googleapis.com |
Aura Score health signals for Cloud Run |
| Role | Tools that need it |
|---|---|
roles/run.viewer |
All read-only tools |
roles/run.admin |
gcp_cloudrun_update_traffic (mutation) |
See Security and Safety for how to grant these to a dedicated service account.
Lists all Cloud Run services across one or all regions.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
region |
no | Filter to a single region; omit for all regions |
Returns: Service name, region, URL, latest revision name, traffic splits, labels, creation time.
Gets the full configuration snapshot for a single Cloud Run service.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
region |
yes | Region the service is deployed in |
service_name |
yes | Service name |
Returns: Traffic allocation per revision, container image, CPU/memory limits, concurrency, ingress setting, VPC connector, environment variable names, service account, labels.
Updates the traffic split percentages across revisions. Mutation — requires two-step confirmation.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
region |
yes | Region |
service_name |
yes | Service name |
traffic |
yes | Array of {revision, percent} — must sum to 100 |
dry_run |
no |
true → preview only (Step 1) |
confirm_plan_id |
no | Plan ID from dry-run response (Step 2) |
Returns (dry_run=true): Human-readable change description, plan_id, expires_in (10 minutes).
Returns (confirmed): Before/after traffic split comparison.
See Security and Safety#Two-Step Confirmation Flow for the full confirmation workflow.
Lists Cloud Run Jobs across one or all regions.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
region |
no | Filter by region; "-" or omit for all regions |
Returns: Job name, region, container image, task count, parallelism, service account.
Gets full configuration for a Cloud Run Job.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
region |
yes | Region |
job_name |
yes | Job name |
Returns: Container image, task count, parallelism, timeout, service account, VPC connector, latest execution summary.
Lists recent executions of a Cloud Run Job with their outcomes.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
region |
yes | Region |
job_name |
yes | Job name |
limit |
no | Max executions to return (default: 10) |
Returns: Execution ID, state (SUCCEEDED / FAILED / RUNNING / CANCELLED), start time, completion time, task failure count.
These resources are available without a tool call. An LLM can read them directly for context:
| Resource URI | Contents |
|---|---|
gcp://{project}/cloudrun/services |
All Cloud Run services across all regions |
gcp://{project}/cloudrun/{region}/{service} |
Single service: URL, traffic splits |
gcp://{project}/cloudrun/{region}/{service}/revisions |
Revision list with traffic allocation |
Use these directly with Claude Desktop or any MCP-compatible host.
Inventory
"List all Cloud Run services in
my-projectand show their current revision and traffic split."
Cross-region audit
"Which Cloud Run services in
my-projectare deployed in more than one region?"
Stale revision check
"Which Cloud Run services in
us-central1are still sending traffic to a revision that is more than 5 revisions behind the latest?"
Traffic rollback — two-step safe
"I need to roll back
payments-apiinus-central1to revisionpayments-api-00023-abc. Show me what the traffic update would look like before making any changes."
Public ingress audit
"Which Cloud Run services in
my-projecthave their ingress set toall(publicly reachable from the internet)?"
Job failure monitoring
"Show me the last 20 executions of the
nightly-reportjob inus-east1. How many failed, and when did they fail?"
Cost investigation (combined with Aura)
"List all Cloud Run services with an Aura Score below 50 and explain the top issue for each one."
| Module flag | Why you'd combine it |
|---|---|
aura |
Health/efficiency score (0–100) for each Cloud Run service |
topology |
Discover what each service depends on (Cloud SQL, Pub/Sub, Secrets, VPC) |
monitoring |
Pull request rate, error rate, and P99 latency metrics |
logging |
Fetch recent error logs for a specific revision |
iam |
Audit IAM bindings on Cloud Run resources |
eventarc |
See which Eventarc triggers invoke this service |
networking |
See the NEG and load balancer fronting this service |