Skip to main content
Glama

security_gcp_iam_check

Read-only

GCP IAM policy audit — Offline audit of a Google Cloud IAM policy (JSON from gcloud projects get-iam-policy, or a bindings array). Flags allUsers / allAuthenticatedUsers grants, primitive Owner/Editor roles, Owner on service accounts, Editor on default compute/App Engine service accounts, privilege-escalation roles (serviceAccountTokenCreator, serviceAccountUser, projectIamAdmin, securityAdmin...), sensitive data roles, personal Gmail and (with org_domain=) external members, domain-wide grants, too many owners, deleted members, audit-log exemptions and missing Data Access logs. IAM conditions lower severity one level. Score, A-F grade and verdict PUBLIC_EXPOSURE / FIX_NOW / REVIEW / OK. Price: $0.006 USDC (Base, via x402).

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": {
      "policy": "<policy>"
    },
    "name": "security_gcp_iam_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYese.g. {"bindings":[{"role":"roles/owner","members":["user:bob@gmail.com"]},{"role":"roles/storage.objectViewer","members":["allUsers"]}],"version":1}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with "Offline" (no calls to the GCP API). It adds genuinely non-annotated behavior: severity downgrading for IAM conditions, an A-F grade and a four-value verdict, and a paid x402 call at $0.006 USDC — cost being critical for an agent to know. No rate limits or error behavior are described, keeping it below 5.

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?

Front-loaded with the action, then the detection checklist, then the output contract and price. It is dense and long, but each clause names a distinct finding or output, so little is wasted; the trailing Price sentence is well placed as an operational caveat.

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?

There is no output schema, so the description must describe returns — and it does, naming score, A-F grade and the PUBLIC_EXPOSURE / FIX_NOW / REVIEW / OK verdicts. Combined with the input format guidance and cost disclosure, an agent has what it needs, though the exact response structure remains unspecified.

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 coverage is 100% with a worked example, so the schema carries the parsing burden and baseline 3 applies. The description does add that a bare bindings array is accepted, but it also references "org_domain=" — a parameter absent from the schema — which creates ambiguity about a knob the agent cannot actually set.

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 and resource ("Offline audit of a Google Cloud IAM policy") and then enumerates the exact findings it produces (allUsers grants, primitive Owner/Editor, privilege-escalation roles, personal Gmail members, audit-log exemptions). The GCP-IAM specificity clearly separates it from the other security_* config checkers in the sibling list.

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

Usage Guidelines4/5

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

Gives concrete invocation context: the input is JSON from `gcloud projects get-iam-policy` or a bindings array, and it is an offline audit. It stops short of naming when to prefer it over a sibling like security_iam_policy, so there is no explicit alternative routing, but the preconditions are unambiguous.

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.

Resources