Set project IAM policy
gcp_set_project_iam_policyReplace the entire IAM policy for a GCP project, overwriting all existing role bindings. Fetch the current policy first to preserve bindings you want to keep.
Instructions
Replaces the entire IAM policy for a project. Prefer gcp_add_project_iam_binding / gcp_remove_project_iam_binding for a single role change — this overwrites everything, so fetch with gcp_get_project_iam_policy first if you need to preserve existing bindings.
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": {
"bindings": "<bindings>"
},
"name": "gcp_set_project_iam_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bindings | Yes | Full replacement list of role bindings | |
| projectId | No | GCP project id; defaults to GOOGLE_CLOUD_PROJECT env var if omitted |