Skip to main content
Glama

iam_policy_version_list

Read-only

List a managed IAM policy's versions and identify which one is the default, with pagination for accounts holding multiple policy versions.

Instructions

List a managed policy's versions (at most five) with which one is the default, plus pagination.

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": {
      "policy_arn": "<policy_arn>"
    },
    "name": "iam_policy_version_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_itemsNo
policy_arnYes
continuation_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, and open-world, and an output schema exists, so the safety and return-value burden is light. The description still adds real behavioral value by disclosing the five-version cap, that the default version is indicated, and that results are paginated.

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 wording; the version cap and default flag come before the pagination note. The trailing 'plus pagination' clause is terse to the point of being vague.

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?

For a simple read-only list tool with three parameters and an existing output schema, the description covers the key facts: the resource, the bounded result set, the default-version marker, and pagination. The remaining gap is per-parameter semantics, which the schema leaves undocumented.

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 must carry the load. It only gestures at pagination ('plus pagination'), without explaining continuation_token or max_items behavior, and never characterizes policy_arn; the five-version cap only indirectly clarifies why max_items rarely matters.

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 ('List') and resource ('a managed policy's versions') and adds the important scope detail that at most five versions exist. It is clearly distinguishable from a single-version fetch like iam_policy_version_get, though it does not call out any sibling by name.

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 guidance on when to use this versus the version-get, version-create, version-delete, or set-default siblings. Usage is only implied by the word 'List'; no prerequisites, ordering, or exclusions 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