aws_iam_list_roles
Retrieve and filter IAM roles in your AWS account to manage access permissions and audit security configurations.
Instructions
List IAM roles in the AWS account with optional path prefix filter.
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": "aws_iam_list_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | AWS profile name from ~/.aws/config (e.g., 'default', 'production') | |
| region | No | AWS region override (e.g., 'us-east-1', 'sa-east-1') | |
| path_prefix | No | IAM path prefix filter (default: '/') | |
| max_items | No | Maximum number of roles to return |