Skip to main content
Glama

iam_policy_get

Read-only

Retrieve a managed IAM policy and its default version document as JSON to inspect permissions and policy content.

Instructions

Show a managed policy and its default version's document as JSON.

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

Input Schema

NameRequiredDescriptionDefault
policy_arnYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/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 the safety profile needs no restating. The description adds the notable scope constraint that only the default version's document is returned, but nothing about error cases (nonexistent ARN, missing default version) or response shape beyond 'JSON'.

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?

One tight sentence with the key scope qualifier ('default version') front-loaded and no filler. It could be slightly more explicit about the return being a policy document plus metadata, but nothing is wasted.

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 needn't detail return values, and rich annotations cover safety, so a single precise sentence is close to sufficient for a one-parameter read. The remaining gap is the unexplained ARN parameter and ambiguity between 'policy' metadata and 'document'.

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?

There is one parameter at 0% schema description coverage, so the description should carry the burden of explaining it, and it says nothing about policy_arn — no format, no ARN pattern, no source for obtaining it. The self-explanatory name only partially compensates.

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?

Specific verb ('Show') plus resource ('a managed policy and its default version's document'), and it states the return form (JSON). The 'managed' qualifier implicitly separates it from inline-policy siblings, but no sibling is named explicitly.

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 'default version's document' scope hints that a version-specific fetch is a different call, but the description never says when to prefer iam_policy_version_get or iam_inline_policy_get, nor any prerequisite such as the policy existing or permissions needed.

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