Skip to main content
Glama

generate_cloud_run_service

Generate Cloud Run service YAML, gcloud deploy command, Terraform, and Dockerfile for containerized workloads with autoscaling

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "image": "<image>"
    },
    "name": "generate_cloud_run_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpuNoCPU limit (e.g. 1, 2)
nameYesCloud Run service name
portNoContainer port (default 8080)
imageYesContainer image (e.g. gcr.io/my-project/my-app:v1)
memoryNoMemory limit (e.g. 512Mi, 1Gi)
regionNoGCP region (default us-central1)
envVarsNoEnvironment variables as key-value pairs
concurrencyNoMax concurrent requests per instance
maxInstancesNoMaximum instances
minInstancesNoMinimum instances (0 = scale to zero)
vpcConnectorNoVPC Connector name for private networking

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden, and it leaves the key question unresolved: whether this tool only emits configuration text or actually performs a deployment. It also says nothing about the return shape (one blob vs. per-artifact outputs), file-writing side effects, or any required credentials for the generated gcloud/Terraform output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that lists the four artifact types immediately, with no filler or repetition. It is tight, though the trailing 'with autoscaling' clause is vague enough to be near-redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter generator with no annotations and no output schema, the description should clarify what the caller receives — four separate artifacts, a directory, or a combined file — and whether deployment actually occurs. Neither is addressed, leaving a meaningful gap for a tool whose entire value is its output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% across all 11 parameters, including examples for cpu, memory, image, and port, so the schema already does the semantic work. The description adds only the high-level mention of autoscaling, which loosely maps to minInstances/maxInstances/concurrency without elaborating on them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (generate) and a specific resource (Cloud Run service configuration artifacts), and enumerates the concrete outputs: YAML, gcloud deploy command, Terraform, and Dockerfile. It is clearly distinct from siblings like generate_cloud_function or generate_app_runner_service by virtue of the Cloud Run target, though it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this over generate_cloud_function, generate_app_runner_service, or other deployment generators, nor any stated prerequisites such as GCP project setup or authentication. The only usage hint is the implicit 'for containerized workloads with autoscaling', which describes the domain rather than a selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.