Skip to main content
Glama

generate_cloud_function

Generate Cloud Function source, gcloud deploy command, Terraform, and trigger configuration for HTTP, Pub/Sub, Storage, Firestore, and Scheduler events

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>",
      "runtime": "<runtime>",
      "trigger": "<trigger>",
      "entryPoint": "<entryPoint>"
    },
    "name": "generate_cloud_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCloud Function name
memoryNoMemory allocation (e.g. 256MB, 1GB)
regionNoGCP region (default us-central1)
envVarsNoEnvironment variables as key-value pairs
runtimeYesRuntime environment
timeoutNoTimeout in seconds (max 540)
triggerYesTrigger type
entryPointYesFunction entry point (exported function name)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does communicate non-trivial behavior — that this emits four distinct artifact types (source, deploy command, Terraform, trigger config) rather than just code — but says nothing about what the return shape looks like, whether anything is written or deployed, or that output is text only. Adequate but incomplete for an unannotated tool.

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

Conciseness5/5

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

A single dense sentence with the artifact list front-loaded and zero filler. Every clause (what is generated, for which trigger types) carries information an agent needs.

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

Completeness4/5

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

With no output schema, the description usefully enumerates the four return artifacts, which is the key missing piece an agent would otherwise lack. Given full parameter documentation and a simple pure-generation contract, it is close to complete; only the absence of side-effect disclosure (generate-only, no deploy) and usage context keeps it from a 5.

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%, so all 8 parameters including enums and nested envVars are already documented in the schema. The description only restates the trigger enum values (HTTP, Pub/Sub, Storage, Firestore, Scheduler) and adds no new meaning about defaults, constraints, or interactions such as region/timeout defaults.

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

Purpose5/5

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

States a specific verb (Generate) plus the concrete artifacts produced — source, gcloud deploy command, Terraform, and trigger config — and enumerates the five supported trigger types. That level of specificity lets an agent distinguish it from generate_lambda_function or generate_function_app purely on the resource being GCP Cloud Functions.

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?

No when-to-use or when-not-to-use guidance, no mention of alternatives among the many sibling generate_* tools, and no prerequisites (GCP project, auth, deploy context). The only implicit signal is the trigger enumeration, which tells an agent what it can generate but not whether this is the right tool for its task.

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.