Skip to main content
Glama

iam_inline_policy_put

Destructive

Create or replace an inline IAM policy on a user, group, or role; set confirm=true to apply the change.

Instructions

Create or replace an inline policy (dict or JSON) on a user, group or role; needs confirm=true.

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>",
      "policy_document": "<policy_document>"
    },
    "name": "iam_inline_policy_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
policy_nameYes
principal_nameYes
principal_typeYes
policy_documentYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The destructiveHint=true, readOnlyHint=false, and openWorldHint=true annotations already carry the safety profile; the description reinforces it with 'create or replace' (an overwrite of any existing inline policy) and the confirm=true guard. It stops short of describing permission requirements or what happens to a pre-existing policy with the same name.

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 tight sentence with the operation and the confirm requirement front-loaded; no filler.

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?

An output schema exists, so return values need no explanation, and the description covers the mutation semantics and the confirm gate. For a 5-parameter destructive tool the only remaining gap is documentation of the two name parameters.

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 0%, so the description must carry the load. It adds useful meaning for policy_document (dict or JSON) and confirms the user/group/role enum, but leaves principal_name and policy_name entirely undocumented beyond their self-evident titles.

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 states a specific verb and resource — create or replace an inline policy — and scopes it to a user, group, or role. It distinguishes inline policies from managed-policy siblings such as iam_policy_create, but does so only implicitly through the word 'inline'.

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?

It gives one actionable prerequisite (confirm=true must be set), which is genuinely useful guidance. It does not say when to prefer this over iam_policy_create or iam_policy_attach, nor when replacing an inline policy is a bad idea.

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