Skip to main content
Glama
@incidentpilot/mcp-aws

@incidentpilot/mcp-aws

iam_get_access_advisor

Retrieve last-accessed service data for an IAM user, group, role, or policy to identify unused permissions and reduce excess access.

Instructions

Get service last accessed data for an IAM entity (helps identify unused permissions)

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": {
      "arn": "<arn>"
    },
    "name": "iam_get_access_advisor"
  }
}

Input Schema

NameRequiredDescriptionDefault
arnYesThe ARN of the IAM user, group, role, or policy
regionNoAWS region (defaults to configured region)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose that Access Advisor data is typically delayed/periodic rather than real-time, whether special IAM permissions are needed, or what the response contains; for a no-annotation tool this leaves significant gaps beyond the one-line purpose.

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 wasted words; the primary action comes first and the purpose trails in parentheses. It is perhaps too terse rather than bloated, so conciseness itself is not the problem.

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 simple two-parameter read tool with full schema coverage and no output schema, the description is minimally sufficient. It is incomplete on the points that matter most for this specific data source — the freshness/delay of last-accessed data and any prerequisite permissions — which an agent invoking it should know.

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 both parameters (arn, region) are documented in the schema, so a baseline of 3 applies. The description adds nothing about ARN formats, entity-type-dependent behavior, or region semantics 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?

States a specific verb and resource ("Get service last accessed data for an IAM entity") and frames the outcome ("identify unused permissions"). An agent can distinguish it from sibling lookups like iam_get_policy_details or iam_get_role_details, though the description never explicitly names that contrast.

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?

The parenthetical "helps identify unused permissions" implies the use case — permission right-sizing — but there is no explicit when-to-use, when-not-to-use, or named alternative. The agent must infer that this is the tool for unused-permission analysis rather than general entity inspection.

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