Skip to main content
Glama
@incidentpilot/mcp-aws

@incidentpilot/mcp-aws

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

NameRequiredDescriptionDefault
regionNoAWS region (defaults to configured region)
maxItemsNoMaximum number of roles to return
pathPrefixNoFilter roles by path prefix (e.g., '/service-role/')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: no mention of pagination/truncation behavior (notable given maxItems caps at 1000), no IAM permission prerequisites, and no indication of what a returned entry contains. An agent cannot tell whether results are complete or partial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or redundancy. It is well formed but so minimal that the brevity reflects under-specification rather than disciplined editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter listing tool whose three parameters are fully documented in the schema, the definition is minimally adequate. With no output schema and no annotations, however, it leaves return shape and pagination semantics unexplained, which an agent would need in order to use results correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema itself explains region, maxItems and pathPrefix with examples and bounds, so the baseline of 3 applies. The description contributes no additional meaning about filtering or ordering beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("List IAM roles") scoped to the account, so the agent knows exactly what is enumerated. It does not, however, distinguish this from siblings such as iam_list_users or iam_get_role_details, which enumerate or detail adjacent IAM entities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and no pointer to iam_get_role_details for per-role metadata or iam_list_policies for attached policies. The implied usage (enumerate roles) is inferable from the name alone, so the description adds nothing on this axis.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.