iam_list_roles
Lists IAM roles in an AWS account to inspect permissions and identify affected identities during incident investigation. Supports filtering by path prefix, region, and max results.
Instructions
List IAM roles in the account
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "iam_list_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | AWS region (defaults to configured region) | |
| maxItems | No | Maximum number of roles to return | |
| pathPrefix | No | Filter roles by path prefix (e.g., '/service-role/') |