Skip to main content
Glama

iam_role_list

Read-only

Lists IAM roles, optionally filtered by path prefix, returning names, ARNs, trust policies, creation dates, and pagination details for access review.

Instructions

List IAM roles, optionally under a path prefix. Returns roles with name, ARN, trust policy (as JSON) and created date, plus pagination.

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_role_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_itemsNo
path_prefixNo
continuation_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered; the description adds real value beyond that by naming the returned fields (name, ARN, trust policy JSON, created date) and flagging that the response is paginated. It stops short of explaining pagination mechanics or any IAM permission requirements.

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

Conciseness5/5

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

A single compact sentence pair: the operation and its filter come first, then return shape and pagination. No filler, no restatement of the tool name, nothing that could be cut.

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

Completeness4/5

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

With an output schema present, the description need not elaborate return values (though it helpfully does), and annotations cover the safety profile. The remaining shortfall is that two of three parameters are effectively undocumented anywhere, which an agent would notice when paging.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description carries full burden, yet it only clarifies path_prefix; max_items and continuation_token are never explained beyond the vague phrase 'plus pagination'. The agent gets no guidance on the default page size, its cap, or how to resume with the token.

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?

States a specific verb and resource ('List IAM roles') plus an explicit scope modifier ('optionally under a path prefix'), which distinguishes it from the mutation and single-entity siblings like iam_role_get or iam_role_create. It doesn't name a sibling alternative explicitly, so it stops short of 5.

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

Usage Guidelines3/5

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

Usage is only implied: the word 'List' plus the optional path prefix suggests enumeration and path-scoped filtering, but there is no statement of when to prefer this over iam_role_get or when a path prefix should be supplied. No exclusions or preconditions are given.

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

Deploy Server

Other Tools