add_iam_policy_binding
Add an IAM policy binding to a GCP project, granting a specified role to a member. Provide project ID, role, and member to manage access.
Instructions
Add an IAM policy binding to a GCP project.
Args:
project_id: The ID of the GCP project
role: The role to grant (e.g., "roles/compute.admin")
member: The member to grant the role to (e.g., "user:email@example.com", "serviceAccount:name@project.iam.gserviceaccount.com")
Returns:
Result of the policy binding operation
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_id": "<project_id>",
"role": "<role>",
"member": "<member>"
},
"name": "add_iam_policy_binding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| member | Yes | ||
| project_id | Yes |