## Tool: `test_securesourcemanager_repository_iam_permissions`

Returns permissions that a caller has on a Secure Source Manager repository. The resource name should follow the pattern: projects/{project}/locations/{location}/repositories/{repository}

The following code sample shows how to use `curl` to call the `test_securesourcemanager_repository_iam_permissions` MCP tool.

| Curl Request |
|---|
| ```bash curl --location 'https://securesourcemanager.europe-west4.rep.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "test_securesourcemanager_repository_iam_permissions", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' ``` |

## Input Schema

Request message for `TestIamPermissions` method.

### TestIamPermissionsRequest

| JSON representation |
|---|
| ``` { "resource": string, "permissions": [ string ] } ``` |

| Fields ||
|---|---|
| `resource` | `string` REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
| `permissions[]` | `string` The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |

## Output Schema

Response message for `TestIamPermissions` method.

### TestIamPermissionsResponse

| JSON representation |
|---|
| ``` { "permissions": [ string ] } ``` |

| Fields ||
|---|---|
| `permissions[]` | `string` A subset of `TestPermissionsRequest.permissions` that the caller is allowed. |

### Tool Annotations

Destructive Hint: ❌ \| Idempotent Hint: ✅ \| Read Only Hint: ✅ \| Open World Hint: ❌