Skip to main content
Glama

iam_inline_policy_get

Read-only

Retrieve an inline IAM policy for a user, group, or role and return its policy document as JSON for access reviews and troubleshooting.

Instructions

Show one inline policy of a user, group or role, with its 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": {
      "principal_type": "<principal_type>",
      "principal_name": "<principal_name>",
      "policy_name": "<policy_name>"
    },
    "name": "iam_inline_policy_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_nameYes
principal_nameYes
principal_typeYes

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 is covered by structured data. The description adds that the policy document is returned as JSON, which is modest but real context beyond the annotations. It says nothing about error cases (e.g., nonexistent policy), throttling, or required IAM permissions, which keeps it at a middling score.

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 zero filler; the resource, scope, and return format all 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.

Completeness3/5

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

An output schema exists, so the description needn't explain return values, and it correctly notes the JSON document. However, with three required parameters at 0% schema coverage, the definition leaves principal_name semantics and failure behavior to inference, which is a meaningful gap for a lookup tool with an open-world hint.

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%, so the description must carry the burden, and it only partially does. "of a user, group or role" maps loosely onto principal_type, and "inline policy" hints at policy_name, but principal_name is never explained — no indication of whether it is a plain name, path-qualified name, or ARN — leaving the most ambiguous parameter undocumented in both schema and description.

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 pairs a specific verb ("Show") with a specific resource ("one inline policy") and enumerates the principal kinds (user, group, role), so it is clearly distinct from a list-style sibling such as iam_inline_policy_list. It stops short of naming an alternative explicitly, so it does not reach the sibling-differentiation bar for a 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?

Use for single-policy retrieval is implied by "one inline policy," which contrasts implicitly with listing all inline policies. There is no explicit when-to-use/when-not-to-use statement, no mention of prerequisites, and no named alternative to route to instead.

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