Skip to main content
Glama
@incidentpilot/mcp-aws

@incidentpilot/mcp-aws

iam_get_role_details

Retrieve an IAM role's trust policy and attached policies to inspect permissions, verify access, and troubleshoot role configuration issues.

Instructions

Get detailed information about an IAM role including trust policy and attached policies

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "roleName": "<roleName>"
    },
    "name": "iam_get_role_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoAWS region (defaults to configured region)
roleNameYesThe name of the IAM role

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; it does convey that this is a read operation that returns trust policy and attached policies, which is useful substance. It stops short of stating required IAM permissions, error behavior for a missing role or cross-account access, or anything about the response shape.

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 front-loaded sentence with no filler; the resource and the returned contents appear immediately. Nothing could be removed without losing information.

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?

This is a simple two-parameter read tool with full schema coverage, and the description compensates for the absent output schema by naming what is returned. The main residual gap is failure/permission behavior, which matters less here given the operation's read-only simplicity.

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%, so both roleName and region are already documented in the schema, establishing a baseline of 3. The description adds only that the subject is an IAM role and says nothing about region scoping or name formatting beyond what the schema provides.

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 names a specific verb and resource ("Get detailed information about an IAM role") and enumerates the payload contents (trust policy, attached policies), so an agent can tell this apart from generic listing tools like iam_list_roles. It does not explicitly distinguish itself from the close sibling iam_get_policy_details, leaving that boundary implicit.

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 phrase "detailed information" and the listed contents signal when an agent would fetch this rather than list roles. There is no explicit when-not guidance, no mention of the relationship to iam_get_policy_details, and no stated prerequisites for the role needing to exist.

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