Skip to main content
Glama

generate_gcp_iam_policy

Generate GCP IAM Terraform, gcloud commands, service accounts, and Workload Identity Federation configuration

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": {
      "project": "<project>"
    },
    "name": "generate_gcp_iam_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesGCP project ID
bindingsNoIAM bindings [{role, members}]
conditionsNoIAM conditions [{title, expression}]
serviceAccountsNoService accounts [{name, roles}]
workloadIdentityNoWorkload Identity Federation config {pool, provider, attribute}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/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 burden, and 'generate' leaves open whether anything is written to disk or applied to GCP, whether output is a file or a chat response, and whether any credentials are required. It names artifact categories but discloses no operational behavior, side effects, or output shape (and there is no output schema to fall back on).

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 tightly packed sentence with no filler and the verb front-loaded. It is efficient, though the trailing noun list reads as enumerating features rather than structuring what matters most to a caller.

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?

Wrong value: this is a 5-parameter tool with nested objects, no annotations, and no output schema, so the description should explain how bindings, conditions, serviceAccounts, and workloadIdentity combine and what the caller receives. The list of artifact types is helpful framing but stops well short of what a generator of this complexity needs.

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% and every parameter has an inline description, including the nested binding/condition/service-account/WIF shapes. The description's mentions of service accounts and Workload Identity map onto existing parameters but add no format, constraint, or inter-parameter semantics beyond what the schema already states; the baseline of 3 applies.

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?

A specific verb plus a concrete set of GCP resources and artifact types (Terraform, gcloud commands, service accounts, Workload Identity Federation config). It is clearly the GCP-flavored generator, though it never explicitly distinguishes itself from the near-identically named generate_iam_policy or generate_iam_role_advanced siblings.

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 when-to-use or when-not-to-use guidance, no prerequisites, and no named alternative. An agent must infer from the name alone whether this is the right choice over generate_iam_policy or generate_transform_iam_policy, which is exactly the decision that needs support here.

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.